How To Setup Optical Drives on FreeBSD
Setting up optical drives on FreeBSD can be very tricky and sometimes cumbersome especially buggy software. However, this guide will provide the easier way on how to setup the optical drive correctly so you can use it.
1. Put these line in /etc/devfs.conf for device permissions:
link /dev/cd0 /dev/cdrom
perm /dev/cd0 0666
perm /dev/cdrom 0666perm /dev/xpt0 0666
perm /dev/pass0 0666
own /dev/cd0 root:operator
own /dev/cdrom root:operator
own /dev/xpt0 root:operator
own /dev/pass0 root:operator
2. Put these lines in /etc/devfs.rules
add path 'acd[0-9]\*' mode 666
add path 'cd[0-9]\*' mode 666
add path 'pass[0-9]\*' mode 666
add path 'xpt[0-9]\*' mode 666
3. Add these lines in /etc/rc.conf and restart the service
$ sysrc devfs_system_ruleset="system"
$ service devfs restart
4. Run cdrecord program to search the bus driver for the optical drive. Make sure that CD burning applications eg. K3B and Brasero is already installed.
$ cdrecord -scanbus
With this command, you will see the exact model of your installed optical drive:
Cdrecord-ProDVD-ProBD-Clone 3.02 2022/08/18 (amd64-unknown-freebsd13.2) Copyright (C) 1995-2019 Joerg>
Using libscg version 'schily-0.9'.
scsibus4:
4,0,0 400) 'ATAPI ' 'iHAS324 F ' 'CL8N' Removable CD-ROM
4,1,0 401) *
4,2,0 402) *
4,3,0 403) *
4,4,0 404) *
4,5,0 405) *
4,6,0 406) *
4,7,0 407) *
Using libscg version 'schily-0.9'.
scsibus4:
4,0,0 400) 'ATAPI ' 'iHAS324 F ' 'CL8N' Removable CD-ROM
4,1,0 401) *
4,2,0 402) *
4,3,0 403) *
4,4,0 404) *
4,5,0 405) *
4,6,0 406) *
4,7,0 407) *
5. Navigate to /usr/local/share/cdrdao and edit the "drivers" file:
$ nano /usr/local/share/cdrdao/drivers
$ nano /usr/local/share/cdrdao/drivers
6. Add the line to include your installed optical disc drive into the list:
R|ATAPI|iHAS324 F|generic-mmc-raw
W|ATAPI|iHAS324 F|generic-mmc-raw
7. Determine that the software burning program eg. K3B detects your installed optical drive. For Brasero and others, see Known Issues.
R|ATAPI|iHAS324 F|generic-mmc-raw
W|ATAPI|iHAS324 F|generic-mmc-raw
7. Determine that the software burning program eg. K3B detects your installed optical drive. For Brasero and others, see Known Issues.
Known issues:
1. K3B have issues on burning discs, tend to choose buggy "cdrecord" program instead of "cdrdao" unless user had to enable "Show Advanced GUI Elements". To fix this, user may need to add parameter settings in K3B eg. adding device parameter like dev=4,0,0 on cdrecord parameter settings.
2. Brasero will not detect any presence of blank discs nor its drive unless run on root/fakeroot. However, running on root environment is not recommended.
3. Meanwhile, cdrdao works well without root environment. However, user need to master the command line in cd burning.
Mounting the disc
1. You will need to install automounter package to automount CD-ROM automatically.
$ pkg install automounter
2. Create an entry in /etc/fstab
/dev/cd0 /dev/cdrom cd9660 ro,noauto 0 0
3. Create /cdrom directory
$ mkdir /cdrom
4. Reboot and relogin. Your disc can now be mounted automatically.
Comments
Post a Comment