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