Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] ESATA drive changes the root device -- how to deal with it?
Date: Thu, 11 Jun 2009 15:32:51
Message-Id: h0r825$c7n$
1 Okay, my root partition is on /dev/sda (normally), which is a sata
2 drive connected to the onboard sata controller.
4 The problem is that I also have a plug-in ESATA docking station, which
5 is not always powered on. When it *is* powered on, my kernel names the
6 disk /dev/sda, and that forces the root device to be named /dev/sdb
7 instead of sda. Crashing ensues during bootup.
9 The machine's BIOS doesn't even recognize the ESATA controller, so
10 I can't fiddle with anything there.
12 Anyone have any ideas how to get a kernel to mount the root partition
13 based on the pci slot number or something equivalent?
15 I've tried using a disk label in fstab instead of a device name, but the
16 problem is that the kernel mounts the wrong partition before it has a
17 chance to read fstab.
19 I've also tried using rdev to set the root device to the disk's major
20 and minor numbers but that fails because the kernel switches the minor
21 device numbers along with the device names.
23 Any clues would be much appreciated.