Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-15-2008, 04:37 PM   #1
LQ Newbie
Registered: Oct 2007
Location: São Paulo - Brazil
Distribution: Debian Etch 4.1 r1
Posts: 12

Rep: Reputation: 0
Restoring GRUB boot loader

Hello everybody!!

I have tried to repair my GRUB installation using a live cd (Windows has eaten it!!) but I could not make it works. I needed to install Windows in my box and as everybody knows Windows replaces any existent loader by its own. To resolve this I decided to boot with my live cd and get used of the chroot command (chroot /dev/hda - that's my Red Hat partition) and finally run grub-install /dev/hda to install GRUB in the MBR again. These steps didn't work because there were not any device file in the /dev filesystem.

Is there any other way of getting GRUB recovered? Why there isn't any device under /dev after running chroot?

Thanks a lot!!

Last edited by googlix; 01-15-2008 at 04:39 PM.
Old 01-15-2008, 05:15 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
/dev/hda is the hard disk only; you need to add the partition number, such as /dev/hda2 (or whatever the partitiion is for you Linux partition).
Old 01-15-2008, 05:18 PM   #3
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,283

Rep: Reputation: Disabled
I do not like does not give correct feedback.

when you boot that live cd again try

root (hdx,y)
setup (hd0)
read my signature on what numbers to use for x and y....but if / is on hda1 they are 0,0

when grub is issued...and your live cd has no grub error will be command not found
at end of should see a message about embedding grub and the word succeeded.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
Restoring boot menu with grub shell Freestone Linux - Newbie 5 07-08-2006 10:09 AM
Fedora Remove and restoring windows MBR boot loader eng_muhammad Fedora 3 12-03-2005 12:39 PM
Removing Lilo, restoring to windows boot loader seeker131 Linux - Newbie 7 03-01-2005 05:26 PM
Restoring boot loader (with boot disk?) Kylotan Linux - General 0 07-08-2004 06:29 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration