Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-07-2006, 01:53 PM   #1
LQ Newbie
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
installing grub, or other boot loader, after XP reinstall.

hi all. I have, once again, gone through a windowsXP reinstallation that has hosed my grub MBR. I know that I can reinstall grub on my window mbr but I would like to eliminate this problem for the future. I have my debian-amd64 distro installed on a separate hard drive and would like to, if possible, install grub on the linux hard drive instead of the windowsXP hard drive. I'm not sure if or how this could be done, especially since at the moment I don't have access to the linux distro at all. Is there any way that I can install grub, or any other boot manager, directly to my linux drive that has none? Any help would be greatly appreciated. Thanx
Old 06-07-2006, 01:59 PM   #2
Senior Member
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,517

Rep: Reputation: 53

Your computer will boot from the first partition on the first hard drive unless you enable a different drive to boot first in the BIOS. With that you will need a bootloader on you MBR or set your BIOS to boot from the second hard disk, which you could install grub to and configure it to boot Windows also.

Hope this helps

And by the way,WELCOME TO LQ!

Old 06-07-2006, 02:23 PM   #3
LQ Newbie
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Bob, happy to be here. On my BIOS boot screen I can press escape and choose any drive in my system to boot from. When I choose my Linux drive the systems stops at the "verifying DMI pool" prompt. I believe that this is from there being no MBR on the linux drive. That's the hurdle that I need to get over. Is there a way for me to put a boot loader on the linux drive without any outside access to it other than through windows(I do have access to the drive through windows, its drive "L" in my windows explorer. I can't remember what program I used to make it available or why). I was thinking maybe a liveCD but I wouldn't know where to start. In the ancient words of Leeloo "please help".
Old 06-07-2006, 02:49 PM   #4
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you have one of the Linux Rescue CDs (several are available for downloading), boot from one of them and create a vfat formatted GRUB boot disk. (See here for a brief walk-through.) Use the mkfs.vfat or mkfs.msdos command to format the floppy (or just use a blank, pre-formatted one). That's so you can edit the /boot/grub/grub.conf file in either XP or Linux to boot your Linux system in addition to your XP system.

Then the next time you reinstall Windows, or you have boot problems for some other reason, you'll be able to get to your Linux system, where you should be able to run /sbin/grub-install to fix your MBR problem.


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
Reinstall XP Boot Loader XxHell-FirexX General 12 10-28-2005 05:37 AM
GRUB boot loader and installing multiple distributions on one computer juyce Linux - General 3 06-27-2005 06:13 PM
how to reinstall boot loader. abhigo Fedora 1 01-29-2005 06:31 AM
Creating Boot loader disks rather then installing GRUB to hard disk?? barry237 Fedora 1 06-19-2004 10:52 AM
how to reinstall boot loader? jitus Linux - Newbie 8 03-20-2004 12:07 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration