ts-7000
[Top] [All Lists]

[ts-7000] How to make a RAM disk?

To:
Subject: [ts-7000] How to make a RAM disk?
From: Mike Dodd <>
Date: Sun, 09 Oct 2005 19:51:08 -0400
Hello, Eddie.

I'm stuck trying to understand how to mount the root filesystem read-only 
for an embedded application. Section 3.5 in the TS-Linux Developers Guide 
gives steps to do this, including creating two small read-write ramdisk 
partitions with these lines in /etc/fstab:

tmp_log /var/log tmpfs size=512K 0 0
tmp_var /var/run tmpfs size=100K 0 0

What is tmpfs? I don't see it in /dev or, in fact, anywhere on TS-Linux's 
filesystem. Is this the RAM disk? How is it created? Do I have to do this 
myself? There's nothing in section 3.5 that explains this.

Looking at TS-Linux FAQ, I see this about making a RAM disk:

mke2fs -vm0 /dev/ram0 1024
cd /mnt
mkdir ramdisk
mount /dev/ram0 /mnt/ramdisk

However, I am unable to find mke2fs in TS-Linux. Can you tell me where to 
find it? I see no mkfs or any other command that looks like it makes a 
filesystem (except mkfs.minix).

Will you please clarify the steps I should take to create the RAM disk?

Also, once I get the root filesystem mounted read-only, how can I change it 
back to read-write? Should I log in via the console and remount it r/w, 
then edit sysinit to do that with every reboot?

Thanks for your help.

Mike

------
Mike Dodd - Montpelier, VA
http://www.mdodd.com



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU