LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-23-2010, 01:51 AM   #1
sourabh.sinha
LQ Newbie
 
Registered: Mar 2010
Posts: 14

Rep: Reputation: 0
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
 
Old 03-23-2010, 02:00 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by sourabh.sinha View Post
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.
 
Old 03-23-2010, 02:46 AM   #3
sourabh.sinha
LQ Newbie
 
Registered: Mar 2010
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 03-23-2010, 03:17 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Just a quickie, are we talking grub 1 or 2?
Cause I don't think the stageX files are in 2??
 
Old 03-23-2010, 09:22 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,524

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
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.
 
  


Reply



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
System boot failure after installation of fedora fc11 in dual boot with windows xp npsdevan Fedora - Installation 1 08-10-2009 04:45 AM
rhel5 dual boot installation- no grub at boot time. xxx_anuj_xxx Red Hat 5 12-30-2007 02:53 AM
Upgraded windows on my dual boot- grub loader? bourne Linux - Laptop and Netbook 2 03-20-2007 02:36 PM
Grub Boot loader installation problem Farrukh Fida Linux - Newbie 3 06-08-2006 07:34 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 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
Open Source Consulting | Domain Registration