Date: Thu, 16 Mar 2006 19:53:44 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: swap at beginning of slice - danger? Message-ID: <200603161853.k2GIrinA040326@lurza.secnetix.de> In-Reply-To: <20060316080758.GA3323@lorien.int.gecko.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Gunther Nikl <gni@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. Best regards Oliver -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603161853.k2GIrinA040326>