grub boot loader installation in dual boot machine after windows 7 installation
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
Last edited by Sayan Acharjee; 03-23-2010 at 02:03 AM.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.