ts-7000
[Top] [All Lists]

Re: [ts-7000] How to use tmpfs on TS-Linux?

To:
Subject: Re: [ts-7000] How to use tmpfs on TS-Linux?
From: Jim Jackson <>
Date: Wed, 12 Oct 2005 10:55:52 +0100 (BST)

On Mon, 10 Oct 2005, Mike Dodd wrote:

> Still trying to figure out how to make a RAM filesystem, I have a
> question about tmpfs. Is this enabled in the TS-Linux kernel, and how
> do I use it?
>
> According to info I found on the Web, tmpfs is part of the 2.4 kernel,
> and I should be able to mount it with:
>   mount tmpfs /mnt/tmpfs -t tmpfs
> /mnt/tmpfs exists; I created it. But I get an invalid argument error.
>
> I also found this on the Web: 'To use tmpfs, all you need is a 2.4
> series kernel with "Virtual memory file system support (former shm
> fs)" enabled; this option lives under the "File systems" section of
> the kernel configuration options.'
>
> Is there something special I need to do when booting to enable virtual
> memory file system? Where are the kernel options?

Mike, it depends whether the kernel was built with that option, or if it
is available as a module.

What have you done to create a ramdisk?

Unfortunately my TS7200 is not operational (I'm doing some case work and
it's all in bits on the bench) so can't check.

There should be a device /dev/ram

Ram disk size is a preset in the kernel - usually 4MB

You need to build a filesystem on /dev/ram, so e.g.

 mkfs -t ext2 /dev/ram

You might need to tweak the parameters with tune2fs, for instance the
option -m 0  so there are no reserved blocks.

Then you mount the filesystem....

 mount -t ext2 /dev/ram /mnt

Jim



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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