Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Bootloader question...

Credits go to BAF and HoHo for helping out!
This thread is locked; no one can reply to it. rss feed Print
Bootloader question...
Mokkan
Member #4,355
February 2004
avatar

I'm working on making my computer a dual boot again, right now. My setup is a 20gb IDE drive on channel 1 (same channel as cdrom, pinned as master), and a 120gb SATA drive on channel 2. My SATA drive is NTFS, with XP installed... this was my primary boot drive, until I stuck the 20gb in. Now... I want to be sure that the bootloader is installed to the 20gb hard drive. Is there a way of controlling this? To boot from the 20gb, I just switched the boot order in my BIOS... is that enough?

HoHo
Member #4,534
April 2004
avatar

First, what bootloader are you using?
At least with GRUB you have to tell what drive to install it to. If you install it to non-booting drive it will simply not work

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Mokkan
Member #4,355
February 2004
avatar

I was leaning towards LILO... because I haven't gotten GRUB to work before. I'll try GRUB, though. So you have to specify a drive to install to for GRUB? And if I were to use LILO, what would I do?

HoHo
Member #4,534
April 2004
avatar

I would use Grub myself because it has always worked perfectly for me :)

For some more info you might want to read these links:
http://www-128.ibm.com/developerworks/library/l-bootload.html?ca=dgr-lnxw01LILOandGRUB
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10
http://gentoo-wiki.com/HOWTO_Install_Gentoo_Linux:_Bootloader#Bootloader

The last two are about Gentoo but it is almost the same regardless used distribution.

I suggest you just set the 20G drive to be the first to boot from BIOS, set the make first partition bootable via fdisk and install GRUB on it. It should work without much trouble. If anyhing isn't working search google and your distribution forums. Failing that ask here. We have quite a lot of Linux users here.

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Mokkan
Member #4,355
February 2004
avatar

Alright, I'm going with GRUB :). Now, my drives are a bit screwy... the 20gb is /dev/hdc, and the SATA drive is /dev/sda... how would that translate to the GRUB system of labeling drives? Would that be... hd2,0 and hd3,0?

BAF
Member #2,981
December 2002
avatar

Quote:

Alright, I'm going with GRUB :). Now, my drives are a bit screwy... the 20gb is /dev/hdc, and the SATA drive is /dev/sda... how would that translate to the GRUB system of labeling drives? Would that be... hd2,0 and hd3,0?

Quote:

My setup is a 20gb IDE drive on channel 1 (same channel as cdrom, pinned as master), and a 120gb SATA drive on channel 2.

AFAIK, it is hd<channel[zero based]>,<id> -- so your 20 gig drive should be hd0,0 and the sata should be hd1,0.

HoHo
Member #4,534
April 2004
avatar

and if it isn't, repairing it is trivial. Just boot from CD, choot and run #grub again. Perhaps modify grub.conf too.

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Mokkan
Member #4,355
February 2004
avatar

Yay! It worked :)! Thanks so much, guys... except, I have one more problem. For some reason, it won't boot Windows XP when I select it. It just hangs on the boot screen... here's relevant configuration:

title=Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1

HoHo
Member #4,534
April 2004
avatar

On what partition xp resides(/dev/sdaX)?

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Mokkan
Member #4,355
February 2004
avatar

It's on /dev/sda1, I believe.

EDIT: Yeah, that's it.

BAF
Member #2,981
December 2002
avatar

maybe try hd2,0 or hd3,0 (SATA should go on channel 4, after the 2 IDE channels).

Mokkan
Member #4,355
February 2004
avatar

Well, GRUB found /dev/sda on hd1,0 when I ran grub-install... so I'm not sure if that would help :-/...

HoHo
Member #4,534
April 2004
avatar

In theory it might be that Windows refuses to boot after the disk have been reordered in BIOS. You could try set the sata drive back to be the first bootable, install GRUB on it and try again.

If something goes wrong you can restore the windows own master boot record on the sata drive by booting from windows cd, entering repair console and running fixmbr. Be sure to read help about this command first, I have never used it before.

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Mokkan
Member #4,355
February 2004
avatar

Yeah.. perhaps I will just put GRUB on the SATA drive. Was kind of hoping to avoid it, but oh well, it doesn't matter I guess :). Thanks a lot for the help, I really really appreciate it :).

Ooh, and for the record, the last time I ran fixmbr to remove a bootloader (september of 05), it broke my partition table, and I had to reformat :-/.

EDIT: Crap, please bump so I can give cookies :(.

relpatseht
Member #5,034
September 2004
avatar

bump.

fixmbr worked when I used it a few hours ago.

Mokkan
Member #4,355
February 2004
avatar

Yay cookies :). Thanks again :).

HoHo
Member #4,534
April 2004
avatar

You are most welcome
It is nice when more people start using Linux :)

Quote:

it doesn't matter I guess

It doesn't

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

scriptX
Member #6,574
November 2005
avatar

fixmbr worked for me as well, although I ended up reinstalling XP.. but that's another story. Also, running optical drives on the same IDE channel as hard drives slows the HD down.

Mokkan
Member #4,355
February 2004
avatar

Quote:

Also, running optical drives on the same IDE channel as hard drives slows the HD down.

Well, yeah :P... there's a reason I'm doing it ;).

Go to: