On 20010726 Thierry Vignaud wrote:
>"J . A . Magallon" <[EMAIL PROTECTED]> writes:
>
>> Hi...
>> 
>> I have found some problems with mount and special filesystems.
>
>\troll{nop. you've found problems in  your brain.}
>

I love when people is polite.

>> This is the relevant part of my /etc/fstab:
>> 
>> tmpfs /dev/shm tmpfs defaults,size=128M 0 0
>
>
>which should have been :
>        none /tmp tmpfs  defaults,size=128M 0 0
>

Well, man mount:

       The proc file system is  not  associated  with  a  special
       device,  and  when mounting it, an arbitrary keyword, such
       as proc can be used instead  of  a  device  specification.
       (The  customary  choice  none is less fortunate: the error
       message `none busy' from umount can be confusing.)

<and devpts, tmpfs are just like proc>
It is even recommended that fake-device==fstype, so you get a usefull error
message.

>From kernel source, Documentation/Configure.help, (line 11812 in 2.4.7):

  You should mount the filesystem somewhere to be able to use
  POSIX shared memory. Adding the following line to /etc/fstab should
  take care of things:

  tmpfs     /dev/shm    tmpfs       defaults    0 0

I have been trying to get again util-linux-2.11e, to triple check and compare
mount sources with 2.11f and 2.11h, and there is no normal mirror which contains
2.11e. Strange, isn't it ? Finally, I got 2.11e at www.ch.kernel.org. They did not
do any cleanup...

I rebuilt mount-2.11e:

werewolf:~/soft/util/util-linux-2.11e/mount# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     83086    152959  36% /
/dev/sda2              3099292   2092872    848984  72% /usr
/dev/sda3              4095488   1603796   2283652  42% /home
/dev/sda5              1027768         8    975552   1% /toast
werewolf:~/soft/util/util-linux-2.11e/mount# ./mount -V
mount: mount-2.11e
werewolf:~/soft/util/util-linux-2.11e/mount# ./mount -a -t tmpfs
werewolf:~/soft/util/util-linux-2.11e/mount# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     83086    152959  36% /
/dev/sda2              3099292   2092872    848984  72% /usr
/dev/sda3              4095488   1603796   2283652  42% /home
/dev/sda5              1027768         8    975552   1% /toast
/home/soft/util/util-linux-2.11e/mount/tmpfs
                        131072         0    131072   0% /dev/shm
werewolf:~/soft/util/util-linux-2.11e/mount# ./umount -a -t tmpfs
werewolf:~/soft/util/util-linux-2.11e/mount# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     83092    152953  36% /
/dev/sda2              3099292   2092872    848984  72% /usr
/dev/sda3              4095488   1603796   2283652  42% /home
/dev/sda5              1027768         8    975552   1% /toast
werewolf:~/soft/util/util-linux-2.11e/mount# mount -V
mount: mount-2.11h
werewolf:~/soft/util/util-linux-2.11e/mount# mount -a -t tmpfs
werewolf:~/soft/util/util-linux-2.11e/mount# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1               248895     83092    152953  36% /
/dev/sda2              3099292   2092872    848984  72% /usr
/dev/sda3              4095488   1603796   2283652  42% /home
/dev/sda5              1027768         8    975552   1% /toast
tmpfs                   131072         0    131072   0% /dev/shm

Same compiler, same kernel, same everything, so the bug is in mount.
The truth is out there...........

-- 
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-ac1 #1 SMP Thu Jul 26 19:53:39 CEST 2001 i686

Reply via email to