| October 9, 2008 1:00 AM PDT | |
Building a system that has both Ubuntu and Fedora installed.
By Dale Taylor 5Oct2008
Keywords: Ubuntu, Fedora, Dual Booting, Linux, MID
These instructions detail the steps for creating a dual boot system with both Ubuntu and Fedora versions of Linux. Since Moblin v1 was primarily developed using Ubuntu and Moblin v2 uses Fedora, as Moblin developers this can be helpful. If you were setup a system with both OS’s from scratch it might be better to install Fedora first and Ubuntu second as Ubuntu has a better partition manager.
The reason for providing these instructions is that as Moblin developers we have been using Ubuntu systems and are now needing to support Fedora systems too.
Installing Ubuntu
1. I installed Ubuntu 8.0.4 as built from the latest images.
2. Booted the Ubuntu install CD and selected “Guided, use entire disk”
3. You need to select a name and password
a. I used the same name and password for both installations.
4. Once the OS was booted I went into system preferences and setup the network proxy to enable network access from within the firewall. This step is necessary if you have a firewall, if you are outside your selections might be different.
5. Using the update manager, I installed updates just to make sure everything was current.
Modifying the Disk Partition information
1. To enable a second OS on the drive we need to make room for it.
2. Boot your system using an Ubuntu “Live” CD which runs Ubuntu from CD and not from your installed setup.
a. This requires your system to be able to boot from a CD.
3. Once the Live version is up, run the GNOME Partition Manager as found in: System – Administration.
4. Select to resize the primary drive
5. Enter values that create two equally sized partitions
a. Do NOT select ok yet as it will fail since the drive is mounted.
6. Bring up a terminal window
7. Type: sudo umount /dev/sda1
a. check to make sure this is the drive you are expecting by looking at the graphical UI
8. Now with the drive unmounted, go back to the GUI and select OK and then APPLY
9. It takes some time to resize and then gives a few errors as it’s unable to auto mount the drive since it was unmounted without the GUI app knowing.
10. The result is you should have your partition ½ full and ½ unallocated now.
Installing Fedora
1. Boot your system with the Fedora install DVD
a. Select Install or upgrade an existing system
b. Skip the media test
2. GUI comes up now
a. Select Next (to continue installing)
b. Select English as the language
c. Select US English as the keyboard
d. Hostname – select Auto via DHCP
e. Root password – I used the same as I had for Ubuntu
i. Select OK if it’s a “weak” password
f. @ the dropdown box at the top, select
i. Use free space on selected drives and create default layout
g. Check the box that says you want to review and modify partitioning layout
h. I took the defaults and when clicking next was warned to write the changes to disk.
i. Accept the changes
i. You get a “Formatting file/system” message and it’s there for several minutes
j. Selecte to install a boot loader on /dev/sda
k. Add Ubuntu as /Dev/sda1 then NEXT to keep going
i. This will need some serious changes later on because Fedora doesn’t know enough about Ubuntu
l. Select to add software dev tools since you’ll be using this as a development system.
m. You can select to add a web server to your system too
n. If you want to add additional Fedora software, it requires a connection and there wasn’t a way to setup a proxy in this dialog, so I skipped that since it can be done through the software management application once the install is complete.
o. Start the actual install.
i. It goes through 1149 packages with the v9 DVD
p. Says congrats install is complete, press reboot
3. At this point when you reboot you get the Boot Manager and it shows 2 options. 1 for Fedora and 2 for Ubuntu. The Fedora option will work but the Ubuntu option needs some serious changes.
Modifying Fedora to support dual boot
As unlikely as it seems, Fedora doesn’t know how to run Ubuntu, in fact you can’t even see the Ubuntu hard drives from Fedora. So, when the Boot Manager installed to run Ubuntu, it didn’t get things right. The Ubuntu strings need to be added to the Fedora Boot Manager, here’s instructions for doing that.
1. Put the Ubuntu Live Boot CD in the system and boot it
2. Open the file /boot/grub/menu.lst
3. Once you have the file look for the section near the bottom that shows how to boot Ubuntu. It looks about like these 4 lines… YOURS will be different because the UUID info is different for each drive. You need to write it down exactly, all 4 lines (double check it too).
a. Title Ubuntu 8.04.1, kernel 2.6.24-19.generic
b. Root (hd0,0)
c. Kernel /boor/vmlinuz-2.6.24-19.generic root=UUID=63766a10-f196-47b2-b2be-2a057b4be170 ro quiet splash
d. Initrd /boot/initrd.img-2.6.24-19-generic
4. Re-boot your system and select Fedora from the boot manager
5. Inside of Fedora, bring up a terminal by selecting: System Tools Terminal
6. In the terminal change to root by typing SU
7. Then enter the root password as requested
8. Now type: gedit /boot/grub/menu.lst
9. Modify the Ubuntu entry to match what you just wrote down above
10. Save the changes
11. Reboot and check that both OS’s work now. If your Ubuntu doesn’t boot, check VERY carefully for typos as everything needs to be exactly right for this to work.
Now you have a dual boot Ubuntu-Fedora system for all your Linux development needs.
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (8) 
| April 29, 2009 11:55 AM PDT
Henry Bruce
|
Thanks - great post. I just did this with Fedora 10 and the Ubuntu partition appears as a drive. Made life much easier! |
| September 11, 2009 3:29 PM PDT
hemanth.hm |
Installed FC 11 now, i was able to access the Ubuntu hard drives from Fedora. I may having Ubuntu Jaunty 9.04, opened the /boot/grub/menu.lst with in Fedora, a small change after i copied and pasted to contents to the menu.lst of Fedora was i had to add "root hd(0,0)" after the title line. If you get a grub 15 error, the fix is universal it's as follows : For a quick fix, try this: At the boot prompt, hit "e". Edit the first line Change hd(1,0) to hd(0,0) hit 'b' to boot.. If that doesn't work: Boot the live cd, Get a Konsole. sudo bash (as root) mkdir /mnt/root mount /dev/sda2 (or whatever) /mnt/root mount /dev/sda1 (or whatever) /mnt/root/boot chroot /mnt/root vi /etc/fstab (remove all UUID entries, replace them with the commented /dev/?[abc]# entries) vi /boot/grub/menu.lst (replace all UUID entries with /dev/?[abc]# format entries). save, exit (Ctrl-D), reboot. |
| November 11, 2010 9:39 PM PST
rishi |
Firstly thanks for the kind information I am trying an FC10 Ubuntu 9.04 dual boot I followed your instuctions to the T (well almost..except for the fact that I did not upgrade packages on ubuntu or fedora) Here is where I am stuck. SECTION : Modifying Fedora to support dual boot I do not see a "menu.lst" in /boot/grub on the Ubuntu live CD or on the ubuntu filesystem as I see it from fedora. There is a grub.cnf which is somewhat similar to your text here, so I copied its contents to the bottom of my fedora's /boot/menu.lst. But no success ! I am getting an Error 17 (cant mount partition) when I click on Ubuntu boot option on boot up. Any suggestions are very welcome. Thank you again |
| June 19, 2011 11:11 PM PDT
Rodney |
for here: Installing Ubuntu 1. I installed Ubuntu 8.0.4 as built from the latest images. 2. Booted the Ubuntu install CD and selected “Guided, use entire disk” Can you just choose to select half the disk at this point instead of choosing the entire disk? that way you can avoid having to resize?? |
| June 28, 2011 9:12 AM PDT
danang | I've installed a dual boot fedora and ubuntu, but I can not retrieve the files contained in the folder /home belongs to ubuntu. Can you help me? |
| July 18, 2011 8:43 PM PDT
james |
I am trying to dual boot with Ubuntu 10.10 and Fedora 14. Looks like I have completed the first section called - Installing Ubuntu successfully. Moving on to second section called - Modifying disk partition information - All the 10 steps seem to have gone well without any problem. At this point there two almost equal sized paritions are there. Moving on to third section called - Installing Fedora - All the 3 steps seem to have gone well without any problem. At this point when I reboot the Boot Manager shows 2 options. 1 for Fedora and 2 for Ubuntu. Moving on to fourth section called - Modifying Fedora to support dual boot. Here step two, trying to open the file /boot/grub/menu.lst as root, but there does not seem to be such file. May be I have a different grub version in Ubuntu 10.10, which actually is 1.98+20100804, so I created a file named menu.lst (/boot/grub/menu.lst) with the following text in it. Quote: ------------------------------------------------------------ title Ubuntu 10.10 root (hd0,0) kernel /boot/vmlinuz-2.6.31-11-generic root=UUID=cb201140-52f8-4449-9a95-749b27b58ce8 ro quiet splash initrd /boot/initrd.img-2.6.31-11-generic ----------------------------------------------------------------- ---- Typed the command update-grub in terminal as root. Now rebooted the system but no trace of Fedora whatsoever. Only Ubuntu availble for boot. So I am stuck on step 4 of this section called- Modifying Fedora to support dual boot. Please help me here, thanks |
| July 20, 2011 8:36 AM PDT
james |
This is method three: This involves legacy distros namely Ubuntu 6.06 LTS and Fedora 12. Here I have just tried to follow the instructions give on this page. http://software.intel.com/en-us/articles/build-an-ubuntu-fed.....ot-system/ I have reached the last step of the last stage called - Modifying Fedora to support dual boot- and I have reached the last step there - step 11. Which is like Quote: 11.Reboot and check that both OS’s work now. If your Ubuntu doesn’t boot, check VERY carefully for typos as everything needs to be exactly right for this to work. Now the pc shows two distros when booted Ubuntu and Fedora, but it does not boot to Ubuntu. It only boots to Fedora. Do not know why? When I try to boot to Ubuntu comes an error Quote: Error 15: File notc found press any key to continue... Here is the output of fdisk -l command in a terminal in Fedora 12 Quote: [root@localhost bhavin]# fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000eccce Device Boot Start End Blocks Id System /dev/sda1 1 4589 36861111 83 Linux /dev/sda2 9356 9729 3004155 5 Extended /dev/sda3 * 4590 4615 204800 83 Linux /dev/sda4 4615 9355 38078095 8e Linux LVM /dev/sda5 9356 9729 3004123+ 82 Linux swap / Solaris Partition table entries are not in disk order Disk /dev/dm-0: 36.9 GB, 36876320768 bytes 255 heads, 63 sectors/track, 4483 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table Disk /dev/dm-1: 2113 MB, 2113929216 bytes 255 heads, 63 sectors/track, 257 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-1 doesn't contain a valid partition table Here is how my boot/grub/menu.lst file looks in Fedora 12. I have modified it as per the Intel web page guidelines to add a few lines of Ubuntu... Quote: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,2) # kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=15 splashimage=(hd0,2)/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.31.5-127.fc12.i686.PAE) root (hd0,2) kernel /vmlinuz-2.6.31.5-127.fc12.i686.PAE ro root=/dev/mapper/VolGroup-lv_root LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet initrd /initramfs-2.6.31.5-127.fc12.i686.PAE.img title Ubuntu root (hd0,0) kernel /boot/vmlinuz-2.6.15-23-generic root=UUID=cd194d06-1824-4aac-b67b-83f26fe6f743 ro quiet splash initrd /boot/initrd.img-2.6.15-23-generic #title Ubuntu # rootnoverify (hd0,0) # chainloader +1 Here is how the same file ie - boot/grub/menu.lst looks in Ubuntu 6.06 LTS. Quote: title Ubuntu root (hd0,0) kernel /boot/vmlinuz-2.6.15-23-generic root=UUID=cd194d06-1824-4aac-b67b-83f26fe6f743 ro quiet splash initrd /boot/initrd.img-2.6.15-23-generic Initially this file did not exist in Ubuntu 6.06 and I had to created one by typing the following command as root in a terminal, which basically asked me that the file did not exist and whether I would like to create one, to which I said yes. Then I types the same command ie - sudo update-grub to update grub. Quote: sudo update-grub This is what I see using the Palimpsest Disk Utitlity program in Fedora 12. Quote: 38 Gb File system Linux Ext3 (Version 1.0) 3.1 GB Extended (Contains logical partitions) 3.1 GB Swap space 210 MB File system Linux Ext4 (Version 1.0) Bootable 39 GB LVM2 Physical Volume Here only one partitions is bootable and that is the 210 MB - Linux Ext4 - one. Should I also make all other paritions or any other partition in particular bootable? I have almost done it, but there seems to be a small problem as of now. Can you please help me get over the last hurdle? Thanks |
Trackbacks (1)
- Installing Fedora 14, Installation Problem
February 7, 2011 9:07 PM PST



socorro