ts-7000
[Top] [All Lists]

[ts-7000] Re: creating a RAMDISK on a TS7250

To:
Subject: [ts-7000] Re: creating a RAMDISK on a TS7250
From: "Charles" <>
Date: Mon, 08 Feb 2010 01:14:20 -0000

--- In  "naturalwatt" <> wrote:
>
> I know this has already been answered, but what I do on the Ts7250 (or 
> anything with the TS 2.4 kernel) is add this to /etc/fstab:
> 
> ramfs /tmp ramfs 0 0
> 
> This gives me /tmp as a volatile filesystem that I do all the application 
> logging to, and temporary files. The files there are lost during a power 
> cycle  but at least it's not wearing out Flash.  And it's a lot faster than 
> Flash.

But size, if specified, is not respected by ramfs: it can grow until you run 
into memory problems.

tmpfs will respect the size you give it, and error out if you try to go over, 
so you never squeeze out ram too far.  (Important on a ram constrained machine).

tmpfs is good for a system-wide /tmp mount.  ramfs might be OK for specialized 
applications, or for a system-wide /tmp if you know exactly what is running 
that writes to /tmp.

regards .......... Charlie

> 
> --- In  "gbever2003" <gbever@> wrote:
> >
> > I need to create a small RAM disk on the TS7250. I have found much material 
> > relating to doing that in Linux, but they all require the utility 'mke2fs' 
> > or 'mkfs.'  These do not appear to exist in the standard Linux load of the 
> > TS7250 which I bought in August 2009 (I have ts_linux v1.03--uses Busybox).
> > 
> > Does anyone know how I can create a RAM disk in this environment?  I would 
> > prefer not to have to boot Debian--which uses GNU instead of Busybox and 
> > might have mkfs command.  I have seen references in the 'arm-linux-ts72xx' 
> > July 2009 manual (page 24) to using a ram disk to boot to a USB, but it 
> > begs the question of creating the RAM disk.
> > 
> > Here is what I have found in Linux literature:
> > 
> > mkdir /mnt/ramdisk
> > mknod -m 660 /dev/ram b 1 1
> > dd if=/dev/zero of=/dev/ram bs=1k count=4k
> > mkfs.ext2 /dev/ram (or mke2fs -t ext2 /dev/ram)
> > mount -t ext2 /dev/ram /mnt/ramdisk
> > 
> > then 'ls /mnt/ram' should show a directory of the ram disk.
> > 
> > This works on Knoppix Linux.
> > 
> > The first three steps appear to work on the TS7250, but the command for 
> > creating the file structure on the 'disk' (mkfs) does not as mkfs does not 
> > exist.  I can't very well format the native RAM of the TS7250 on another 
> > Linux system and port it over.
> > 
> > Any suggestions?
> >
>




------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> 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