View previous topic :: View next topic |
Author |
Message |
stdPikachu Apprentice
Joined: 10 Mar 2004 Posts: 254 Location: UK
|
Posted: Sat May 15, 2004 6:12 pm Post subject: Pre-installation - weird hard drive assignment |
|
|
Having just got my MythTV box installed properly with everything working (yay!), I'm about to replace my ancient RH installation on my desktop with a nice fresh Gentoo installation.
As such, I was mucking about with adding a new hard drive and stuff, and have discovered a rather odd "error". I'm posting this before I install since I'm unsure if it'll cause problems later on.
System disc boots off the motherboard IDE0 (primary master) controller - you'd expect this to be hda1.
There are two other disks hanging off a 2-port Promise TX2 IDE controller in a PCI slot that are used for holding documents and music. I just booted the system up with a Gentoo LiveCD to do a bit of pre-install partitioning and formatting, and a very weird thing happens.
The 120GB drive I just installed on IDE0 of the Promise Controller gets reported as hda. The second drive on this controller gets reported as hdd and the primary system drive (the one I'll be installing Gentoo onto) is shown as hde.
I'm sure I could prolly just install and be damned, but I had problem a while back with a Debian install onto a disc that wasn't seen as hda (I thought only Windows was that stupid?!). The system disc is assigned to init first in the BIOS, and I thought that was all there was to it. : shrugs :
So: firstly, is there any way of finagling the hard drive assignments so that the drives are reported in the "correct" order?
Secondly, if this isn't possible, will Gentoo be bootable if I do install it to hde?
I'd be tempted to install it and see, but obviously I don't fancy wasting hours installing a system that won't boot.
Thanks for any help! |
|
Back to top |
|
|
deadaim Guru
Joined: 27 Oct 2003 Posts: 467 Location: Florida
|
Posted: Sat May 15, 2004 7:29 pm Post subject: |
|
|
I'm pretty sure that a cdrom drive gets addressed to as hdX, X being a number. That may be why it skips from hda to hdd.
If you decide to install Gentoo on hde, there should be no problems as long as you edit your grub.conf file accordingly. |
|
Back to top |
|
|
Z? Tux's lil' helper
Joined: 22 Jan 2003 Posts: 118 Location: Waterloo, Ontario, Canada
|
Posted: Sat May 15, 2004 7:32 pm Post subject: |
|
|
At a guess, this is because the "Boot off-board chipsets first" option is turned on on the Gentoo LiveCD (but I might be wrong). Appending "ide=reverse" to the boot command should get you the results you expect...
(From the kernel config help, under ATA/IDE/MFM/RLL Support -> IDE, ATA and ATAPI devices -> Boot off-board chipsets first support:
Quote: |
Boot off-board chipsets first support (BLK_DEV_OFFBOARD)
Normally, IDE controllers built into the motherboard (on-board controllers) are assigned to ide0 and ide1 while those on add-in PCI cards (off-board controllers) are relegated to ide2 and ide3. Answering Y here will allow you to reverse the situation, with off-board controllers on ide0/1 and on-board controllers on ide2/3. This can improve the usability of some boot managers such as lilo when booting from a drive on an off-board controller.
If you say Y here, and you actually want to reverse the device scan order as explained above, you also need to issue the kernel command line option "ide=reverse". (Try "man bootparam" or see the documentation of your boot loader (lilo or loadlin) about how to pass options to the kernel at boot time.) |
|
|
Back to top |
|
|
stdPikachu Apprentice
Joined: 10 Mar 2004 Posts: 254 Location: UK
|
Posted: Sat May 15, 2004 10:52 pm Post subject: |
|
|
Z? wrote: | At a guess, this is because the "Boot off-board chipsets first" option is turned on on the Gentoo LiveCD (but I might be wrong). Appending "ide=reverse" to the boot command should get you the results you expect... |
Cheers Z, I'll give it a whirl.
I didn't think installing to hde would present any significant problems (other than forcing myself mentally to think hda != boot drive) - if reverse IDE doesn't work, I'll try an install anyway. |
|
Back to top |
|
|
-=GGW=- $ol!d $n4>|e Veteran
Joined: 12 Apr 2004 Posts: 1616 Location: USA
|
Posted: Sun May 16, 2004 3:58 am Post subject: |
|
|
ya you could also brose d4 forums and it would bring up, once chrooted go to an externel console and type
mount -o bind /dev /mnt/gentoo/dev
then arrange all the configs as though your root drive was /dev/hda this is odd i know but when you reboot it will work ok |
|
Back to top |
|
|
stdPikachu Apprentice
Joined: 10 Mar 2004 Posts: 254 Location: UK
|
Posted: Sun May 16, 2004 9:56 pm Post subject: |
|
|
Thanks Z, the ide=reverse boot param sorted it, so I guess the boot kernel does have the "boot offboard" switched on. I now have a nice stage 1 up and running, and for the first time ever I didn't muck up my grub.conf!
Can't get distcc working, but that's another story. |
|
Back to top |
|
|
Z? Tux's lil' helper
Joined: 22 Jan 2003 Posts: 118 Location: Waterloo, Ontario, Canada
|
Posted: Sun May 16, 2004 10:36 pm Post subject: |
|
|
Excellent. Glad to help/hear it works, since I was guessing. |
|
Back to top |
|
|
|