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.
OK, I've been a bit too hasty and got my self a problem here.
My computer was, until this morning, partitioned with a windows partition, a linux partition, plus linux swap partition and linux boot partition. Linux distribution is Fedora Core 1.
I was using GRUB (installed with Fedora), to let me boot either windows or linux. (GRUB was in the MBR, and booting to Linux or chainloading to Windows)
Since I've found the distribution very awkward and i've hardly used it, I decided to get rid of it. Using paritionmagic (windows program), I deleted all three of my Linux partitions. Being a fool , I didn't realise that deleting the Linux Boot partition would stop windows from booting. So, GRUB clearly stores the info with which to boot windows on that partition.
Fortunately, I can still boot into windows, using GRUB commands:
rootnoverify (hd0,0)
chainloader +1
boot
This works fine, and I'm using windows on that PC now.
But, I don't want to enter this every time I boot my computer, and other people use the computer who will quickly become annoyed by this.
So, I'm looking for a way to either, leave GRUB in the MBR as it is, but run those commands automatically when I boot my PC, or, preferred, to replace the MBR with something (ie. the default) that will boot to windows with no problem.
I'm going to try that, but I don't think I'll succeed, because I only have a system restore disk, that came with the computer, not a proper windows CD, since it's an OEM version.
Arrgghhh... thanks, but the advice given actually completely disabled my computer! I'm not on XP, and my recovery CD only lets me remove everything, but running fdisk /mbr meant that "Operating System Missing" appeared every time the computer was turned on......
I've solved the problem by reinstalling Fedora from my CDs, but I'm leaving it as it is now....
It was the only partition on the computer at this point, and was set to active.
I've since read a few things on the internet about a few problems with fdisk /mbr on some types of hardware and some types of dual booting software, I imagine this is the problem - I guess it's an undocumented feature for a reason!
Sorry you ran into that problem matt_g_uk, forgot to mention that detail Demonbane just pointed out. If the Windows partition is active, when the MBR is found empty the system looks for an active partition and it should find your Windows install without a problem. When Windows is loaded, it may automatically setup the MBR to its liking, although not sure. Even if it didn't, you'd still have no real boot issues because the system would just default to the active partition at every boot.
EDIT: I guess your problem goes a little deeper....
I've never had issues with fdisking the MBR but I'll keep this in mind next time these kinds of issues come up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.