From: Thomas Wieckhorst (thomas@thwieck.han.de)
Date: 05/01/93


From: thomas@thwieck.han.de (Thomas Wieckhorst)
Subject: Re: Problem with etc/mtab
Date: Sat, 1 May 1993 18:06:27 GMT

HJ Lu (hlu@eecs.wsu.edu) wrote:
: 1. Get Rick Sladkey's mount 0.99.6. It is in mount-0.99.6.tar.Z and
: utile-1.4.src.tar.z from sunsite or tsx-11.
: 2. Remove any
: rdev > /dev/mtab
: from /etc/rc.
: 3. List / partition in /etc/fstab.
: 4. Add "mount -av" in /etc/rc or somewhere like that.
: 5. Always provide a fs name in /etc/fstab.

: After rebooting, you will be fine.

No not on my system !!!

I have linux 0.99p8 libc.so.4.3.3 a 386/33 with following /etc/fstab:

/dev/sda1 / xiafs defaults
/dev/sda2 /home xiafs defaults
/dev/hda1 /not-root xiafs defaults
/dev/hdb2 /tmp xiafs defaults
/dev/sda3 /usr xiafs defaults
/dev/sda4 /usr1 xiafs defaults
proc /proc proc defaults

and I have "mount -av" in my /etc/rc, my mount is Rick Sladkey's mount 0.99.6
from utile-1.4.src.tar.z.

But when I reboot my system my /etc/mtab looks like:

/dev/sda2 /home xiafs defaults 0 0
/dev/hda1 /not-root xiafs defaults 0 0
/dev/hdb2 /tmp xiafs defaults 0 0
/dev/sda3 /usr xiafs defaults 0 0
/dev/sda4 /usr1 xiafs defaults 0 0
/proc /proc proc defaults 0 0

So when I wont to use df, it forgets my / because it doesnt know about it.

My solution was to put following Line in /etc/rc before the mount command
appears:

/bin/echo "/dev/sda1 / xiafs defaults 0 0" > /etc/mtab

Now on an reboot my root device is listed correctly in /etc/mtab.

But i think it is not the correct way.

And sure i have no "rdev > /dev/mtab" in my /etc/rc !

Please correct this Bug wherever it is depending on, it may bee:
mount 0.99.6 or libc.so.4.3.3 or init or the kernel ?

thomas

-- 
Thomas Wieckhorst           +49 5192 18848                 thomas@thwieck.han.de
Kiefernweg 12                   GERMANY                  3042 Munster / Breloh 1