Date: Wed, 3 Feb 2010 11:21:56 -0700 From: Steve Franks <bahamasfranks@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: adding disk moves ad0 to ad4 Message-ID: <539c60b91002031021p4c08f382he33ace83cfa3466@mail.gmail.com> In-Reply-To: <20100203185415.74e05d77.freebsd@edvax.de> References: <539c60b91002030935m31f66c6ft247f1231ad61656@mail.gmail.com> <20100203185415.74e05d77.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 3, 2010 at 10:54 AM, Polytropon <freebsd@edvax.de> wrote: > On Wed, 3 Feb 2010 10:35:48 -0700, Steve Franks <bahamasfranks@gmail.com>= wrote: >> Just curious, having read the handbook section talking about freebsd >> going straight to the hardware and skipping the bios for disk >> numbering, why then, if I stick a sata disk in 'sata0' on the >> motherboard, does it come up as ad0, but if I add a second disk in >> 'sata1' or 'pata0', on the next boot, I have no ad0, but ad4 and ad6? >> This seems to be the case with every mobo I've owned in the last 2 >> years from a variety of mfr's. =A0Is there a way around this? > > Maybe this is specific to your motherboard. As far as I > experienced, using (P)ATA and SATA - or not using it - > keeps the numbering intact, e. g. ad0 - ad3 is ATA, > ad4 - ad7 is SATA, no matter where a disk is actually > connected. > > It's possible that your BIOS does something strange in > representing one SATA, but no ATA disk as ad0, "the first > disk existing", as well as if an ATA disk would be present, > but no SATA disk. > > I can understand that this is annoying. > > > >> I don't >> care what it comes out as, as long as it stays put... > > There are labels or UFSIDs you can use to identify partitions > on a disk regardless of the device name they would come > out as. See "man glabel" and "man tunefs" for details. > > > >> Since I have >> the only fbsd system at work, I tend to format alot of funky drives >> for people, and it gets anoying having to swap fstab's every time... > > Labels can really help here: /etc/fstab will then contain > labels or UFSIDs instead of device names - and they don't > change when a disk is added or removed. > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > I knew there had to be a solution! Thanks! Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?539c60b91002031021p4c08f382he33ace83cfa3466>