LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-14-2006, 02:09 AM   #1
bhogalts
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

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

Rep: Reputation: 15
I'm not sure that
Code:
grub-install --root-directory=/boot'(hd0)'
is what you want, I think that
Code:
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...
 
  


Reply


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 08:47 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
Re-installing XP with grub Rizla Linux - General 1 04-14-2004 07:43 AM
re-installing GRUB newbix Linux - General 8 10-27-2003 12:50 AM
Installing Grub dark_light Linux - General 2 10-09-2002 07:25 PM


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

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