Hi...

I have found some problems with mount and special filesystems.
This is the relevant part of my /etc/fstab:

tmpfs /dev/shm tmpfs defaults,size=128M 0 0

And now I try to mount it:

werewolf:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     79908    156137  34% /
/dev/sda2              3099292   2080088    861768  71% /usr
/dev/sda3              4095488   1591936   2295512  41% /home
/dev/sda5              1027768         4    975556   1% /toast
/dev/sdb1              4232960     32840   4200120   1% /mnt/disk
werewolf:~# mount -a -t tmpfs
werewolf:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     79908    156137  34% /
/dev/sda2              3099292   2080088    861768  71% /usr
/dev/sda3              4095488   1591936   2295512  41% /home
/dev/sda5              1027768         4    975556   1% /toast
/dev/sdb1              4232960     32840   4200120   1% /mnt/disk
/root/tmpfs             131072         0    131072   0% /dev/shm
werewolf:~# cd /tmp
werewolf:/tmp# mount -a -t tmpfs
werewolf:/tmp# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     79908    156137  34% /
/dev/sda2              3099292   2080088    861768  71% /usr
/dev/sda3              4095488   1591936   2295512  41% /home
/dev/sda5              1027768         4    975556   1% /toast
/dev/sdb1              4232960     32840   4200120   1% /mnt/disk
/root/tmpfs             131072         0    131072   0% /dev/shm
/tmp/tmpfs              131072         0    131072   0% /dev/shm

???? Strange devices.... both mounted under /dev/shm.

BTW, look at /etc/mtab:
werewolf:/tmp# cat /etc/mtab
/dev/sda1 / ext2 rw 0 0
/procfs /proc proc rw 0 0
^
devpts /dev/pts devpts rw,mode=0620 0 0
/dev/sda2 /usr ext2 rw 0 0
/dev/sda3 /home ext2 rw 0 0
/dev/sda5 /toast ext2 rw 0 0
/dev/sdb1 /mnt/disk reiserfs rw 0 0
/root/tmpfs /dev/shm tmpfs rw,size=128M 0 0
^^^^^^^^^^^
/tmp/tmpfs /dev/shm tmpfs rw,size=128M 0 0
^^^^^^^^^^

Updating to util-linux-2.11.h corrects this:
werewolf:~# cat /etc/mtab
/dev/sda1 / ext2 rw 0 0
procfs /proc proc rw 0 0
devpts /dev/pts devpts rw,mode=0620 0 0
tmpfs /dev/shm tmpfs rw,size=128M 0 0
/dev/sda2 /usr ext2 rw 0 0
/dev/sda3 /home ext2 rw 0 0
/dev/sda5 /toast ext2 rw 0 0

(BTW, mount-2.11e and util-linux-2.11f were out of sync in current cooker)

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:[EMAIL PROTECTED]
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.7 #1 SMP Mon Jul 23 01:55:36 CEST 2001 i686

Reply via email to