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



Reply
 
Search this Thread
Old 12-04-2008, 03:44 PM   #1
Dr_Horse
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Formatted my linux drive in a dual boot setup, now the GRUB loader hangs the system..


Hello everyone.

Until recently I had two hard disks, one running WinXP and the other runnin Ubuntu, with a GRUB boot loader appearing on start-up offering me the opportunity to load either one.

Earlier today I decided to format the linux drive because I hardly ever use it anymore and I thought the space would come in handy. I did this using diskpart in the WinXP command prompt. Upon the next system restart the bios whizzed by as usual but when it got to the GRUB loader it said:

"
GRUB Loading stage1.5

GRUB Loading, please wait

Error 17
_
"

Then it just sits there winking at me and doesn't load anything.


I am only able to get online now because I disconnected the WinXP drive, connected the formatted ex-Linux drive as the master and installed WinXp. So I know that to fix it I could just format the original WinXP drive and use it as a slave to the new WinXP drive, but I have too much stuff on there I need.

Your challenge, my lovely panel of generous and helpful experts, is to tell me how I can remove the busted GRUB loader without losing any data on that drive.

That is a big, big please, and thank you in advance for your time.


ps sorry if this is in the wrong place but it seemed a similar kind of query to many others, and the read this first section wasn't that clear.
 
Old 12-04-2008, 04:24 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,501

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Remove the added drive (stick the original back in ... ), boot your XP install disk, select the recovery console when it tells you to, and run fixmbr
Reboot and all will be as you want.
 
Old 12-04-2008, 04:26 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
Grub installs in two parts. One part is in a Linux partition in a file called /boot/grub/menu.lst. The other part is a 512 byte record on the MBR which points to the correct menu.lst. When you formated the Linux partition menu.lst disappeared.

When you removed a drive the BIOS began booting the MBR on the other drive which apparently is a Windows MBR.

Quote:


Your challenge, my lovely panel of generous and helpful experts, is to tell me how I can remove the busted GRUB loader without losing any data on that drive.
You already lost the data on that drive when you formated it with diskpart. The only part of that drive which is still intact is the Grub MBR.

The standard practice in data processing since about 1945 is to back up everything periodically and recover lost data from backup. Microsoft has introduced the weird idea of not backing up and instead trying to recover lost data by rummaging around through the disk control blocks in the hope of finding the lost data still intact in the disk free space. So you can either restore from backup or try to recover it with the Windows commands which rummage around disk free space.


---------------------------
Steve Stites
 
Old 12-04-2008, 04:37 PM   #4
Dr_Horse
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
Grub installs in two parts. One part is in a Linux partition in a file called /boot/grub/menu.lst. The other part is a 512 byte record on the MBR which points to the correct menu.lst. When you formated the Linux partition menu.lst disappeared.

When you removed a drive the BIOS began booting the MBR on the other drive which apparently is a Windows MBR.



You already lost the data on that drive when you formated it with diskpart. The only part of that drive which is still intact is the Grub MBR.

The standard practice in data processing since about 1945 is to back up everything periodically and recover lost data from backup. Microsoft has introduced the weird idea of not backing up and instead trying to recover lost data by rummaging around through the disk control blocks in the hope of finding the lost data still intact in the disk free space. So you can either restore from backup or try to recover it with the Windows commands which rummage around disk free space.


---------------------------
Steve Stites
Sorry, I must have not explained myself very well, I was talking about recovering the data from the ORIGINAL WinXP drive, as in the one that I HAVEN'T formatted.

I will try booting from the XP disc.


Thank you both very much.
 
Old 12-04-2008, 04:50 PM   #5
Dr_Horse
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Remove the added drive (stick the original back in ... ), boot your XP install disk, select the recovery console when it tells you to, and run fixmbr
Reboot and all will be as you want.
It WORKED. You are absolutely marvellous, well done.

A million thank yous.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I uninstall Ubuntu and Grub loader from a dual boot system? wired_retired Linux - Newbie 7 08-13-2008 06:59 PM
Two hard disks - dual boot ( XP - Linux ) using microsoft boot loader, not grub cristy88 Linux - General 2 12-17-2007 07:26 PM
Software RAID 1 setup on CentOS using Grub boot loader kumarsundaram Linux - Software 1 11-30-2005 01:57 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM


All times are GMT -5. The time now is 07:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration