Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-26-2004, 03:21 PM   #1
Gordon Airporte
LQ Newbie
Registered: May 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Reconfiguring partitions, changing /boot location

I've read a lot and tried a few things, but I can't get what I've tried so far to work, and I'm still confused about parts of the boot process.
I've decided to switch distros. I used to use GRUB to dual-boot Redhat and Windows off of HDA, and all was well. I then set up Debian on another drive, the only one in the system at the time. Now, with both drives installed (Debian on HDB), I can get the GRUB on HDA to find and boot all three OS's just fine, but now I want to get rid of Redhat for the space.

The problem is that GRUB is using the configuration in the boot partition on HDA.

Here's how hda is laid out
| winxp | data | RH swap | boot | RH root |

So I guess I need to get GRUB to use the /boot directory under Debian's root on hdb1, and I need to configure it's menu.lst so it can boot Windows off of hda1. It would be nice if the automatic GRUB configuration the Debian kernel install method uses would work properly too, although I'm used to setting it up by hand.

I've already tried various things with making HDB the first boot device, but I can't get Windows /or/ Debian to load. I can provide menu.lst and the errors if you want.
Elsewise it might be best to keep using the GRUB on the MBR of hda and telling it where /boot on hdb is, or I could leave the boot partition on hda and move it to the end of the drive, but I'm afraid it would get lost.
Old 05-28-2004, 11:40 AM   #2
Gordon Airporte
LQ Newbie
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Right, so will this work:


> root (hd1,0)

> setup (hd0)

> quit

If so, how are will the partitions be referenced within menu.lst?
I'm confused about how grub/linux names things - is hd0 /always/ the master on the first ide channel and hd1 /always/ the slave, or is it contingent on which the BIOS boots from first?
Does hda /always/ corespond to hd0 ?
What's relative and what's absolute in grub.conf/menu.lst?
Old 06-01-2004, 10:41 PM   #3
Gordon Airporte
LQ Newbie
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Okay, that worked. Thanks me.
ack, seriously though...I'll just reply to myself here in case someone is trying to do the same thing and finds this post. Setting the new root and running setup worked. Here's what I learned -

GRUB gets its labeling info from the BIOS, so if the BIOS has HDD1 as the first boot device rather than HDD0, GRUB will call it "(hd0)" even if we know, and the BIOS knows, that it is not the 1st IDE chanel master. As such it will call whatever the next hdd in the BIOS boot order "(hd1)", etc.

There are no problems with chainloading Windows using the standard
rootnoverify (hd0,0)
chainloader +1

but I could not for the life of me get the GRUB in the MBA of hdb, when set as the first boot device, to load windows. I tried all the "map" stuff, everything, and got nothing but numerous errors or a simple hang.

Kernel paths are now of the form
where they didn't used to need "/boot" because that's what the partition was named.

GRUB version 0.93 needs a grub.conf file and doesn't know what to do with just 0.94's menu.lst.

Hope this helps someone.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic when changing boot location from hdb to hdd loninappleton Linux - Hardware 7 11-08-2005 03:48 PM
Changing location of /etc/fstab? Aeiri Linux - Software 1 11-23-2004 04:36 PM
changing the temp location? fred22 Linux - Newbie 4 06-30-2004 10:15 AM
Changing physical location of directories Linus VanPelt Mandriva 2 02-23-2004 07:42 AM
Changing boot location podollb Linux - Hardware 8 10-15-2003 02:48 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 PM.

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