LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-09-2010, 08:12 AM   #1
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Rep: Reputation: 15
Boot Loader ?


I had(have) Fedora 10 installed on my computer and was working ok with a dual boot with win Vista. Yesterday I installed Windows 7 ... and now I can boot only in Windows. Any Ideas how can I fix my boot loader ?
 
Old 01-09-2010, 08:16 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You wiped the bootloader.

What about the Linux Install? How did you install M$7? If you let the M$ installer wipe/format the whole drive then a re-install will be necessary. If not then your M$ bootloader will have to be modified to boot linux or re-install grub/lilo to boot your installs.


Last edited by onebuck; 01-09-2010 at 08:28 AM. Reason: grammar
 
Old 01-09-2010, 08:18 AM   #3
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
which bootloader are you using?
I'm not familiar with the Windows systems you have, but you might trying logging in with administrator, run fdisk and set the fedora partition as active and then reboot.
 
Old 01-09-2010, 08:25 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by multios View Post
which bootloader are you using?
I'm not familiar with the Windows systems you have, but you might trying logging in with administrator, run fdisk and set the fedora partition as active and then reboot.
Nope....
Setting a partition as active has no relevance in Linux.

What happened is that Windows put it's own bootloader in.

Simply boot up from any Linux LiveCD and reinstall GRUB from there.
 
Old 01-09-2010, 08:30 AM   #5
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

You wiped the bootloader.

What about the Linux Install? How did you install M$7? If you let the M$ installer wipe/format the whole drive then a re-install will be necessary. If not then your M$ bootloader will have to modified to boot linux or re-install grub/lilo to boot your installs.

I've formated the old windows partition.

How can I Install a new Grub ? or how to modify the Windows one ?



... I had an ubuntu x64 CD under hand ... but when I tried to install grub from it from recovery mode .. it said .it will delete some files... and I have impotant ones on my linux hard
 
Old 01-09-2010, 08:37 AM   #6
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
I did it! or at least Fedora came to life ;] ... the ubuntu x64 disked worked...I mounted a rescue system on the partition with linux... and there were option rebuild grub
 
Old 01-09-2010, 08:38 AM   #7
mi6091
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 15
Thank You for your posts
 
Old 01-09-2010, 08:38 AM   #8
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 39
The first thing I would do is start the computer with a live CD that has Gparted (nice partition manager) to see exactly what the Vista install did to your hard drive. I recommend Puppy Linux because it also has a tool to reinstall grub (the old version, not Grub 2). Since there are still issues with Grub 2, and it is technically still a beta, you should stick to Grub legacy. You have to use Gparted to set your Fedora partition as bootable (right click on partition, flags) Also, you will manually have to put an entry into the menu.lst file for Grub to boot Vista:

title Vista (or whatever you want)
root (hdx,x) replace the x's with whatever partition vista is installed on.
makeactive (trick vista into thinking that it still has its boot flag set)
chainloader +1 (Tell Grub to transfer control to Vista's boot loader, "shoved over" during Grub install)

Grub uses an odd naming convention for partitions. It starts from the first partion of the first drive, like this:

(hd0,0)

Make sure to install Grub to the root of your hard drive, or if you have two hard drives, whichever hard drive has your Fedora install on it.

That should do it.
 
Old 01-09-2010, 08:42 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Boot from any Linux live CD and get into a terminal.

First, run "fdisk -l" to confirm the drive and partition numbering. Let's assume that your Linux /boot is on a separate partition, sda2. The grub equivalent is hd0,1.

To install grub:
Code:
grub   ##starts the GRUB shell
root (hd0,1)   ##points GRUB to the location of /boot
setup (hd0) ##installs GRUB to the MBR of the #1 drive.
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
Two hard disks - dual boot ( XP - Linux ) using microsoft boot loader, not grub cristy88 Linux - General 2 12-17-2007 06:26 PM

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

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