LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-26-2005, 10:51 PM   #1
hostile1
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
Question Re-ordering the hard drives during install... impossible??


Hello everyone,

I have been banging my head against the brick wall which is the Debian installer.

I am trying to install to a system with 5 hard drives:

1) Boot drive on an Adaptec 29160
2) 2 x 120 GB on a vanilla Promise ATA 133 controller (Linux software RAID)
3) 2 x 250 GB on the motherboard's Intel ICH5 SATA controller (Linux software RAID)

Here's the issue:

The BIOS orders everything like it should:

IDE, SCSI, SATA

I then disable booting from IDE in the BIOS, and change it to SCSI. The BIOS on this board will actually identify each hard drive separately, so you can choose which to boot from.

The Debian installer, however, for some asinine reason identifies the drives in a completely backwards order!

So my SCSI drive which should be /dev/sda is labelled as /dev/sdc in the installer!!

Red Hat 9 and all derivatives thereof actually have an option when configuring the boot loader to re-order the drives, so you can put /dev/hda ahead of /dev/sda, thereby changing your device.map for you.

How can I do this with Debian during install??

I came over to Debian a few months ago from the Red Hat world after installing Ubuntu on my latop, falling in love with it, then building a couple of servers with Debian.

This whole process is frustrating me, and turning me off *very* quickly.

Does anyone know how I can work around this issue? I don't want to go back to RPM hell...

Thanks in advance,

- Lance
 
Old 10-27-2005, 06:25 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Hostile,

If I understand well, you have one SCSI drive which you want to boot from, connected to the Adaptec. You expect this to be /dev/sda.

Then you have two SATA disks connected, and you expect these to be /dev/sdb and /dev/sdc.

During installation, Debian insists dat the SCSI/Adapted is /dev/sdc

Correct?

What happens if you mount de root dir on /dev/sdc (as Debian proposes) and actually boot from /dev/sdc? Is it not possible to make your BIOS doing that?

Another alternative:

Install your root partition on /dev/sdc (The SCSI adaptec)
Use either the Debian installer or grub-install afterwards to install an MBR on any of the disks that the BIOS wants to boot, for example /dev/sda

Some clarification why this would be no problem.
The space of the MBR is not being used by any disk.
You can install the actual boot loader (that is everything you need to boot, minus the MBR) on any disk, on any partition. (for example /dev/sdc1/boot)
You can install the root dir on any disk on any partition, just as you like it.

Does that help?

jlinkels
 
Old 10-27-2005, 08:49 PM   #3
hostile1
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
If I understand well, you have one SCSI drive which you want to boot from, connected to the Adaptec. You expect this to be /dev/sda.
Correct. The BIOS id's the Adaptec first, and the SATA controller second, so why Debian is pushing it to the back of the order baffles me.

Quote:
Then you have two SATA disks connected, and you expect these to be /dev/sdb and /dev/sdc.
Correct.

Quote:
During installation, Debian insists dat the SCSI/Adapted is /dev/sdc
Correct.

Quote:
What happens if you mount de root dir on /dev/sdc (as Debian proposes) and actually boot from /dev/sdc? Is it not possible to make your BIOS doing that?
If I install to /dev/sdc1, grub fails.

Quote:
Another alternative:

Install your root partition on /dev/sdc (The SCSI adaptec)
Use either the Debian installer or grub-install afterwards to install an MBR on any of the disks that the BIOS wants to boot, for example /dev/sda
I make a habit of never installing to the MBR, always /dev/(x)da1. I have tried what you have suggested anyways, and has not worked thus far.

Quote:
Some clarification why this would be no problem.
The space of the MBR is not being used by any disk.
You can install the actual boot loader (that is everything you need to boot, minus the MBR) on any disk, on any partition. (for example /dev/sdc1/boot)
You can install the root dir on any disk on any partition, just as you like it.
With how I am laying out this system, for the purposes of imaging and easy replacement of the boot drive should it fail, I wish everything neatly contained on /dev/sda, and to boot from /dev/sda1.

