The system will not keep sda as my boot drive


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users The system will not keep sda as my boot drive
# 1  
Old 10-27-2011
The system will not keep sda as my boot drive

Hi everyone!

A very frustrating night!!! I installed a new linux server on my system that has IDE drives and SATA drives. At the time of installation I only had IDE drive plugged in and that is where I install the linux. Everything works fine until I shut the system down and plug in my SATA backup drive. During boot, kernel panic appears and the system will not boot! My backup drive appears to be sda now!!!! And of course since my fstab has sda1 listed as the root partition it fails. I know you can assign certain drives using udev, but this happens before the system even boots.

The real question is, and I have been trying to find it all over the net and I am very surprised that nobody has even asked, and that is:

How can I keep my sda to be ALWAYS that IDE drive? Just like in the good old days when hda was always hda and as long as it is connected to the first IDE controller and it is the first drive it will always be hda and nothing else. This sda, sdb issue is really very frustrating, or I am missing something here?

Please help!!!!
# 2  
Old 10-28-2011
Anybody has an idea how to do this??
# 3  
Old 10-28-2011
It has been asked many times I'm sure, though perhaps not in the same way you're looking for it. It's not the boot order you're worried about, but Linux's disk detection order -- they really have little to do with each other.

Two ways.

1) Don't build the drivers for things you don't want to appear, in your kernel. Make them modules. The kernel won't see the disks you don't want until it loads enough for udev to start autoloading modules for you, by which time the disk you want will already be sda.

2) Use an initramfs system, a RAMdisk filesystem the kernel preloads, with software in it to detect and mount the right root disk and chroot into that.

We eventually ended up doing the latter, because our problem was more complicated -- RAID and non-RAID disks on the same controller -- but solution #1 might actually work if you're lucky.
# 4  
Old 10-29-2011
Corona688,

Thank you for your advice! In my situation, I have the two main drives configured for RAID on the motherboard controller, and the backup drive on the PCIe SATA controller. For some reason the kernel always detects the backup drive before the main drives (in other words loads the promise tech. driver before the AMD driver) so I end up with:

sda - backup drive
sdb - RAID drive 1
sdc - RAID drive 2

When I physically disconnect the backup drive, the main drives appear as sda and sdb. I think I will end up trying your second solution first and if that fails will play with loading modules for the promise tech. controller after the system boots.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Hard Drive Copy results in differences on boot

I have an old Pentium 4 PC running Solaris 9. The system has two 40gig IDE hard drives. I removed the drives and, using a hard disk duplicating device, "cloned" both drives. I installed the new drives in the PC. The system boots but I get a message that X-Term will not run on the console. If I... (4 Replies)
Discussion started by: ddogarmyman
4 Replies

2. UNIX for Dummies Questions & Answers

boot option Available partitions 0b00 1048575 sr0 driver:sr 0800 488386584 sda driver:sd

Help, suspect hacked via serial or electric! any ideas on error "Pid:1, comm:swapper Tainted:G W 2.6.35-22 generic #33 -unbutu device = "(null)" or unknown-blocklist(8.1) please append a correct "root"boot option Available partitions 0b00 1048575 sr0 driver:sr 0800 488386584 sda driver:sd. Thanks... (3 Replies)
Discussion started by: kryclear
3 Replies

3. Hardware

[Solved] Boot Lockup After Drive Swap

Hey All, Im using Fedora 2.6 (which is cannot be changed for compatibility reasons). I cloned a drive from a different server and when i added this drive to a new box, during startup it hangs on "Configuring Kernel Parameters:" Is there any way to bypass this process and still boot... (0 Replies)
Discussion started by: robfwauk
0 Replies

4. Solaris

Help Mirroring Boot drive

How do I mirror the boot drive, which I believe is /dev/dsk/c1t0d0s0. Filesystem size used avail capacity Mounted on /dev/dsk/c1t0d0s0 16G 457M 15G 3% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K ... (7 Replies)
Discussion started by: Kjons76
7 Replies

5. Homework & Coursework Questions

Changing Drive to be /Boot

Posted in wrong area, post can be deleted, my appologies. (0 Replies)
Discussion started by: derbarbarian
0 Replies

6. Solaris

Boot Solaris off of an old external hard drive

Hi Folks, First a little background, I am working on a ship that operates in the Indian Ocean and Persian/Arabian gulf area. We had a Sunblade 2000 that finally died. The Video board burned up and I guess damaged the mother board. So we ordered 2 rebuilt 2000s one as a spare. Due to mounting... (1 Reply)
Discussion started by: Sean.kelly
1 Replies

7. Solaris

Boot options - DVD drive read error

I was wondering if there was a way to boot from openboot from the dvd drive. I was thinking about imaging the dvd to a blank drive and going about it that way. I just need to do a flash install. (5 Replies)
Discussion started by: adelsin
5 Replies

8. Solaris

Solaris 10 and zfs on boot drive

Has anyone installed Solaris 10 10/08 and enabled zfs on the boot drive? We're considering enabling zfs boot on some upcoming production machines and I was curious if anyone here has experiences they wish to share. (1 Reply)
Discussion started by: dangral
1 Replies

9. Ubuntu

Boot Floppy made in external drive

there is probably another post about this, i just can't find it on unix.com or google. basically, i am trying to make a boot floppy via CLI/terminal. the problem is that i use an external drive. when i do the first couple of steps, i get rejected. when i do the mounting and unmounting, all the... (4 Replies)
Discussion started by: Texasone
4 Replies

10. Solaris

Cloned drive won't boot ?

Solaris system version 6 I cloned the drive using the DD command. Using the format command and examining the partitions, all looks the same as the original drive. Problem: When I attach the cloned drive as the master, and only drive in system, it will not boot. Error messages: ... (9 Replies)
Discussion started by: HikerLT
9 Replies
Login or Register to Ask a Question