Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-31-2005, 02:23 PM   #1
LQ Newbie
Registered: Jan 2005
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Remove dual boot option/Moving GRUB

My system dual boots WinXP (hda) and Debian (hdg). I want GRUB to move to the MBR of the Debian drive (g) to make it bootable so I can move that hard drive to another computer. Is there a straight forard way to achieve this?

Restoring the Windows MBR (to delete GRUB) with the XP disk is the easy part, but I'm not going to do that until I know what to do with GRUB first.
Old 01-31-2005, 05:57 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
# grub-install /dev/hdg
If you have a seperate /boot partition on /dev/hdg then you probably want this:
# grub-install --root-directory=/boot /dev/hdg
However, I am still not 100% sure this will even work. You may have to use a livecd and install grub again to wherever it actually exists after you physically move the HDD.
Old 01-31-2005, 07:24 PM   #3
LQ Newbie
Registered: Jan 2005
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: 0
The second one didn't work at all (said something about not finding stage 2?). The first one did install GRUB, but then it printed off what seemed to be my device map file, and asked me to make changes to it if need be:


(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdg
(hd2) /dev/sda
(hd3) /dev/sdb

I guess the Windows drive is hde, not hda (though it seems to say that the drive is hda during the bootup scroll). Debian is definitely on hdg.

Anyway, I left as-is and rebooted just to see what would happen. GRUB would load then reboot the system, and this would have continued in cycle, so I powered down and returned the cables to the original setup.

- I'm confused as to why the boot menu didn't pop up. It's location hasn't changed just because GRUB is installed on a different MBR (or has it?).
- Debian's Sarge net-install CD does not function as a rescue disk, and I don't have a GRUB boot disk either.
- If I start messing with and get it wrong, I won't be able to make things right by just swapping cables to their orginial places.

Any more suggestions?

- T.
Old 02-24-2005, 12:23 AM   #4
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
try reading my tutorial?

normally.....bios boots to a drive to its mbr then to its bootloader THEN if you chose grub it then jumps to its booting files.

so you merely make grub go into the drive you want bios to see first
then amend the linux....../boot/grub/menu.lst to reflect the bios boot order and hardware as per my tutorial.

that does not stop you from going into bios each time you want to try a different bootloader on a different drive but thats your choice


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual Boot : Making Windows First Option in boot menu Maxwell Rain Linux - Software 3 11-27-2004 03:00 PM
SuSE not working out for me. How to remove it and grub? (dual boot w/98) thejmfc Linux - Newbie 10 07-07-2004 12:26 PM
dual rh 9 no grub option BobNz Linux - Newbie 6 05-02-2004 11:56 PM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 05:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 AM.

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
Open Source Consulting | Domain Registration