LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-04-2012, 06:07 AM   #1
theupmost
LQ Newbie
 
Registered: Feb 2012
Location: Las Vegas, NV
Distribution: Ubuntu and Fedora
Posts: 6

Rep: Reputation: Disabled
Trying to dual boot with grub.


Hello all!

Kind of hit a snag here and could use a little help. I'm currently preparing for the Linux + certification in school. Over all I am moderately new to Linux, but do have general knowledge and can find my way around just fine.

Issue: I have an Acer Aspire One netbook. I partitioned as follows:

/dev/sda1: Fedora 16
/dev/sda2: Swap
/dev/sda3: Android 4.0 ICS i386 (found here)

However, Fedora 16 comes packaged with GRub2 (1.99) and the Android installation comes with GRub1 (0.97) Bootloaders. Both installations work just fine, however I do not no how to configure either version of grub to allow a dual boot. The Android installation either overwrites the boot loader with 0.97 or if told not to, it doesn't show up in 1.99. Installing Fedora overwrites with 1.99 but the Android installation is not detected.

I have never worked with GRub before and have not tried to edit the grub2.cfg file (I don't know exactly what to put in it).

Anybody willing to kind of walk me through it or give me some pointers? How can I manually add another entry in either bootloader (preferably GRub2) and direct it at the opposing OS? Thank you for your time.

Last edited by theupmost; 03-04-2012 at 06:09 AM.
 
Old 03-04-2012, 06:24 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,487

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Read this - it is Ubuntu, but pretty generic. Look for the "sample entry for chainloading to another GRUB bootloader."
 
Old 03-04-2012, 09:46 AM   #3
theupmost
LQ Newbie
 
Registered: Feb 2012
Location: Las Vegas, NV
Distribution: Ubuntu and Fedora
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you very much! Unfortunately, I wasn't able to get that to work. After doing the Fedora installation with Grub2, when I go to do the Android install, I only have 2 options for the grub1 bootloader, to install, or not to install. When I install, it only writes the bootloader to the MBR (/sda) instead of the partition (/sda3) which totally wipes out the grub2 bootloader.

I took an un-educated wack at manually creating an entry to the Android partition based off of the instructions in that article but I don't know how to get a UID for it and the "grub2-mkconfig -o /boot/grub2/grub.cfg" command says that I have invalid syntax and won't add the entry to the grub.cfg. I'm frustrated and tired of trying as of now. I will have to attempt again later today.
 
Old 03-04-2012, 11:02 AM   #4
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
It may be much easier to install grub (ver 1 or 0.97 or legacy) to mbr ie /sda and install grub2 to the partition like /sda1. Then edit /boot/grub/menu.lst file on sda3 to add following item to load grub2:

Title OS with grub2
root (hd0,0)
chainloader +1


The menu item should appear on booting and work. Note that the (hd0,0) means first disk, first partition.

Alternatively, you can install fedora with its bootloader to mbr (ie sda), and android without bootloader, then from a terminal in fedora give command as root or sudo: update-grub . This should find android installation and add it to its menu.

Last edited by rng; 03-04-2012 at 12:08 PM.
 
  


Reply

Tags
boot, dual, grub, loader


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub menu doesnt load at startup : dual boot : grub in the /boot partition jayesh.bhoot Linux - General 7 10-23-2010 04:58 AM
Grub stopping with dual HD dual boot arrangement CraigM Linux - Newbie 6 12-12-2007 12:17 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 11:56 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 04:38 PM


All times are GMT -5. The time now is 04:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration