Thread: Strange mount
View Single Post

   
  #3 (permalink)  
Old 04-24-2008, 05:40 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Strange mount

Jean-David Beyer wrote:
> Guillaume Dargaud wrote:
>> Hello all,
>> Does this seem normal ? I find having both rootfs and /dev/root mounted on /
>> weird... It's a minimalist embedded linux system.
>>
>> # df
>> Filesystem Size Used Available Use% Mounted on
>> rootfs 394.6M 7.9M 386.7M 2% /
>> /dev/root 394.6M 7.9M 386.7M 2% /
>> tmpfs 62.3M 28.0k 62.3M 0% /tmp
>>
>> # mount
>> rootfs on / type rootfs (rw)
>> /dev/root on / type ext2 (rw)
>> proc on /proc type proc (rw)
>> devpts on /dev/pts type devpts (rw)
>> tmpfs on /tmp type tmpfs (rw)
>>
>> # cat /etc/fstab
>> /dev/root / ext2 rw,noauto 0 1
>> proc /proc proc defaults 0 0
>> devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
>> tmpfs /tmp tmpfs defaults 0 0
>>

>
> It does not seem normal at all. Why would you put any file system in /dev ?
> Why not mount the root file system on / ?
>
> You better be more clear what you are trying to do.


Friend, you need to look up devpts. It normally goes there, for handling pty
or pseudo-terminal devices.

The root file system *IS* mounted on /. A lot of embedded devices have a
little static, read-only / partition, which provides editable access to a RAM
based file-system on top of it via all sorts of cute tricks.

Try booting with an Ubuntu live CD and see what you get, for comparison.
Reply With Quote