LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub boot loader installation in dual boot machine after windows 7 installation (https://www.linuxquestions.org/questions/linux-newbie-8/grub-boot-loader-installation-in-dual-boot-machine-after-windows-7-installation-797207/)

sourabh.sinha 03-23-2010 02:51 AM

grub boot loader installation in dual boot machine after windows 7 installation
 
Hello,
I had a dual boot machine with fedora 12 and windows vista and I could use grub boot-loader to switch between two. Few days ago windows got corrupt and I have to reinstall it. I put windows 7 now and as usual it erased grub. So to reinstall I put the fedora 12 installation CD on and followed some usual setup steps. When I got the command line I issued the command "grub-install /dev/sda" (sda not hda because It showed bunch of sda, sda1..) but surprisingly it said grub command not found. I remember doing it before while it worked fine. Can you guys help me out?
Thanks,
Sourabh

Sayan Acharjee 03-23-2010 03:00 AM

Quote:

Originally Posted by sourabh.sinha (Post 3908554)
Hello,
I had a dual boot machine with fedora 12 and windows vista and I could use grub boot-loader to switch between two. Few days ago windows got corrupt and I have to reinstall it. I put windows 7 now and as usual it erased grub. So to reinstall I put the fedora 12 installation CD on and followed some usual setup steps. When I got the command line I issued the command "grub-install /dev/sda" (sda not hda because It showed bunch of sda, sda1..) but surprisingly it said grub command not found. I remember doing it before while it worked fine. Can you guys help me out?
Thanks,
Sourabh

Follow these steps:

#grub
grub> find /boot/grub/stage1
grub> root (hd0,0)(this may be different in your system, use the find command above to determine its (hd 0,0) or something else.)
grub>setup (hd0)

quit and reboot.

sourabh.sinha 03-23-2010 03:46 AM

grub problem
 
Well,
First I should have been more careful about the error I got when I tried with "grub-install /dev/sda": --> /sbin/grub: Not found. Any how I tried as you suggested. when I fired the command: "grub> find /boot/grub/stage1" I found "Error 15: File not found"! Any more suggestions?
Thanks,
Sourabh

grail 03-23-2010 04:17 AM

Just a quickie, are we talking grub 1 or 2?
Cause I don't think the stageX files are in 2??

yancek 03-23-2010 10:22 AM

Take a look at your partition information using the "fdisk -l" command to see if it is different from previous to installation of windows 7. AFAIK, Fedora creates a separate boot partition by default and that may have been overwritten in the windows 7 install, don't know for sure but worth checking.


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