LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-12-2004, 10:03 AM   #1
matt_g_uk
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
Angry Booting problem


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.

Many thanks if you can help!
 
Old 04-12-2004, 10:08 AM   #2
qkslvrwolf
LQ Newbie
 
Registered: Apr 2004
Distribution: Lycoris Desktop/LX (Amethyst)
Posts: 14

Rep: Reputation: 0
Personnally, I'd just try running windows setup, and doing a repair installation. That should (in theory) reload the windows boot stuff.

I'm not positive about that, though.
 
Old 04-12-2004, 10:15 AM   #3
matt_g_uk
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 04-12-2004, 10:16 AM   #4
smartfüd
LQ Newbie
 
Registered: Apr 2004
Location: Burlington, VT USA
Distribution: MDK 10.0, Fedora Core 1
Posts: 22

Rep: Reputation: 15
Grab a windows boot disk (98 is probably easiest). It loads tools in to the RAMDrive, among them fdisk. Switch to RAMDisk drive.

fdisk /MBR

That should blow away the MBR and allow windows to set itself up again.
 
Old 04-12-2004, 10:22 AM   #5
NarutoKun
Member
 
Registered: Jan 2004
Location: Puchong, Selangor, Malaysia
Posts: 38

Rep: Reputation: 15
use the undocumented feature of dos fdisk.

Boot up your machine into dos -> C:
run the command fdisk /MBR

this will clear your mbr of GRUB
 
Old 04-12-2004, 10:46 AM   #6
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Are you on XP? If so, get the first windows disk, boot to it.

Then I think its 'r' to go into the recovery console, you have to put in the administrator password to do it, but whatever.

Then do 'fixmbr' which will overwrite your master boot record getting rid of grub.

Then exit and reboot taking out the xp disc and it should boot right into windows.
 
Old 04-12-2004, 11:02 AM   #7
matt_g_uk
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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....

Thanks anyway
 
Old 04-12-2004, 11:13 AM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
After you do fdisk /mbr you need to make sure your Windows partition is set to active.
 
Old 04-12-2004, 11:16 AM   #9
matt_g_uk
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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!
 
Old 04-12-2004, 11:18 AM   #10
smartfüd
LQ Newbie
 
Registered: Apr 2004
Location: Burlington, VT USA
Distribution: MDK 10.0, Fedora Core 1
Posts: 22

Rep: Reputation: 15
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.

Last edited by smartfüd; 04-12-2004 at 11:21 AM.
 
  


Reply


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
booting problem prince_linux Red Hat 1 10-22-2005 05:01 AM
Booting problem AbhishekSamuel Linux - Software 1 04-29-2005 01:20 PM
booting problem juanb Linux - Software 2 01-13-2004 10:04 AM
Booting Problem naveedpta Linux - General 1 11-20-2003 04:48 AM
Problem Booting lockejr Linux - Hardware 1 07-21-2003 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration