View previous topic :: View next topic |
Author |
Message |
Entropy42 n00b
Joined: 05 Mar 2004 Posts: 56
|
Posted: Thu Feb 02, 2006 5:06 am Post subject: Changing drive controller boot order |
|
|
I'm in the process of installing Gentoo on a new fileserver box. It will be running RAID 5, but the root partition will not be RAIDed for simplicity.
I'm having a problem with drive ordering though - My motherboard is an EPoX EP-9NPA+ SLI, which has a total of 6 SATA ports. 4 are supplied by the NForce4, 2 are supplied by a Silicon Image controller. In both my BIOS and the Gentoo Install LiveCD for AMD64, the NForce controller was detected first, and hence the drive connected to the first port on that controller (SATA 1 on my new mobo) was mapped to /dev/sda
Now for the problem - after rebooting with a freshly compiled kernel, the Silicon Image controller is now getting detected first, and as a result, what SHOULD be /dev/sde on my system is now /dev/sda, and what SHOULD be /dev/sda is currently /dev/sdb
How can I change the order that Linux assigns the drives in?
I used to know how to do this, but it's been years since I've done something like this and I've forgotten where to look.
Edit: Oh, one other thing - GRUB thinks the drives are in the correct order (hd0 = first drive on the NV controller). It's just the kernel that is getting confused. |
|
Back to top |
|
|
Zaventh n00b
Joined: 30 Jan 2006 Posts: 16
|
Posted: Thu Feb 02, 2006 2:01 pm Post subject: |
|
|
Can't you just write down what the new drive assignments are in /dev, boot into the gentoo install cd enviroment, edit your fstab with the proper values and reboot? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
|
Back to top |
|
|
Entropy42 n00b
Joined: 05 Mar 2004 Posts: 56
|
Posted: Thu Feb 02, 2006 10:10 pm Post subject: |
|
|
Zaventh wrote: | Can't you just write down what the new drive assignments are in /dev, boot into the gentoo install cd enviroment, edit your fstab with the proper values and reboot? |
When the BIOS drive order and Linux drive order differ, the potential for Very Bad Things can occur.
widan's post which nixnut linked to is exactly the solution I need. Thanks nixnut! I'm recompiling my kernel now. |
|
Back to top |
|
|
|