From: Guillaume Dargaud on
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

--
Guillaume Dargaud
http://www.gdargaud.net/


From: Jean-David Beyer on
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.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 08:50:01 up 35 days, 13:52, 4 users, load average: 4.24, 4.26, 4.20
From: Nico Kadel-Garcia on
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.
From: Doug Freyburger on
"Guillaume Dargaud" <use_the_form_on_my_contact_p...(a)www.gdargaud.net>
wrote:
>
> Does this seem normal ? I find having both rootfs and /dev/root mounted on /
> weird... It's a minimalist embedded linux system.

I've seen it but it seemed strange to me. Have not yet
had time to look up version differences and why a
"rootfs" type filesystem appears as an extra mount on
a few systems I support.

> # 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% /
...
> # mount
> rootfs on / type rootfs (rw)
> /dev/root on / type ext2 (rw)
...
> # cat /etc/fstab
> /dev/root       /              ext2     rw,noauto         0      1
...