LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-24-2010, 10:49 AM   #1
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Rep: Reputation: 0
Smile 911 Emergency - Remove Grub and Restore Windows 7 Boot loader


Hi,,,
I just made my system unbootable...
Here is what i did..
I have two sata HDDs
160 GB (Contained Windows 7)
500 GB
I copied entire 160 gb as an mirrored image to 500GB HDD using Acronis Disk Director.

I deleted entire 160 GB HDD..
Removed the 500 GB HDD and kept it seperate..

Installed ClearOS Enterprise 5.2
Worked a little bit...

The i wanted to delete ClearOS..
So i connected 500GB HDD and booted again in Acronis Disk director
Formated the entire 160GB HDD..
Copied back the entire 160 from 500GB HDD..

Now my sytem refuses to boot...

Just 4 letters

"GRUB" appears on the screen...
I tried booting using XP CD.. It gives a blue screen..
I tried Windows 7 CD.. It says unable to fix due to MBR problem..
Any option to repair this?

My C:\ drive conains a folder named boot..
 
Old 10-24-2010, 11:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,465

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
Quote:
Originally Posted by anoopch View Post
Hi,,,
I just made my system unbootable...
Here is what i did..
I have two sata HDDs
160 GB (Contained Windows 7)
500 GB
I copied entire 160 gb as an mirrored image to 500GB HDD using Acronis Disk Director.

I deleted entire 160 GB HDD..
Removed the 500 GB HDD and kept it seperate..

Installed ClearOS Enterprise 5.2
Worked a little bit...

The i wanted to delete ClearOS..
So i connected 500GB HDD and booted again in Acronis Disk director
Formated the entire 160GB HDD..
Copied back the entire 160 from 500GB HDD..

Now my sytem refuses to boot...

Just 4 letters

"GRUB" appears on the screen...
I tried booting using XP CD.. It gives a blue screen..
I tried Windows 7 CD.. It says unable to fix due to MBR problem..
Any option to repair this?

My C:\ drive conains a folder named boot..
First, this is NOT an emergency, 911 or otherwise, for anyone here. We volunteer our time to answer questions.

Second, if this is **URGENT**, why haven't you bothered to check Google?? Putting in "windows 7 repair mbr" brings up lots, like things from Microsoft's own forums:
http://support.microsoft.com/kb/927392

And since this is a Windows problem, and it's **URGENT**, it would seem to be a better idea to post it on a WINDOWS forum, not LinuxQuestions.
 
Old 10-24-2010, 11:11 AM   #3
codegenie
LQ Newbie
 
Registered: Oct 2010
Distribution: Redhat
Posts: 24

Rep: Reputation: -3
If you hav a centos cd with you, then reboot the system in the rescue mode.
If u dont know how to do it- insert cd and boot from it.
Type linux rescue in the prompt.
In the shell prompt
you can install grub using the command grub-install -v

Then type grub and enter into grub prompt.

type the command :
> find /boot/grub/grub.conf or find /boot/grub/menu.lst

it will give an output referring to the hard disk partition for the boot folder ie. like (0,4) for example

>root (hd0,4)

> setup (hd0)

In this case, I use zero as the first argument is 0 in(0,4).If its (1,4) for you then type setup (hd1).

>reboot
Hope this work.

Reply ASAP..

Last edited by codegenie; 10-24-2010 at 11:13 AM.
 
Old 10-24-2010, 01:06 PM   #4
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Boot from a linux live cd (just about any one will do)

Download syslinux
Code:
wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.03.tar.bz2
Extract it
Code:
tar -xvjf syslinux-4.03.tar.bz2
Write the generic syslinux MBR to your hard drive (replace X with your drive letter):
Code:
cat syslinux-4.03/mbr/mbr.bin > /dev/sdX

You could write the proprietary MS MBR using ms-sys if you want (the command would be: ms-sys -7 /dev/sdX), but the syslinux mbr works just as good.

Last edited by piratesmack; 10-24-2010 at 01:18 PM.
 
Old 10-24-2010, 01:06 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,465

Rep: Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117Reputation: 6117
Quote:
Originally Posted by codegenie View Post
If you hav a centos cd with you, then reboot the system in the rescue mode. If u dont know how to do it- insert cd and boot from it. Type linux rescue in the prompt. In the shell prompt
you can install grub using the command grub-install -v

Then type grub and enter into grub prompt.
type the command :
> find /boot/grub/grub.conf or find /boot/grub/menu.lst

it will give an output referring to the hard disk partition for the boot folder ie. like (0,4) for example

>root (hd0,4)
> setup (hd0)

In this case, I use zero as the first argument is 0 in(0,4).If its (1,4) for u then type setup (hd1).
>reboot
Did you not read the OP's post??? They're not looking to restore GRUB, but Windows MBR. And spell out your words...that text-speak garbage is against LQ rules.
 
Old 10-24-2010, 08:20 PM   #6
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
TBone's right. That's not an "emergency", nor "urgent" for anybody except you.

said that, perhaps you could boot your windows with Super Grub Disk. The same utility could be used to repair the MBR
 
Old 10-24-2010, 10:55 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,483

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
ALSO did you make a windows 7 repair disk???
the very frist time you boot up win7 it should have guided you in this
Microsoft nolonger sends out win7 dvd's

now you CAN get a full install windows 7 install dvd from the OEM ( dell , hp, sony,...)
i had to do that for my dad's new computer - i set up a logical partition layout ( more so than dell's default )

if you do not have a dvd then ....
but i would start with the microsoft support page
http://support.microsoft.com/kb/927392
 
Old 10-26-2010, 04:18 AM   #8
anoopch
Member
 
Registered: Oct 2010
Location: Tamil Nadu, India
Distribution: Slackware 13.1
Posts: 42

Original Poster
Rep: Reputation: 0
Smile Ok i finally did it...

I emptied my HDD... Deleted Crap from my HDD and installed Ubuntu 10.04 LTS... Ha ha ha... Bye bye Windows...


I request the moderator to kindly delete this thread..
I am deeply regretting the inconvenience caused..
 
Old 10-26-2010, 04:23 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by anoopch View Post
I request the moderator to kindly delete this thread..
You can mark the thread solved using the thread tools.

Kind regards
 
  


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
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
remove grub boot loader ajatshatru Linux - Newbie 3 11-27-2009 07:33 AM
LXer: Fix / Restore GRUB Boot Loader LXer Syndicated Linux News 0 05-07-2009 12:00 AM
How can I remove Grub boot loader? TechSonic Linux - Newbie 7 08-06-2005 03:11 PM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:59 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