On Mon, 19 Jan 2004 02:39:14 +0000, Faheem Mitha wrote: > On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan <[EMAIL PROTECTED]> wrote:
>> >> Running "mount", as you suggest, will tell you with which options the FS >> was mounted, including the journaling mode. > > It just seems to echo what is in /etc/fstab. I wanted something which > actually went and checked the partitions. > > BTW, I was under the impression that it was necessary to specify the > mounting of root (/) at boot time, in the grub menu or some such, > rather than /etc/fstab. I was just looking at stuff which suggested > this may not be necessary. Can anyone point me to a definitive > reference on this? > Like I said, running "mount" will tell you how the FS is mounted. It does not "echo what is in /etc/fstab". When it mounts an FS, it writes an entry in /etc/mtab describing the mount. Of course it's going to look similar to the fstab entry because the fstab entry tells it how it should be mounted! This is all written up in the mount man page. With regard to booting: if you don't specify the root filesystem at boot time, how is the OS going to find it? There is, apparently a default for the root filesystem compiled into the kernel - I don't know what it is, but I bet it's probably not very useful. /etc/fstab is used in an init script to mount the root FS ro for checking, and to then remount it rw. For more info: man boot man bootparams man init scripts in /etc/rcS.d (esp. S10checkroot.sh) -- ....................paul It is important to realize that any lock can be picked with a big enough hammer. -- Sun System & Network Admin manual -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]