Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-26-2006, 10:39 AM   #1
Member (6 bit)
 
Join Date: Jun 2004
Posts: 57
Repairing Grub?

I am currently dual booting linux with windows xp with each on a separate HD using Grub as the boot loader. Recently I have been experiening problems with grub loading. After booting the PC I receive the message "Grub loading stage 2" and after about 30 seconds the message "read error" appears.

Does anyone have any advice regarding how to approach this?

thanks
lglrgl is offline   Reply With Quote
Old 06-26-2006, 04:45 PM   #2
Member (7 bit)
 
moistmule's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 114
the easiest way to repair GRUB is with a Knoppix CD, load knoppix and do the following: (assuming /dev/hda is the device and /dev/hda1 the first partition)

1. Open a Terminal
2.
Code:
 knoppix@box$ sudo mount -o dev,rw /dev/hda1
3.
Code:
 knoppix@box$ sudo chroot /mnt/hda1 grub-install /dev/hda
if that doesn't work, or if you can't chroot, come back and we'll try a different way
moistmule is offline   Reply With Quote
Old 06-27-2006, 08:35 AM   #3
Member (6 bit)
 
Join Date: Jun 2004
Posts: 57
thanks moist,

I have been able to get the system to boot sporadically typically after 4 or 5 boots, but I'm sure this problem will become permanant really soon. If possible and if I can boot again I then plan to repair grub from the terminal after booting.

Will the sudo command that you provided work with any version of linux, I am currently using Fedora 5 which is installed on the slave hd which I think is hdb.
lglrgl is offline   Reply With Quote
Old 06-27-2006, 10:39 AM   #4
Member (7 bit)
 
moistmule's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 114
sudo might work, depends on your setup. use this instead:
Code:
user@fedora$ su
Password: [enter password]
sudo is just a short cut to the above anyway.
moistmule is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:34 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2