Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pre-installation - weird hard drive assignment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stdPikachu
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 254
Location: UK

PostPosted: Sat May 15, 2004 6:12 pm    Post subject: Pre-installation - weird hard drive assignment Reply with quote

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
View user's profile Send private message
deadaim
Guru
Guru


Joined: 27 Oct 2003
Posts: 467
Location: Florida

PostPosted: Sat May 15, 2004 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Z?
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 118
Location: Waterloo, Ontario, Canada

PostPosted: Sat May 15, 2004 7:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
stdPikachu
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 254
Location: UK

PostPosted: Sat May 15, 2004 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Sun May 16, 2004 3:58 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
stdPikachu
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 254
Location: UK

PostPosted: Sun May 16, 2004 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Z?
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 118
Location: Waterloo, Ontario, Canada

PostPosted: Sun May 16, 2004 10:36 pm    Post subject: Reply with quote

Excellent. Glad to help/hear it works, since I was guessing. :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum