Robert J.Dunlop rjd
Fri Sep 24 12:17:50 BST 1999

> I have installed FreeBSD 3.2
> and when i try and mount the cdrom drive
> it
> does not do anything
> like in linux 
> mount /dev/cdrom /mnt/cdrom
> it just goes into a invalid command

Work out what the device name for your CD is.
One way is to grep the output of dmesg for lines with cd in them

On my system
% /sbin/dmesg | grep cd
cd0 at ncr0 bus 0 target 4 lun 0
cd0: <YAMAHA CRW2260 1.0e> Removable CD-ROM SCSI-2 device 
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed

cd0: is the big clue that makes the device name /dev/cd0c the c partiton being
used for the whole device

Add a line like this to /etc/fstab if it isn't already there

/dev/cd0c		/cdrom		cd9660	ro,noauto	0	2

Make sure the empty directory /cdrom exists and then
# mount /cdrom

/cdrom is the "traditional" place for mounting the CD on FreeBSD and things
like the ports package expect to see it there.

	Bob Dunlop

More information about the Ukfreebsd mailing list