|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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 |
|
|
|
|
|
#2 |
|
Member (7 bit)
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 Code:
knoppix@box$ sudo chroot /mnt/hda1 grub-install /dev/hda
|
|
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
Member (7 bit)
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] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|