Skip to contentSkip to conversation

how to mount /dev/ram0 to /

DISCUSSION tony 2 participants 2 messages May 13, 2006

lore
Share & tools
lore

tony

author
#0 lore raw

linuxppc-embedded

Quoted 10 lines
Quoted 6 lines

after boot up,excute df to see the mount point:
~ # df
Filesystem 1k-blocks Used Available Use% Mounted on
~ #
nothing was mounted.

Your rc scripts probably did not care to update /etc/mtag as needed.

Check what "cat /proc/mounts" gives.

____________________________>>>>
cat /proc/mounts, it gives:
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,nogrpid 0 0
/proc /proc proc rw,nodiratime 0 0
#
by seeing this,so I make a root in /dev dir, it links to /dev/ram0,but still doean't work.

Quoted 8 lines
Quoted 5 lines

the fatab in /etc is like this:

/dev/ram0               /               ext2    defaults        1 1
none                    /proc           proc    defaults        0 0

anything wrong?

Probably no part of your rc scripts did anything with the information in /etc/fstab ...

------------------------>>
but,isn't it auto excuted?

thanks and regards,

tony

#1 lore raw
Quoted 5 lines · In message <44657B5A.00FD1A.21222> you wrote:
Quoted 3 lines

Probably no part of your rc scripts did anything with the information in /etc/fstab ...

------------------------>>
but,isn't it auto excuted?

Who should "auto execute" it if not one of your rc scripts??? ("execute" being a bad term, as the file is neither an executable itself not any kind of script - it's just a config file).

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Alles Gescheite ist schon gedacht worden, man muß nur versuchen,
es noch einmal zu denken.          -- Goethe, Maximen und Reflexionen