| Author |
Message |
|
|
|
Post subject: Reinstall grub on my hd
Posted: Mar 21, 2008 - 05:05 PM
|
|
Joined: Feb 06, 2007
Posts: 38
Location: France
Status: Offline
|
|
hello
I would like to reinstall grub on my hard disk, it seems to be corrupted. I can start my distro with the floppy disk I made during the installation procedure. The file menu.lst seems to be OK, what should I do to repair the mbr ?
I found that command:
grub-install --root-directory=/media/sdaX /dev/sdY
Here you canfind my partitions on the hard disk I found on gparted
Partition FS Mounting point
/dev/sda1 ext3 /media/disk0
/dev/sda2 linux-swap
/dev/sda3 ext3 /
as root do I have to make this ?
grub> root (hd0,2) seems to be the good partition for grub
grub> setup (hd0)
grub> quit
Thanks everyone !  |
Last edited by philaug on Mar 21, 2008 - 05:54 PM; edited 1 time in total
|
| |
|
|
|
 |
|
|
Post subject: RE: Reinstall grub on my hd
Posted: Mar 21, 2008 - 05:53 PM
|
|
Joined: Feb 06, 2007
Posts: 38
Location: France
Status: Offline
|
|
Everything is now OK
I have done this as root:
grub> root (hd0,2)
grub> setup (hd0)
grub> quit
and evrey thing is in order !!!!
Bye and good luck everyone on sidux |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Reinstall grub on my hd
Posted: Mar 28, 2008 - 05:02 PM
|
|
Joined: Mar 28, 2008
Posts: 51
Status: Offline
|
|
| philaug, you did it the correct way, but those with limited knowledge might find Super Grub an option. The new verison works great. I had a dual boot of Windows/debian, and Windows got corrupted(surprise), and I fix it with a restore. I thought I backed up my mbr correctly, but when came time to reinstall it. It failed. Super Grub to the rescue. The new version worked in seconds and now I'm back with Grub bootloader. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Reinstall grub on my hd
Posted: Mar 28, 2008 - 06:54 PM
|
|
Joined: Nov 25, 2006
Posts: 2571
Status: Offline
|
|
| "Super grub" is explicitly recommended against and is not able to boot concurrent linux systems! |
|
|
| |
|
|
|
 |
|
|
|
|