sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
philaug
15 Post subject: Reinstall grub on my hd  PostPosted: Mar 21, 2008 - 05:05 PM



Joined: Feb 06, 2007
Posts: 38
Location: France
Status: Offline
hello Very Happy
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 ! Very Happy


Last edited by philaug on Mar 21, 2008 - 05:54 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
philaug
Post subject: RE: Reinstall grub on my hd  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
VernDog
Post subject: RE: Reinstall grub on my hd  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
slh
Post subject: RE: Reinstall grub on my hd  PostPosted: 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!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio