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 08-06-2005, 11:28 AM   #1
Registered: Feb 2004
Distribution: Ubuntu 7.04
Posts: 41

Rep: Reputation: 15
How can I remove Grub boot loader?

I first started on Fedora but didn't like how it ran. I switched to Ubuntu and loved it, but after I updated to the 5.04 release, the Grub boot loader was also rewritten. Now when I startup it says "ERROR: 21" and does not continue. I also have Windows XP Proffessional on the main hard disk and I really need to get back on there. Right now I'm stuck using the Live CD of Ubunto just to boot at all. I really need help removing Grub so Windows OS Choice menu takes control again. That way I can reinstall Ubuntu but not the bootloader this time.
Old 08-06-2005, 11:34 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
1. Boot from your Windows CD.
2. Go to the recovery console (there's an option saying, "press R to repair an installation").
3. Log in to your installation (you'll need the administrator password, if there's one set).
4. Type "fixmbr" without the quotes.

You should then be able to reboot your machine and Windows' boot loader will be there.
Old 08-06-2005, 11:35 AM   #3
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 61
Just pop in your windows install cd and enter the rescue mode. At the prompt,

and'll get windows back...although you would have to use boot disc to enter linux.

Old 08-06-2005, 11:36 AM   #4
Registered: Feb 2004
Distribution: Ubuntu 7.04
Posts: 41

Original Poster
Rep: Reputation: 15
I've doen this before, it totally screws up the driver database. I never got my video stuff working again last time I did that.

Also, I know I can install without the boot loader, it gives that option.. How could I put Ubuntu in the Windows OS Choice menu?

Last edited by TechSonic; 08-06-2005 at 11:38 AM.
Old 08-06-2005, 12:23 PM   #5
LQ Newbie
Registered: Oct 2003
Distribution: Linux Mandrake
Posts: 9

Rep: Reputation: 0
Use "dd"

Boot into Ubuntu and get a copy of the first 512 bytes of the boot partition. Just google "NTLDR Linux dd" and read the first few hits. It should help you.
Old 08-06-2005, 12:58 PM   #6
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171
I would take the approach of finding-out and fixing what's wrong with grub, which is perfectly capable of booting NT, rather than throwing the baby out with the bathwater. The grub web-site has particulars on what you need to do to get NT up-and-running when grub runs first.

If you simply boot up an NT-rescue disk and rewrite the master-boot-record (which is what the preceding comments do), it sometimes works as expected but that entirely depends upon how the partitions and so-on have been set up on the drive. The NT loader is not smart. Grub is. As justifiably-anxious as you may be to get things working again, a ham-fisted approach might make things worse.
Old 08-06-2005, 02:11 PM   #7
Registered: Feb 2004
Distribution: Ubuntu 7.04
Posts: 41

Original Poster
Rep: Reputation: 15
All I want Grub to do is work. It doesn't of course.

By the way, I restored my windows boot loader, and everything is back to normal. I installed Fedora Core 3 on my 3rd hard drive and it's marked as slave because the CD-ROM is marked as master. The fist two drives (windows on master) are setup for just OS and storage (second drive setup as slave (Storage))

Sense the drive im installing to is a slave on the second set of IDE ribbins, would that effect the way the Grub boot loader is detecting? Error 21 translates to Hard disk error. So I'm thinking it's not finding it?
Old 08-06-2005, 04:11 PM   #8
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
... grub, which is perfectly cappable of booting NT
No it isn't--not the last time I checked. Grub can `boot' (chainload) the NT boot loader, which *then* boots windows NT.

hth --Jonas


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
How do I remove the windows boot loader? sureshot324 Linux - Software 2 10-27-2005 02:29 PM
remove boot loader mchitrakar Linux - Software 1 10-12-2005 06:22 AM
How to remove Grub Loader Darthomir Linux - General 12 04-22-2005 11:47 PM
How do I remove old kernels from boot loader? XryanX Fedora 7 04-26-2004 12:30 PM
how to remove grub loader from linux 7.3 puru_09 Linux - General 1 02-28-2003 12:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 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