swap at beginning of slice - danger?
olli at lurza.secnetix.de
Thu Mar 16 18:53:51 UTC 2006
Gunther Nikl <gni at gecko.de> wrote:
> Oliver Fromme wrote:
> > By the way, the first partition on a disk is usually the root partition,
> > not the swap partition. So the problem could arise only in unusual
> > circumstances.
> IMHO this is a very dangerous assumption
It's not an assumption. It's the layout that most people
use. It's also the sysinstall default, first because of
historical reasons, and second because some BIOSes can't
boot if the root partition is too far from the start, so
it's best to put it at the very front of the disk.
Of course there are people who don't adhere to the default
settings, for whatever reason. But those should know what
they're doing. As I said, both swap and UFS skip the
first sectors, so there is no danger.
If you put other things on your partitions (e.g. a FAT FS)
which _do_ use the first sectors, then you should make
sure that your partition doesn't start on sector 0 of the
disk. Otherwise you will notice very quickly. :-)
Anyway, that was always the case, and people never had any
problems with it. At least I can't remember any complaints
about it in the past few years.
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"I have stopped reading Stephen King novels.
Now I just read C code instead."
-- Richard A. O'Keefe
More information about the freebsd-stable