Debian This forum is for the discussion of Debian Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-25-2008, 08:01 AM
|
#1
|
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320
Rep:
|
Recovering corrupted grub
My friends's dual boot system (Debian and XP)corrupted.
I think it caused because he attempted to recover from a virus attack on
windows. Any way it is not able to run the grub loader.
I think both the OS have no problem but the boot loader has been corrupted. In another situation which happened to me i have reinstalled debian and after that everything was ok for windows, means windows was there .
My question is how to correct the grub boot loader when it is corrupted.
|
|
|
|
02-25-2008, 08:16 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Posts: 1,632
Rep: 
|
That's too little info. Tell us more: what can and can't he do, will any OS boot, what errors does he get?
In short: if he can boot XP, that OS overwrote the Grub entry in the MBR. That can be repaired by running a LiveCD and use that to re-install Grub into the MBR. If only Linux boots, getting XP back is as simple as editting the /boot/grub/menu.lst file to include it as a bootoption. If neither boots, he probably managed to somehow mess up the disk geometry and/or partitiontable. In this case, you'll need cfdisk or something with a GUI that does the same from a LiveCD.
|
|
|
|
02-25-2008, 11:48 PM
|
#3
|
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 320
Original Poster
Rep:
|
Quote:
Originally Posted by Dutch Master
That's too little info. Tell us more: what can and can't he do, will any OS boot, what errors does he get?
In short: if he can boot XP, that OS overwrote the Grub entry in the MBR. That can be repaired by running a LiveCD and use that to re-install Grub into the MBR. If only Linux boots, getting XP back is as simple as editting the /boot/grub/menu.lst file to include it as a bootoption. If neither boots, he probably managed to somehow mess up the disk geometry and/or partitiontable. In this case, you'll need cfdisk or something with a GUI that does the same from a LiveCD.
|
Thank you it is the last one mentioed.
None of the OS's are booting. Message is GRUB error after that nothing happens.
|
|
|
|
02-26-2008, 08:44 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2008
Location: Lexington and suburban Detroit
Posts: 4
Rep:
|
Something similar happened to me. I decided to move my Ubuntu to a Microsoft Virtual Server because I need my network running constantly and everything connects through the same box. When I deleted the partition that had Ubuntu Server and rebooted I got Grub error (17) and could do nothing. After searching high and low and numerous sites I finally found one that gave me an answer that worked. (Helps if you know what the right question is). Boot from the XP install disk and select Repair from the initial options. When you get the command prompt for windows use the command FIXMBR, you'll get a warning about rewriting the masterboot record but that did the trick for me. Windows Server is loading fine, and i can move on with the Virtual Server load. Hope this helps you somewhat although it may not be the solution for you problem it probably won't hurt to try it. Good Luck!
|
|
|
|
02-26-2008, 03:42 PM
|
#5
|
|
Member
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238
Rep:
|
You could download super grub from: http://supergrub.forjamari.linex.org/
It is smaller then a live CD in the case that you do not have one, and with just a few clicks, you should be able to access your OS (not to mention fix grub).
Worked fine when I had to reinstall Xp and then needed to recover Lenny.
Eric
|
|
|
|
03-02-2008, 10:31 PM
|
#6
|
|
LQ Newbie
Registered: Feb 2008
Location: Troitsk/74/RU
Distribution: OpenSUSE10.3/Debian4.0
Posts: 1
Rep:
|
load from RescueDisc
go to console
grub-install /dev/your-hd-drive
or
#grub
>root (hd0,1) ;hd0,1 change to your root-partition on HD drive (see /boot/grub/device.map)
>setup (hd0) ;hd0 change to your HD drive
>quit
then check what changed in menu.lst
#vi /boot/grub/menu.lst
and finaly
#reboot
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:49 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|