ts-7000
[Top] [All Lists]

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

To:
Subject: [ts-7000] Re: How to use tmpfs on TS-Linux?
From: "Mike Dodd" <>
Date: Thu, 13 Oct 2005 10:24:33 -0000
> I think it fair that they assume some linux knowledge and essentially
> concentrate on where there product has specifics.

I agree, and I have some linux knowledge. Alas, tmpfs is new, and I'm
trying to learn how (or it) it is implemented on the TS-7250.
 
> You don't "switch on " features in the linux kernel like you
> indicate. You may pass parameters/variables.

That's what I meant; sorry I wasn't more clear.

> tmpfs is not an alternative to ramdisks. A kernel can support both.

Agreed. But my question was, if tmpfs is used is it still NECESSARY to
do the stuff with ramdisk? My Google search results seem to indicate
it is not. It appears that tmpfs doesn't require (for example) a
/dev/ram device or creating a filesystem on it. tmpfs appears to be a
complete filesystem itself, and is ready for mounting.

> If the kernel was compiled with tmpfs it is there - period.
> There is a list of inbuild filesystems that the current kernel supports
>   cat /proc/filesystems

Thank you; I'll check that out.

> I'm at home so I've just checked the config file for my last
> kernel build (last Xmas! boxing day actually - sad) and it appears
> the TS build doesn't enable TMPFS. As far as I remember, I only
> enabled a couple of kernel options ontop of the basic TS build.
> It appears that RAMFS support is built in.

I'm starting to believe the kernel was built without tmpfs. Last night
I was able to mount two ramfs points just fine, but not tmpfs. It
appears that ramfs will work the same as tmpfs for my application. All
I need is a place to put volatile files while I mount the root
filesystem read-only.

> Does /dev/ram1 /dev/ram2 etc exist?

No. My board has no /dev/ram... devices. However, this doesn't stop
mount from mounting ramfs points:
   mount -t ramfs none /mnt/my_ramfs -o maxsize=512

This works perfectly; I can copy files to /mnt/my_ramfs and open them
in vi. Adding this line to /etc/fstab mounts the point at boot time:
   none  /mnt/my_ramfs  ramfs  maxsize=512  0  0

So I think I'm getting close to what I need. I'm still curious about
tmpfs on the TS-7250 (since the Techologic document showed how it
should work), but if ramfs works, I'll take that.

Thanks for your information and suggestions.

Mike






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