Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old November 18th, 2007   #1
spencertheman
First Cup of Ubuntu
 
Join Date: Oct 2007
Beans: 5
Grub errors with windows

Alright well i had XP installed on a 40gb internal with NTFS. I had a second 20gb hard drive where i had Feisty installed. I updated to Gutsy when the time came. I booted into Ubuntu a couple of times and then stopped when I installed WoW. I used XP from then on out. Then the other day I decided that I needed the extra 20gb where Ubuntu was installed. I used a copy of Norton Partition magic to delete the partition on the drive, then formatted it with Windows. I came home yesterday to find my computer had been restarted and it sitting at the bios password to start up my machine. I entered my password and it came up with a Grub 17 error. I tried everything. I changed the jumper settings, tried to boot just the XP drive and nothing. Well I took out the CMOS battery to reset the BIOS. I tried booting again and it gave me a Grub 21 error.


Any ideas?

Here's my setup:
Dell GX260
40gb HD with XP
20gb HD with no OS


please help guys
spencertheman is offline   Reply With Quote
Old November 18th, 2007   #2
meierfra
Fresh Brewed Ubuntu
 
Join Date: Jul 2005
Beans: 1,298
Hardy Heron (Ubuntu Development)
Re: Grub errors with windows

Grub comes in two parts: One part is on the MBR (the first sector of your hard drive), the other one on the Ubuntu partition. Since your deleted the ubuntu partition, Grub can no longer function. You need to put XP back in charge of the MBR.
There are lots of ways to do this. I'll give you three:

1a) If you have Windows XP: Boot from an XP installation or recovery CD. Press "R" to enter the recovery console.

Type

Code:
fixmbr

exit
1b) If you have Vista: Boot from a Vista CD/DVD
From there, click on "Repair your Computer"
Select your Vista installation, and then click "Next >"
Click on command prompt
At the prompt type:


Code:
Bootrec /FixMBR

exit
2) Get Super Grub: Hermanzone info on supergrub

3) Boot into Ubuntu or from the Ubuntu Live CD and make sure you have a working internet connection.

Step I) Enable the "universe" repositories.

Go to Systems-> Adminstration->Software Sources"

Click on the Box next to "Community-maintained Open Source Software (universe)

Click on Close (twice)

Step II) Install the package "ms-sys" (Info on ms.sys
In a terminal

Code:
sudo apt-get update
sudo apt-get install ms-sys
Step III) Use "ms-sys" to installed a windows type boot-loader to the MBR:

Code:
sudo ms-sys -m /dev/sda
This assumes that the Windows is on the hard disk named /dev/sda. If you don't know the disk's name, you can find out by typing "sudo fdisk -l".

Last edited by meierfra; December 29th, 2007 at 05:19 PM.. Reason: Added a thrird method. Included vista
meierfra is offline   Reply With Quote
Old November 18th, 2007   #3
spencertheman
First Cup of Ubuntu
 
Join Date: Oct 2007
Beans: 5
Re: Grub errors with windows

thanks! i'll try that when i get an xp disk


shouldn't be too long


:]
spencertheman is offline   Reply With Quote
Old November 18th, 2007   #4
malfist
Skinny Soy Caramel Ubuntu
 
Join Date: Jul 2006
Beans: 651
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to malfist
Re: Grub errors with windows

Any number of windows apps can fix the Masterboot record. Just make sure you find one that can be booted.
malfist is offline   Reply With Quote
Old November 29th, 2007   #5
Lastaii
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 3
Re: Grub errors with windows

Thanks meierfra, I've had a similar problem* and the ms-sys solution worked wonderfully once I'd worked out which disk was which


*Not that I'm giving up on Ubuntu, I just needed it off that particular drive to give Windows more space
Lastaii is offline   Reply With Quote
Old November 29th, 2007   #6
nikoPSK
Chocolate-Covered Ubuntu Beans
 
nikoPSK's Avatar
 
Join Date: Sep 2007
Location: Victoria, BC
Beans: 2,265
Ubuntu 8.04 Hardy Heron
Send a message via AIM to nikoPSK Send a message via MSN to nikoPSK Send a message via Yahoo to nikoPSK Send a message via Skype™ to nikoPSK
Re: Grub errors with windows

generally you want to install ubuntu over windows, windows will screw up grub....
__________________
That is not me . Starcraft(2)!!! and Lifehacker!
I am now known as Deep Blue and you may contact me from that account.
Quote:
"You Call down the thunder and I'll reap the whirlwind!" ~Terran Ghost
nikoPSK is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:25 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry