*BSD News Article 54459


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!swsbe6.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!snert!not-4-mail
From: pmh@pilhuhn.de (Patrick M.Hausen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD *NEEDS* CD-ROM???
Date: 12 Nov 1995 16:52:42 +0100
Organization: The Home Of The Pilhuhn
Lines: 49
Message-ID: <48558a$j7p@pilhuhn.pilhuhn.de>
References: <roy-0911952159370001@adept.cts.com> <covell.816017195@stripe.Colorado.EDU>
NNTP-Posting-Host: pilhuhn.de

covell@stripe.Colorado.EDU (Paul Covell) writes:

>roy@adeptsolutions.com (Roy Lovejoy) writes:
>>I got thrown the message cd9660: /dev/cd0a device not configured.
>>(no cd in the drive)
>>I take it that something is trying to mount the cd regardless if there actually
>>that I can  comment out this auto mount attempt?? (and leave the mounting
>>of the cd to when *I* want to mount it?)

>>Please e-mail *AND* post.
>>Thanks

>While it is a less than perfect solution, this is how I solved that problem:
>in /etc/fstab, there is an entry for your cdrom drive.  Comment it out.
>/etc/rc calls mount -a, which tries to mount all the drives in your /etc/fstab
>file.  Why it dies when it can't, I'm not sure.

>The reason this is less than perfect is now you will need to type the full
>specs to mount the cdrom (for me, mount -tcd9660 /dev/mcd0a /cdrom).

Better solution: (IMHO)

leave the entry in /etc/fstab (or insert an appropriate entry, if it's not
already there):

/dev/cd0a                       /cdrom          cd9660  ro 0 0

then, edit /etc/rc - the line, that reads

mount -a -t nonfs

(i.e. mount all filesystems in /etc/fstab besides the ones of type "nfs")

should be changed into:

mount -a -t nonfs,cd9660


That's all. Type "mount /cdrom" to mount a CD.


Paddy


-- 
Patrick M. Hausen    Gerwigstr. 11    76131 Karlsruhe    Tel. +49 721 699234
          pmh@pilhuhn.sub.org    s_hausen@ira.uka.de    IRC: cutie
"You can fool all of the people some of the time and some of the
 people all of the time, but you can't fool Mom." (Captain Penny's Law)