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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-26-2005, 01:22 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Posts: 20
Rep:
|
fixing my mbr
Hi.
Problem: I had xp pro on hd1 and mandrake on hd2. Yesterday, I erased hd2 with and reformatted to ntfs. I just want to use xp pro now. The problem is that grub is still in my mbr and it boots the console whenever I startup.
I have tried using xp recovery console and fixboot, but after successfully repairing the mbr and rebooting, grub still shows up.
Has anybody dealt with this before? Any help is much appreciated.
|
|
|
06-26-2005, 01:42 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
let's not call it "fixing" huh? nothing technically broken about having grub installed... Either way the usual fix was always to run "FDISK /MBR" from a dos boot disk.
|
|
|
06-26-2005, 02:03 PM
|
#3
|
Member
Registered: May 2005
Location: CT
Distribution: Lubuntu
Posts: 32
Rep:
|
Insert your WinXP CD and boot it. When you get prompted to install, choose the "Repair" option. Don't do anything until it asks "Which system you want to log into".
You might not need a password (just hit enter at pwd prompt) and you should get a Cursor.
type 'help' for a lost of commands.
to fix your MBR, type 'fixmbr'
I think there is also a 'fixboot' option - may need to run that also.
That should get your system back to your original state
(Apologies up front, I am doing this all from memory, but that's the basic idea).
|
|
|
06-26-2005, 07:39 PM
|
#4
|
LQ Newbie
Registered: Jun 2005
Posts: 6
Rep:
|
fixing mbr
First of all grub is there due to you installing it on the mbr. So even though you removed hda2 (Mandrake Partition) you still have Grub. So, I suggest doing the following ->
boot into knoppix (or any other live cd)
type: dd if=/dev/zero of=/dev/null
^^ Will remove the mbr.
then you should install windows default mbr.
~saltron
|
|
|
06-26-2005, 09:20 PM
|
#5
|
Member
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138
Rep:
|
I'll second the fixmbr solution. Boot your xp cd, go to the console and type fixmbr as stated above. Always worked for me
|
|
|
06-26-2005, 09:25 PM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,442
|
Re: fixing my mbr
Quote:
Originally posted by bernstein
I have tried using xp recovery console and fixboot, but after successfully repairing the mbr and rebooting, grub still shows up.
|
Close - you need fixmbr, not fixboot.
|
|
|
06-27-2005, 03:00 AM
|
#7
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
What you can also do is lay your hands on a dos boot disk. Boot from this floppy and at the command prompt type
fdisk /mbr
This would erase GRUB from the mbr and that's it.
|
|
|
06-30-2005, 10:24 PM
|
#8
|
LQ Newbie
Registered: Mar 2005
Posts: 20
Original Poster
Rep:
|
Sorry, it took me forever to get back to this thread. I figured out the fixmbr command was what I needed. Fixboot failed originally, hence this thread. Thanks everyone for all of those bits of advice anyway.
|
|
|
All times are GMT -5. The time now is 11:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|