FreeBSD CD and DVD's
From Teknologisk videncenter
Copy a CD or DVD to a ISO image
dd if=/dev/acd0 of=dvd.iso ibs=2048
Mount a ISO image from a file
If you have a ISO image in a file you cant make a memory disk and mount it
[[Category:FreeBSD]] bsd# file * heth.iso: ISO 9660 CD-ROM filesystem data 'THE_ATTIC ' bsd# mdconfig -a -t vnode -f /home2/heth/dvd/heth.iso -u 1 bsd# mount -t cd9660 /dev/md1 /cdrom bsd# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 196094 270926 42% / devfs 1 1 0 100% /dev /dev/ad0s1e 507630 142602 324418 31% /tmp /dev/ad0s1f 34336612 25245812 6343872 80% /usr /dev/ad0s1d 1506190 970188 415508 70% /var /dev/ad1s1d 9680238 8456664 449156 95% /home2 /dev/ad1s1e 8230158 1836582 5735164 24% /usr2 devfs 1 1 0 100% /var/named/dev /dev/md1 4391040 4391040 0 100% /cdrom
Unmounting it again and removing the memory disk.
bsd# umount /cdrom bsd# mdconfig -d -u 1