I just found the following in the Debian Install manual (Appendix C.1
http://www.debian.org/releases/sarge/i386/apcs01.html.en):
# If not, you can put an entire recipe in one line. This example creates
# a small /boot partition, suitable swap, and uses the rest of the space
# for the root partition:
#d-i partman-auto/expert_recipe string boot-root :: \
# 20 50 100 ext3 $primary{ } $bootable{ } method{ format } format{ } \
# use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . \
# 500 10000 1000000000 ext3 method{ format } format{ } \
# use_filesystem{ } filesystem{ ext3 } mountpoint{ / } . \
# 64 512 300% linux-swap method{ swap } format{ } .
# For reference, here is that same recipe in a more readable form:
# boot-root ::
Perhaps this is what I need - a small boot partition, and the rest can be in the
root partition. Any thoughts?
Anil Gupte
www.keeninc.net
www.icinema.com
----- Original Message -----
From: "Johannes Wiedersich" <[EMAIL PROTECTED]>
To: <debian-user@lists.debian.org>
Sent: Monday, July 03, 2006 3:41 PM
Subject: Re: Installing on a small root partition
Anil Gupte wrote:
BlankNeed help and advice.
This system happens to be in a place where there are frequent power
losses. So, my plan is to have a small root partition (say about
100MB), and make it a read-only partition. This way, there will be
no corruption on constant reboots. The apps, logs etc will be on a
separate partition.
Look at the installation manual, in particular:
http://www.de.debian.org/releases/stable/i386/ch02s05.html.en
http://www.de.debian.org/releases/stable/i386/apbs02.html.en
Also read the reminder of appendix B.
/etc has to be a subdirectory of / *and* /etc has to be writable on boot
(/etc/mtab contains mount information). This renders your scenario very
difficult, if not impossible to achieve.
http://gentoo-wiki.com/HOWTO_Read-only_root_filesystem
lists some suggestions for gentoo.
I suggest, like another poster, to use a journaling fs like ext3 as your root
partition.
IIRC /usr could be turned in a read-only partition, since it contains only
static information and has to be mounted rw only on software upgrades.
HTH,
Johannes
PS: Don't attach unnecessary gifs to your mails.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject
of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]