From owner-freebsd-hackers Mon Nov 24 02:10:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA21855 for hackers-outgoing; Mon, 24 Nov 1997 02:10:22 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA21850 for ; Mon, 24 Nov 1997 02:10:20 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id CAA28632; Mon, 24 Nov 1997 02:01:46 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd028629; Mon Nov 24 02:01:38 1997 Date: Mon, 24 Nov 1997 01:59:28 -0800 (PST) From: Julian Elischer To: Joerg Wunsch cc: hackers@freebsd.org, Burton Sampley Subject: Re: problem mounting /cdrom w/ 2.2.5-R (fwd) In-Reply-To: <19971124093009.OQ45903@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk mount /cdrom uses the read-only flag becasue it's in the fstab. I'm not convinced that mount_cd9660 sets it by default. (not seen the code, but that might be the kind of difference that may be happenning.....) On Mon, 24 Nov 1997, J Wunsch wrote: > As Burton Sampley wrote: > > > Actually, if I force it with either mount_cd9660 /dev/cd0a or mount -t > > cd9660 /dev/cd0a it *always* works. > > That's really weird, since the other mount commands don't do anything > else: > > uriah # ktrace -i mount /cdrom > uriah # kdump | grep -E 'NAMI|exec' > 3230 ktrace NAMI "/etc/malloc.conf" > 3230 ktrace CALL execve(0xefbfd330,0xefbfd7f4,0xefbfd800) > 3230 ktrace NAMI "/sbin/mount" > 3230 mount RET execve 0 > 3230 mount NAMI "/etc/fstab" > 3230 mount NAMI "/etc/malloc.conf" > 3230 mount NAMI "." > 3230 mount NAMI "/" > 3230 mount NAMI "cdrom" > 3230 mount NAMI "cdrom" > 3230 mount NAMI "/cdrom" > 3231 mount CALL execve(0xefbfd09c,0xefbfd600,0xefbfd808) > 3231 mount NAMI "/sbin/mount_cd9660" > 3231 mount_cd9660 RET execve 0 > 3231 mount_cd9660 NAMI "/etc/malloc.conf" > 3231 mount_cd9660 NAMI "/dev/cd0a" > 3231 mount_cd9660 NAMI "/cdrom" > 3231 mount_cd9660 NAMI "/dev/cd0a" > 3230 mount NAMI "/var/run/mountd.pid" > > As you can see, `mount' has subsequently called `mount_cd9660', to do > the dirty work of mounting a cd9660 filesystem it doesn't know > anything about. The trace also shows that the generic mount command > doesn't touch /dev/cd0a at all. > > > I assumed the media not present erorr was just the cdrom > > complaining about being booted w/o a cd. > > Nope. If you've got `noauto' in your fstab, the CD won't be touched > at boot time after the device probe happened (which was earlier). > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) >