[Wylug-discuss] Running from usb

tom hall thattommyhall at gmail.com
Sun Sep 17 13:11:09 BST 2006


ive been building a few NASs with a custom debian install running from
a usb flash memory stick, using these instructions
http://feraga.com/node/30
basically the trick is mounting as many of the oft-written filesystems
in ram as you can

"""
#/etc/fstab
/dev/sda2        /          ext2    defaults,errors=remount-ro,noatime 0 1
/dev/sda1       /boot          ext2    defaults,noatime                   0 1
none            /proc          proc    defaults                           0 0
tmpfs           /etc/network/run tmpfs defaults,noatime                   0 0
tmpfs           /tmp           tmpfs   defaults,noatime                   0 0
tmpfs           /var/lock      tmpfs   defaults,noatime                   0 0
tmpfs           /var/log       tmpfs   defaults,noatime                   0 0
tmpfs           /var/run       tmpfs   defaults,noatime                   0 0
tmpfs           /var/tmp       tmpfs   defaults,noatime                   0 0
"""

This is not as neat as i would like, zero writes (with the option of
syncing to disk) is what im after.

Ive seen UnionFS and think it maybe what im after, but am open to suggestions.
ideally, id like the system loaded into ram, changed there and synced
on command to the stick.

cheers, tom



More information about the Wylug-discuss mailing list