List Info

Thread: What's difference between using RamDisk to load USB and using chroot to USB




What's difference between using RamDisk to load USB and using chroot to USB
user name
2006-11-29 00:37:31
On Tue, Nov 28, 2006 at 11:15:09PM -0000, chentom60 wrote:
> Joe,
> 
> Thanks! 
> 
> I also enjoy using debian on a huge USB drive rather,
but I keep 
> wondering if this is safe or not. Very good
explanation! 
> 
> One more question, if you mount a read-only file
system, how can you 
> save something later on? for example, if the file
system is read 
> only, how could you create some temperary files duing
the operation? 
> Is it possible to make /bin read only but /tmp
read-write? 

On my TS-7200 I create a small ramdisk (like 100kb I think),
which is used for
/tmp and /var/run in read/write mode.  I can't remember the
details really, but
basically I just followed the instructions in the TS
developer's manual.  The
default kernel doesn't include tmpfs, but my rebuild does. 
If you don't want to
rebuild the kernel, I've used the flashram for /tmp, etc. 
When the SBC is
running in production, it doesn't need to write to disk, or
maintain anything
between reboots (per my requirements).

If I need to make a manual change (like edit a configuration
file), I just
"mount / -o remount,rw", do the change, and
"mount / -o remount,ro", but in
production /rootfs stays readonly.

Hope that helps.

Joe


 
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://gro
ups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:ts-7000-digest@yahoogroups.com 
    mailto:ts-7000-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    ts-7000-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )