LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-26-2013, 11:02 AM   #1
Xenphor
Member
 
Registered: Aug 2011
Posts: 54

Rep: Reputation: Disabled
How to install bootloader to partition after install; use Windows bootloader to boot


I realize that since fedora 18, the installer no longer allows you to install the bootloader to a partition. However, I still wish to do this and add Fedora to the Windows bootloader along with Ubuntu (already installed).

I've already tried this method here in the second post: http://forums.fedoraforum.org/showthread.php?t=288304

chroot /mnt/sysimage
grub2-install --force /dev/sdXY

That appears to work, but it somehow messes with Ubuntu's grub installation to where I cannot boot into either OS. I just get dumped to the grub command line. I'm guessing there might be a way to fix this but I don't know how.

The way I add the OSes to the Windows loader is with EasyBCD. I manually select the linux partition (in this case either sda3 for Ubuntu or sda5 for fedora) and click "add Grub2 boot loader". This works fine for a single linux install along side Windows 7, but as I mentioned previously, I cannot boot two separate installs of Linux, each with their own boot loader.

Should I even be using grub to boot fedora on a partition if it is going to mess with ubuntu's installation? Should I try installing some other loader such as the FreeBSD loader instead so that there wouldn't be any conflicts? How would I do that?

I would just like to have two installs of linux along side Windows using the Windows loader. Unfortunately, Fedora's lack of options in the installer is making it difficult.

Last edited by Xenphor; 07-26-2013 at 11:04 AM.
 
Old 07-26-2013, 11:22 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,084

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
If I remember right, easybcd uses grub4dos and creates a \boot\grub directory and subdirectory/files in windows. I Think if you create entries in \NST\menu.lst for your linux distros should allow you to boot and/or chainload your linux distros from windows using the neo-grub entry.
 
Old 07-26-2013, 06:17 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,136

Rep: Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954
I don't see how installing Grub2 on the Fedora partition could cause problems with Ubuntu on another partition unless you entered the wrong device/partition number. You indicate you are using EasyBCD and from your post, it seems the problems are there.

Did you run the command you posted at the end of the Fedora installation and before rebooting as instructed?
I don't use Fedora so can't test this but what I use to install Grub2 to a partition is the command below, the partition to install to being sda4. I do this from a Live CD and create the mount point /mnt/sda4 and mount the partition:

Quote:
grub2-install --root-directory=/mnt/sda4 /dev/sda4
If that doesn't work you can try the force option:

Quote:
grub2-install --force --root-directory=/mnt/sda4 /dev/sda4
You could also add a Fedora configfile or chainloader entry in the Ubuntu menu and boot Fedora with that if you are having problems with EasyBCD.
 
Old 07-28-2013, 12:56 AM   #4
Xenphor
Member
 
Registered: Aug 2011
Posts: 54

Original Poster
Rep: Reputation: Disabled
Alright I tried again, this time with only Windows 7 and Fedora on the drive; sda1,2 for windows and sda3 for Fedora. I ran this command:

grub2-install --force --root-directory=/mnt/sysimage /dev/sda3

/sysimage is where /dev/sda3 automatically mounted when I clicked on the drive in Dolphin so I used that. I did this after install on the livecd.

I then did the same thing I did to create the Ubuntu entry with EasyBCD - Grub2 Auto find Linux install. Unfortunately, when I select Linux from the boot menu, I just get dumped into the grub command line. I guess it can't find the kernel to boot or something? What exactly would I edit to make it work?

edit: did it again. Here is the output:

/usr/sbin/grub2-bios-setup: warning: File system ‘ext2’ doesn't support embedding.
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.

edit2: I chrooted into sda3 in the live cd and ran the grub2 config program and now it works. Now I got another problem though; after installing the Nvidia (gtx680) binary drivers from the repo, my mouse no longer works. I'm guessing it created a faulty xorg.conf? I tried removing it but then my system wouldn't boot.

edit3: Okay apparently there was no evdev config file in xorg.conf.d so I made one. I still don't unerstand why I need an xorg.conf because shouldn't I be able to run without one? I used nvidia without xorg in Ubuntu fine.

Last edited by Xenphor; 07-28-2013 at 10:23 AM.
 
  


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
How do I install Fedora on a GPT disk without creating a bootloader partition? skykooler Fedora 2 12-12-2012 12:51 AM
No Windows 7 Bootloader after Linux sw RAID-1 install gargamel Linux - Newbie 2 05-16-2009 11:12 AM
Dual Boot windows messed up partition table and bootloader Abraxis Linux - Newbie 3 04-26-2009 05:45 PM
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
Oops, I let my new windows install overwrite my FC2 bootloader on the MBR... mono Fedora 1 08-03-2004 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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