Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-14-2006, 03:09 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 9

Rep: Reputation: 0
installing grub

hi to all
i have 2 hdd's (W and L)attached in my cpu.
on W i have installed xp and on L have installed linux 9.
after complete installation of linux it was working fine.
i then detached L and booted the system on booting it gave me OS error(cant remember exactly).
on W i installed xp and detached this hdd from bios after complete setup.
then i attached L hdd and booted the sys but it gave me same error. itried to repair grub using chroot /mnt/sysimage
grub-install --root-directory=/boot'(hd0)'

it got repaired successfully.
but on rebooting "grub>" prompt comes.

cud any one help me in this and to get linux recoverd

Old 03-14-2006, 11:02 AM   #2
Registered: Jun 2003
Location: Boston, MA
Distribution: Debian
Posts: 57

Rep: Reputation: 15
I'm not sure that
grub-install --root-directory=/boot'(hd0)'
is what you want, I think that
grub-install --root-directory=(hd0,0)/boot
would do the trick. In this, I am assuming that the /boot directory on the hard drive is on the primary partition. If you have a separate boot partition, you'd want to replace (hd0,0)/boot with (hd0,x) where x is the number of the partition.

Hope that helps...


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing grub sobank Linux - Newbie 4 03-07-2005 09:47 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
Re-installing XP with grub Rizla Linux - General 1 04-14-2004 08:43 AM
re-installing GRUB newbix Linux - General 8 10-27-2003 01:50 AM
Installing Grub dark_light Linux - General 2 10-09-2002 08:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 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