Install Debian To CF
Install Debian To CF
1. Do not format a swap partition (not a problem, have 4GB of memory for a system that will
probably use <256MB.
2. Don't use ext3 as its journaled (so what file system should I use? ext2?)
5. Mount filesystem as read only (is this really necessary, and if so how is it done)
In case anyone is wondering, the system is basically going to be a NAS. It will run OpenSSH,
ifenslave-2.6, and iscsitarget ONLY (besides a standard system install). I got tired of dealing with
FreeNAS and Openfiler, so I played around with creating RAID arrays and ethernet bonding and feel I
can do it better myself.
If anyone could answer some of the questions, or provide any more tips for reducing writes to a CF
card I'd be much appreciative.
/etc/defaults/rcS
RAMRUN=yes
RUNOCK=yes
that changes /var/lock and /var/run to tmpfs
-for the network you must change directory /etc/networking to /var/ (each boot, ifstate file)
-fstab
/dev/"cf_card" / defaults,noatime,ro 0 0
No Swap
EXT2
Changes to /etc/fstab
/dev/"cf_card" / defaults,noatime,ro 0 0 - Changes the root file system to read only, and turns
off file modification counts
none /tmp tmpfs defaults 0 0 - Changes the /tmp directory to a tmpfs
none /var/tmp tmpfs defaults 0 0 - Changes the /var/tmp directory to a tmpfs
none /var/log tmpfs defaults 0 0 - Changes the /var/log directory to a tmpfs
Changes to /etc/defaults/rcS
and finally
"tune2fs -c 0 /dev/hdaxx" "and tune2fs -i 0 /dev/hdaxx" - Stops mount counts and interval
between file system checks.
Just have 2 more questions. Say I make all these changes, and want to run apt-get upgrade later will
it work? Or will I have to change the / file system to read-write? This leads me into my next question,
can I put everything in one partition(the default install)? Or do I need to have separate partions.