On Sun, 23 Jan 2005 22:31:58 +0200, Ville Syrjälä <[EMAIL PROTECTED]> wrote: > > Are you sure you haven't mounted /dev/shm before /dev? I just tested > this on my system and mounting foo with a size limit and foo/bar without > a limit works as expected. > > -- > Ville Syrjälä > [EMAIL PROTECTED] > http://www.sci.fi/~syrjala/ >
The order in which the two are mounted is unknown to me (init scripts of Debian 3.0), but I can confirm your tests. In my situation: This is the situation: debian:~# mount /dev/hda3 on / type reiserfs (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw) none on /dev type tmpfs (rw,size=15M,mode=0755) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) debian:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda3 8.2G 3.7G 4.5G 46% / tmpfs 443M 21M 423M 5% /dev/shm none 15M 12M 3.7M 76% /dev As you can see /dev is 15MB big and /dev/shm is 443MB big. With this situation, I've succeeded writing a file bigger than 15MB in /dev/shm. In order to get DirectFB I only changed the size of /dev, the size of /dev/shm was by default 443MB (50% of installed RAM?) Taoufik