Linux - NewbieThis 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!
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.
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.
I've just realised i've installed GRUB on the MBR when i wasn't suppose to after reading a number of threads. Now the thing is that before i installed FC2 i unplugged my sata HD which contained my windows xo pro OS.
When i replaced my sata HD the system booted straight to FC2.
How do i go abouts fixing the MBR back to windows? would having the sata HD not detected by fc2 during installation effect the location of the MBR or is the MBR located somewhere else on the computer say the motherboard?
i've tried running the recovery console in xp and typed "fixmbr" in the command line but nothing actually happed.
Tried following the instructions from a couple of links and had no success because a few of them are assuming that your are doing a fresh install of fc2.
and had no success, because i think this document is assuming that you haven't installed grub on the MBR and your doing a fresh install of fc2
I'm totally confused at the moment, would someone help me clear a couple of things up and fix this problem. I know for some its the hundredth time someone has asked this but i think the scenario i'm in is abit different.
krazy bon 3 i had the same issue only difference is that i did not remove my hard disk or anything before i installed FC2, but i have been trying to install different type of bootloaders. I had windows 2000, win xp , FC2 and MDK 10.0 so do not panic. I will work with you to get your MBR fixed and get all the OS that you have come up from your bootloader.
First tell me how many hardrive do you now have. In order to find this out you need to boot from the installation disk (assuming that you have the installation disk with you) and go the rescue mode. go to command line and type fdisk, it it does not recognize fdisk command find where your sbin is located type" /sbin/fdisk -l" you will get the map of your hard drive lets start here.
Once you have this and when we know your hardrive partition information. You can start grub in command line and try to restore your MBR from there and get all the OS working.
there are two links that helped me really understand the way GRUB works
Haha, yes. Grub can be one hell of a job to clean up, as I learned a couple days ago. My problem was slightly different, in that I wasn't trying to get rid of grub so that I could use WinXP on that hard drive, but I was trying to get rid of it so that I could install a different boot loader. Try each of the solutions, one is bound to work sooner or later. http://www.linuxquestions.org/questi...hreadid=213813
hey make active makes the parition that you set as root active and boot command is to reboot from the command line.
Were you able to bring your winows up,
This is grub.conf to boot windows, fedora and mandrake
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,6)
# kernel /vmlinuz-version ro root=/dev/hdb8
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,6)/grub/splash.xpm.gz
title Windows
rootnoverify (hd0,0)
chainloader +1
title Fedora Core 2 (2.6.5-1.358)
root (hd1,6)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Mandrake 10.1
root (hd1,4)
kernel (hd1,4)/boot/vmlinuz-2.6.3-7mdk ro root=/dev/hdb5 quiet devfs=mount acpi=ht
initrd (hd1,4)/boot/initrd-2.6.3-7mdk.img
I think for your sata drive you should be able to start windows with something like this added to your grub.conf
title Windows
rootnoverify (sd0,0)
chainloader +1
did you check the grub website links i sent you, you should find some commands there on how to refer to your drive, for sata drives. I assuming it should be sd0,0 because your fdisk seem to understand the drive as 'sd' rather than 'hd' try either of them and one of them should work for you.
good luck
PS : refer to the grub manual to get a bettter understanding of how grub command works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.