After having done some more research, the identification order of SCSI devices is left up to libata. libata is what is completely screwing people up with a mix of both SCSI and SATA devices in their systems. It identifies both as SCSI devices, and gives no means to arrange the order prior to boot.



At least any RH-based variant has the option when installing the boot loader to change the drive order, something Debian lacks.
 
Old 10-27-2005, 11:26 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Ok,

I recognize the feeling. "There might be a workaround, but I have certain habits and I want to stick to them".

It happens occasinally to me as well. This is the spirit that people make find solutions, or do whatever is necessary to reach their goal.

Since I do not have a system with SATA disks, I am afraid I cannot help you any further. Since the day I switched from RH to Debian, I haver never regret this. (Ok, well, I did for 2 or 3 weeks, but then I started to understand what I was doing ). It would be a pity if the Debian community would lose you.

jlinkels
 
Old 10-28-2005, 01:14 AM   #5
hostile1
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy I surrender..

Well... this is how much I want to stick with Debian...

I have removed the SCSI setup from this new machine (which is to be my new server), and have gone with a new IDE boot drive.

This really pisses me off that I have to do this. I can use CentOS and have everything work just fine with SCSI, but I really want to stick with Debian.

So, I am now attempting (and I'm guessing here) my 20th+ install over the last week.

If this works, I'll post back and let you know. If it doesn't... I'm installing CentOS and being done with it.
 
Old 10-31-2005, 11:35 PM   #6
deception
LQ Newbie
 
Registered: Oct 2005
Location: NL
Distribution: Debian,Suse
Posts: 17

Rep: Reputation: 0
Is a option to remove the spare disks first.
This way the installer can see only one disk.
Maybe after installing the disks again after installation the drive order rearranges everything again, I don't know.

Maybe fiddle around with the adaptercards in the pci-slots?

Rearrange the boot order in the bios to boot from the specific adaptercard?

You mentioned "software raid".
Did you backup you're data?

I tried to import my software raid disks in a new setup, lost the whole bunch.
Made some big mistakes most likely, anyway if those disks are full, it's very hard to love debian after loosing the data. Is my experience.

Grtz Decep.
 
Old 10-31-2005, 11:52 PM   #7
hostile1
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Is a option to remove the spare disks first. This way the installer can see only one disk. Maybe after installing the disks again after installation the drive order rearranges everything again, I don't know.
You're right, I could do this.

Quote:
Maybe fiddle around with the adaptercards in the pci-slots?
Historically, this would be correct. However, in this situation, it's a limitation of how libata is ordering the drives.

Quote:
Rearrange the boot order in the bios to boot from the specific adaptercard?
Despite correctly arranging the cards in the BIOS and in the PCI slots... libata coupled with grub still does not allow for IDE/SATA/SCSI to play nicely.

Quote:
You mentioned "software raid". Did you backup you're data?
I'm building a new server, then migrating the data from my exsisting server once everything has been set up. Data backup on this new install is irrelevant at this point.

Quote:
I tried to import my software raid disks in a new setup, lost the whole bunch.
Oh, I'm not trying to import a Windows fakeRAID. I'm setting up a Linux software RAID using the onboard SATA controller.

That sucks losing all of your data. I've had that happen a couple of times...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install more than 2 hard drives on PC ? TigerLinux Linux - Hardware 5 09-27-2005 04:19 PM
Debian install with 2 Hard Drives AndeAnderson Linux - Newbie 3 04-04-2005 09:24 AM
No hard drives on install? FraQture Linspire/Freespire 3 12-21-2004 06:51 PM
Mandrake 10 install, can't read hard drives? Watch Mandriva 1 07-05-2004 05:40 PM
install recommendations (hard drives question) jasonmantey Linux - Newbie 2 05-20-2004 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration