Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 04:40 PM
Guillaume Dargaud
 
Posts: n/a
Default Strange mount

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/


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 04:40 PM
Jean-David Beyer
 
Posts: n/a
Default Re: Strange mount

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 04: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 04:40 PM
Doug Freyburger
 
Posts: n/a
Default Re: Strange mount

"Guillaume Dargaud" <use_the_form_on_my_contact_p...@www.gdargaud.ne t>
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

...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62