1. Add kernel driver cd9660_iconv.ko to the /etc/rc.conf
sudo nano /etc/rc.conf
…. add line
cd9660_iconv_load="YES"
…. reboot after that
2. Remove #`s from /etc/devfs.conf file (if not removed)
sudo nano /etc/devfs.conf
… the lines
link cd0 cdrom
link cd0 dvd
3. Make mount point for CDROM
sudo mkdir /media/cdrom
4. Edit /etc/fstab file by adding CDROM
sudo nano /etc/fstab
… add the line
/dev/cd0 /media/cdrom cd9660 ro,noauto 0 0
Mount and umount CDROM from command line or via script
… to mount CDROM
sudo mount /media/cdrom
… to umount CDROM
sudo umount /media/cdrom
A script for mounting and umounting CDROM. Requires packages xterm and yad to be installed.
CD-MOUNT script
#!/bin/sh
##
## RJP 1.7.2025
## FreeBSD CDROM mount and umount script
##
touch ~/.Xresources
echo ' ! Use a truetype font and size.
xterm*faceName: Monospace ' | grep -xFv -f $HOME/.Xresources >> $HOME/.Xresources
echo 'xterm*faceSize: 14 ' | grep -xFv -f $HOME/.Xresources >> $HOME/.Xresources
xrdb -merge ~/.Xresources
yad --form --columns=5 --width=500 --text="Mount and umount CDROM:" --title="Mount and umount CDROM" \
\
--field="Mount CDROM":fbtn "xterm -e 'sudo mount /media/cdrom '" \
--field="Umount CDROM":fbtn "xterm -e 'sudo umount /media/cdrom '" \
--button=Exit:1