FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dual boot with Fedora and Ubuntu

    Hi Admin,

    I hope I have chosen the right thread to ask my question, if not apologies in advance. Thanks

    I just tried to make a dual boot system (I have only one hard drive any way) with Fedora 14 and Ubuntu 10.10. I tried to do so by trying two different methods as mentioned below.

    Method one:

    First I installed Ubuntu 10.10 on choosing this intall option Erase and use the entire disk, which actually erased all other partitions and operating systems if any. As I went ahead with the installation here is what the partition table looked liked.

    sda

    sda1 73319 ext4
    sda2 2998 Extended
    sd5 2998 Swap

    I selected the sda1(73319 ext4) partition to install Fedora, pressed Next button and up came a dialog called Partitioning errors, which said that - You have not defined a root (/) partition- so I pressed OK button and then up came another dialog called Create Storage, where I chose Standard Partition and then chose the following parameters from the next Add Partition dialog Mount point (/), File sytem: ext4, Size: 30000 (MB), Fixed size. But this did not work as there was an error which said -Could not allocate requested partitions, not enough free space on disk . I tried smaller sizes such as 3000 MB, even 300 MB, but it would show the same error.

    So I selected the same partition sda1(73319 ext4) again pressed Edit button below and there came a dialog called Edit Partition where I set the following parameters - Mount point (/), Original File sytem: ext4, Format as: ext4, Resize: 2228 (this option was not visible or enabled though). Pressed OK button and a tick appeared next to the sda1(73319 ext4) partition.

    Then I selected the same partition - sda1(73319 ext4), and clicked Next to face another dialog called Format Warnings, pressed Format button, then another dialog- Confirm, pressed Write to disk button.

    Then on the screen I had - Install boot loader on /dev/sda with two options below.

    1. MBR - /dev/sda
    2. 1st sector of boot partition - dev/sda1.

    I chose the 1st option MBR. Below there was a title called - Boot loader operating system list which had only one option under it called - Fedora /dev/sda1.

    Pressed Next.

    Installation done with no problems, rebooted and completed the remaining options such as license etc and the pc booted into Fedora. But when I rebooted the pc there was no boot menu to choose from. I expected it to show two OS - Fedora and Ubuntu. The pc always booted to Fedora no matter what. Where is Ubuntu gone in this case?
    ----------------------------------------------------------------------------------------------------

    Method two:

    First I installed Ubuntu 10.10 on choosing this intall option Erase and use the entire disk, which actually erased all other partitions and operating systems if any. As I went ahead with the installation here is what the partition table looked liked.

    sda

    sda1 73319 ext4
    sda2 2998 Extended
    sd5 2998 Swap

    Then the exact story as in method one until I had the following on the screen

    Install boot loader on /dev/sda- with two options below.

    1. MBR - /dev/sda
    2. 1st sector of boot partition - dev/sda1.

    This time I chose the 2nd option - 1st sector of boot partition - dev/sda1. Below there was a title called - Boot loader operating system list which had only one option under it called - Fedora /dev/sda1.

    Fedora installation completed. When I rebooted the pc it showed errors on the black screen as follows....

    Errors...

    Booting from local disk...
    error: File not found
    grub rescue>
    I could not boot to Fedora from here. Here also there is not boot menu with two OS options and Ubuntu is completely missing.

    So this is a long story, but it was necessary for me to describe as to how I went about setting up a dual boot system (on the same hard drive). Please get me out of this mess. Thanks a lot.

    ---------- Post added at 09:29 PM ---------- Previous post was at 08:58 PM ----------

    Friends,

    Please guide me if you have been successfully able to dual boot with Fedora and Ubuntu by helping me out with the following questions...

    Which OS should I install first?
    Which option should I choose to install both of them?
    Should I go for erase the entire disk or shrink disk or use free space? Should I choose MBR or First sector of boot partition to install boot loader when installing Fedora (after having installed Ubuntu)?

    ---------- Post added 18th July 2011 at 01:03 AM ---------- Previous post was 17th July 2011 at 09:29 PM ----------

    Hi,

    This is method three here is the link to an Intel company web page which describes building a dual boot system with Ubuntu and Fedora.

    http://software.intel.com/en-us/arti...l-boot-system/

    I followed all the steps described there and now I have my system only booting to Ubuntu and now Fedora is missing. When I used this command fdisk - l , here is what I got in the terminal..


    Device Boot Start End Blocks Id System

    /dev/sda1 4845 9730 39238586 5 Extended
    /dev/sda2 * 1 64 512000 83 Linux
    Partition 2 does not end on cylinder boundary
    /dev/sda3 64 4845 38398976 8e Linux LVM
    /dev/sda5 5839 9730 31249408 83 Linux

    So what do I do now to make dual boot possible? thanks
    Last edited by tech291083; 18th July 2011 at 08:52 AM.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  2. #2
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    The order of installation shouldn't matter, but you should select to install the boot loader to the first sector of the boot partition instead of the MBR.

    GRUB (already on the MBR at this point) will then be booting only one of the two OSs - to fix this, you can use the following sample code for grub.conf:
    Code:
    title Ubuntu
      root (hd0,0)
      chainloader +1
    
    title Fedora
      root (hd0,1)
      chainloader +1
    This will tell GRUB to load the boot partition of the corresponding OS and then load GRUB from first sector of that partition. You will need to substitute (hd0,0) and (hd0,1) as appropriate depending on your partition layout. (hd0,0) means the first disk, first partition and similarly, (hd0,1) would mean first disk, second partition. So you'll want to substitute these values for the real boot partitions for Fedora and Ubuntu, respectively.

    Edit: Based on the output you have provided from fdisk, the code for /etc/grub.conf should be something like this:
    Code:
    title Ubuntu
      root (hd0,1)
      chainloader +1
    
    title Fedora
      root (hd0,4)
      chainloader +1
    This may not work if you have not selected to install the bootloader to the first sector for each OS though.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  3. #3
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    This should be fairly simple. Either you install Fedora first and Ubuntu second, in which case Ubuntu's grub should add Fedora to the boot menu or you install Ubuntu first and Fedora second. In this case Fedora's grub will not add Ubuntu to the boot menu, you will need to add it manually. If so, it will probably be easiest just to boot Ubuntu directly with something similar to this:
    PHP Code:
    title    Ubuntu 11
        root 
    (hd0,7)
        
    kernel /boot/grub/core.img 
    Of course where I have root (hd0,7) you will have something different, depending on what partition Ubuntu is installed to.This method works extremely well for me.

  4. #4
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Quote Originally Posted by Firewing1

    Edit: Based on the output you have provided from fdisk, the code for /etc/grub.conf should be something like this:
    Code:
    title Ubuntu
      root (hd0,1)
      chainloader +1
    
    title Fedora
      root (hd0,4)
      chainloader +1
    This may not work if you have not selected to install the bootloader to the first sector for each OS though.
    Hi Firewig,

    First of all thanks a lot. It is a good reply indeed. Now I am focusing on the third method which I did by following the instructions on the web page whose link I have already mentioned in my previous post. I also have the fdisk -l output in Ubuntu in the same post. So now I am trying to get my Fedora install back. Couple of queries before I try to do so.

    1. You have mention that I need to modify the /etc/grub.conf file in Ubuntu. But do I need to insert the Ubuntu CD and then use it as a live CD to do so or I do not need the CD at all and do it in a terminal with Sudo?

    2. You have also mentioned that it may not work if I have not selected to install the bootloader to the first sector for each OS. This is a bit trikcy for me and the reason is that I just followed the instructions on the page. One thing I surely did was resize one partition which was perhaps ext4 and /dev/sda1, using the GNOME Partition Manager as found in: System – Administration- on the Ubuntu CD.

    But here is what the GUI showed and I have written it down on a piece of paper.

    PHP Code:
    Unallocated unallocated 37.11 GB
    /dev/sda1 extended 37.42 GB
     unallocated unalloacted 7.62 GB
    /dev/sda5 ext4 29.80 
    Thanks
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  5. #5
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    I just wanted to mention that for what it's worth, glennzo's approach is the easiest if you're looking for a good and reliable fix to the problem. The chainloader method that I posted above is more complex because it is modular and keeps the Fedora and Ubuntu configurations entirely separate. If this is not a problem for you (I suspect it isn't), then glennzo's approach is better.

    Am I correct in saying that /dev/sda1 is Ubuntu? If so, then this will do using glennzo's method:
    Code:
    title    Ubuntu 11 
        root (hd0,0)
        kernel /boot/grub/core.img
    You can modify grub.conf either from the boot CD or from your installation directly - either should work.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  6. #6
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Hi Firewing,

    I just tried yours and Glenzo's solutions separately but none seems to be working. Looks like I have hit a dead end, until I try something else. Thanks do reply with more suggestions if any...

    I am now going to re do the method 3 which involves installing Ubuntu 10.10 first on the entire disk, followed by Fedora 14. Here is the guide that I am going to use as it seems much easier to follow to me as of now.

    http://software.intel.com/en-us/arti...l-boot-system/

    Here is the section on the page called Modifying the Disk Partition information, which I am trying to customize to my situation. Here it is as it appers on the page.
    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.


    ---------- Post added at 04:22 AM ---------- Previous post was at 03:33 AM ----------

    Ok, I have just reinstalled Ubuntu 10.10 on the entire disk, wiping out all other OS including Fedora 14 and partitions.

    Here is the output of fdisk -l command in Ubuntu just after installation.

    PHP Code:
    Device Boot Start End Blocks Id System

    /dev/sda1 *  1    9347 75078656  83 Linux
    /dev/sda2    9348 9730  3069953  5  Extended
    /dev/sda5    9348 9730  3069952  82 Linux swap/ Solaris 
    Here are the steps I am struggling with.

    4. Select to resize the primary drive

    Which one is the primary drive? I have only one drive/hard drive here and it is sda- I understand. Here is the output of the fdisk -l command just as above.


    PHP Code:
    Device Boot Start End Blocks Id System

    /dev/sda1 *  1    9347 75078656  83 Linux
    /dev/sda2    9348 9730  3069953  5  Extended
    /dev/sda5    9348 9730  3069952  82 Linux swap/ Solaris 
    And here is what I see using the Disk Utility program, a GUI. It shows partitions as big rectangle blocks on the screen, but I am writing them in words.

    77 GB ext4
    Extended 3.1 GB
    3.1 GB Swap space

    Now I insert the Ubuntu CD and boot the system from this CD. I then start the GParted Partition Editor/GNOME Partition Manager as found in: System – Administration. Here is what I see using GParted program,

    Device File System Size Used Unused Flags

    /dev/sda1 ext4 71.60GB 3.13GB 68.47GB Boot
    /dev/sda2 extended 2.93GB - -
    /dev/sda5 Linux-swap 2.93GB - -

    5. Enter values that create two equally sized partitions

    Should I select the first option /dev/sda1 - ext4 - 71.60 GB to create two equal sized partitions out of it? When I select /dev/sda2 - extended or /dev/sda5 - linux-swap, I am not allowed to resize any of them as the resize button becomes disabled/invisible automatically.
    I selected the the first option /dev/sda1 - ext4 - 71.60 GB.

    GParted then created a new partition arrangement which looked like this...


    Partition File system Size Used Unused Flags

    unallocated unallocated 34.67GB - - -
    /dev/sda1 ext4 36.93 2.58 34.35 boot
    /dev/sda2 extended 2.93 - - -
    /dev/sda5 linux-swap 2.93 - - -

    Looks like I have now reached step 10 successfully.

    Moving on to next 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 next 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.

    Title Ubuntu 8.04.1, kernel 2.6.24-19.generic
    Root (hd0,0)
    Kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=63766a10-f196-47b2-b2be-2a057b4be170 ro quiet splash
    Initrd /boot/initrd.img-2.6.24-19-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.
    Last edited by tech291083; 18th July 2011 at 05:02 PM.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  7. #7
    Join Date
    Oct 2004
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    HI tech291083,
    \
    What is the motivation for dual boot ? I personally have plenty of configuration going on "just because" what ever you want to do is fine.
    I am actually dual booting Ubuntu 10.10 with F15 but my system is using lvm and mdraid which would not apply so the way I have my system set up would just be extra complicated.

    If you have some specific purpose we can give better advise. This is especially true when figuring partition sizes. If you want to consolidate your music or edit video or test software... these all have system requirements that matter more if you are going with dual boot and partitioned storage space. Development ? QA? Design ?

    You need to plan your partitions in advance. I'd set them up first.

    Before you dual boot install yet again consider Virtualization.

    If you have
    * 2GB RAM preferably 3GB+
    * A processor and bios that supports virtualization instruction extensions
    I would use virtualization Instead.Its an easier alternative to dual boot. There are plenty of howto's on how to install 10.10 or F14 on a KVM virtual machine. Everything will be easier this way and the performance will comparable. In this case the virualized installation will be installed in a regular file inside the other os and you will be albe to resize that file whenever you want. The boot and stuff will just go in the beginning of the file. No confilicts.
    The installations will pretend they are on separate machines So two smooth installs. You can use file shareing to use data out of the same folders even use autofs to mount a dictated data directories via nfs from the host system.
    You then have alot of flexiblity because you can expand and contract your virtual disk file at will so you can use a a simple parition scheme as you have outlined.
    If you want to run a server then you will have to take it down to swap OS's with dual boot , but with virtualization you can use either os as a server and test client server between them. You can compare files, directories and software versions side by side on your screen with virtualization.


    Dual booting.

    Ubuntu's boot loader is gurb2 which has a different configuration syntax. Since it's more elaborate it may seem it's good idea to stick with grub classic. If that is what you wnat then use Fedora to create the boot loader and use the grub classic code from firewing. I have been able to "hack at my boot" and get it to work in grub2 which allows you to use cat and ls on files and load modules for more functionality. I have been able to hack the boot to get it to work when it failed with grub2 in situations where I'd have had to use the rescue cd to get grub classic to work.

    Setting up two-stage boot by forcing settings in the installation programs.

    An overview for two-stage grub2 boot configuration without lvm:

    Using a live CD or installer create a partition scheme:
    part1 For your stage 1 boot menu (1g for cushion but it could be smaller.).. or bigger for a fancy built in recovery like a small install of a command line distribution.
    part2 Ubuntu system (mark as bootable)
    part3 Fedora system (mark as bootable)
    part4 extended partition ( all the space that you will need for the logical partions)
    logical part5 Ubuntu swap ( Swap sizes the size of your RAM)
    logical part6 Fedora swap
    logical part7 data partition ( mount this either at /mnt/data or /home/username/data
    You can mount a partition any place you like. The system installer is proposing common mount points that it uses as targets and that effect the installation process.
    You can add mounts for your own purposes. It thinks case to share data space not the drives with both F14 and 10.10.
    I recommend separate swaps for each system .. something i remember about suspending state to disk / hibernate features using swap space. ( needs research)

    Install Ubuntu to create your boot menu with grub2 and it's better rescue features. Tell it to install grub into the MBR on this first round. This is what your BIOS will always load first and some bios have trouble with anything else.

    Boot into the install and edit the section of /boot/grub/grub.cfg that it says to add stuff make your boot menu for the different partitions.

    This is when you put the code like that posted by Firewing1 into the grub.cfg. I say *like that* because I suggest you use grub2 from ubuntu. Grub2 has a different syntax and can be installed in Fedora. It's alot more flexible and also I don't know when Fedora will move to Grub2... Grub classic is not going to be maintained much longer.

    menuentry "Fedora 14" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set <uuid of file system >
    chainloader +1
    }

    use dumpe2fs or a disk manager from a bootable DVD for the uuid of the file system.
    At this point format your data partion if you made one.
    The beauty of a data partition is that it can be used in either system.
    When you upgrade any of the os's you can just use the same data partition

    The ext2 mod for grub2 aslo contains ext3 and ext4.

    Install Fedora and Ubuntu for real.
    Don't allow the installers to choose. Take control tell it to use the scheme you've already set up. In the second round do not use a separate /boot partition and also make sure to install the boot loader into the first sector of the boot partition.
    For convenience and maintenance create a mount point like /mnt/firstboot for /dev/sda1. You may just add that to /etc/fstab later either in a disk manager or by editing /etc/fstab.

    You could also avoid it by using the setup as a 1 stage boot for ubuntu and a 2 stage for Fedora.

    The size of the system drives and data drive would depends on how many programs you will install and what data you will be dealing with. If you use an external drive for most of your data like videos, and images then you won't need the data partition. You could also just make one OS bigger than the other and mount it, just for the data. The problem though is that all your files will be indexed across both systems and this can be confusing.

    What if one of the boots fail ? For example if /etc/fstab is not set up correctly. What do you do ? Try booting from the Fedora install disc and choose rescue.
    You will probably need to muck around eventually in a dual boot system.


    Why a two stage boot ? Why is it not simple like it should be ?

    The trouble is that the distros don't co-operate on Grub configuration. While each pretends to want to give acccess to the others none of them ask if you already have a grub installed and wish to use it's configuration. Also, grub does not offer any way to configure it from within itself, just hack throw-away fixes to get an OS up an going so that it can run disk integrity checks and load up a configurator or text editor. Both distros try to find other installed linux installations and enter them into the grub menu automagically but do so with the poorly conceived assumption that it owns the grub installed and can have it's way with it! They both break one another by clobbering the boot sector and don't have the same names for configuration files. I can tell you how to get a one stage boot all set up but as soon as there is a grub or kernel update on either system (kernel update triggers the scan and update of the gurb configuration) it may mess everything up. Maybe some others have good solutions for this but I do not have any easy ones.
    Why the (hd0,msdos3) ? In grub2 partitions are numbered starting with 1 rather than 0 but drives still start at 0.
    Grub2 supports different partitioning schemes. That is why the partition number is preceded by msdos because all most all OS's use a modified version of the original partition scheme from MSDOS!
    Grub2 can boot ubunutu, debian ... from loopback iso images on disk. The Fedora F15 kernel still does not yet support this ablilty. Grub loads the kernel from the loopback device but it does not have a patch that allows a kernel option to be passed from the boot loader to the kernel to tell it that it's running from a loopback device.
    Last edited by zarthon; 18th July 2011 at 01:45 PM.

  8. #8
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    All you need to do is use a disk partitioning tool to create a couple empty partitions of about 20GB each. That's enough space for pretty much any Linux installation. Install one OS on one partition and install the other OS on the other partition. Once that is accomplished you/we can figure out what you need to do to have a dual boot system. For me, it really doesn't matter which OS is installed where.

    In my opinion you're over complicating things by installing one OS to the complete disk and then trying to shrink the partition to make space for the second OS.

    I've been successfully multi-booting as many as 8 distros on 2 or more machines for years now with extremely few issues.

  9. #9
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Quote Originally Posted by glennzo
    All you need to do is use a disk partitioning tool to create a couple empty partitions of about 20GB each. That's enough space for Linux installation. Install one OS on one partition and install the other OS on the other partition. Once that is accomplished you/we can figure out what you need to do to have a dual boot system.
    Yes, I agree with you 100% here. Can I use GParted partitioning program on the Ubuntu CD to do the two 20 GB partitions?

    In my opinion you're over complicating things by installing one OS to the complete disk and then trying to shrink the partition to make space for the second OS.
    But there must be an OS on the hard drive to start with, right. Please correct me if I am wrong here. I am so frustrated by the lack of a proper guide by anyone on the net that I am left with no option but to follow the advice/instructions given on the page I mentioned earlier, here it is

    http://software.intel.com/en-us/arti...l-boot-system/

    I've been successfully multi-booting as many as 8 distros on 2 or more machines for years now with extremely few issues.
    This gives me hope that I can dual boot with Fedora and Ubuntu with guidance from users like yourself. Thanks
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  10. #10
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Quote Originally Posted by tech291083
    Can I use GParted partitioning program on the Ubuntu CD to do the two 20 GB partitions?
    I don't see why not. I would have suggested getting yourself a copy of the GParted bootable CD anyhow.

    Quote Originally Posted by tech291083
    But there must be an OS on the hard drive to start with, right. Please correct me if I am wrong here. I am so frustrated by the lack of a proper guide by anyone on the net.
    There are too many guides and not enough of them that give the same information. In other words, too many opinions.

    If there is an existing OS on the disk is it expendable? If so, plan out what you want to do with the system. Dual boot? Triple boot? Then think about how many (empty, unformatted) partitions you need to accomplish the tasks at hand and create them. Once done start by installing Ubuntu to the first partition. When that is complete start the Fedora install. Get that far and I'll show you howto dual boot using Fedora's legacy grub. Keep in mind that I'm at work so I won't be constantly checking Fedora Forum but I'll check in as time permits.

    If the existing OS is not expendable that you'll have to try shrinking the existing partition to make room for the second OS. I haven't played around with shrinking Linux partitions.

    As far as thinking ahead, planning, on one of my desktops I have a 200GB drive that I wanted to be able to install several Linux distributions to. With that in mind I created 10 20GB partitions before I installed anything. Now I can do as I please as there is always an empty partition to install whatever grabs my curiosity

  11. #11
    Join Date
    Oct 2004
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Re: Dual boot with Fedora and Ubuntu

    Quote Originally Posted by tech291083
    Yes, I agree with you 100% here. Can I use GParted partitioning program on the Ubuntu CD to do the two 20 GB partitions?
    Yes !

    Quote Originally Posted by tech291083
    But there must be an OS on the hard drive to start with, right.
    NO !

    Quote Originally Posted by glennzo
    All you need to do is use a disk partitioning tool to create a couple empty partitions of about 20GB each. That's enough space for Linux installation. Install one OS on one partition and install the other OS on the other partition. Once that is accomplished you/we can figure out what you need to do to have a dual boot system.
    YES !
    At some point you have to take what you have on the machine and just make it work.

    I am trying to tell you up front how to answer a few of the the questions in the installations that matter most. You can save alot of work with a bit of planning.

    Since Fedora and Ubuntu use different boot loaders, order matters. I took way too much time and text to explain that. Fedora first = chain load grub classic code posted by Firewing. Ubuntu first = grub 2 code. Be sure to put the code in the section of the file marked for user custom boots.

    You might make a rescue cd before the 2nd install.

    Consider if you have space trying out virtualization. Make one os partition a bit larger. 8gb for a virtual disk file would be roomy. Multi-boot is pretty old school. I use it primarily to migrate my main desktop system and for built in rescue. Multiboot is made eaiser because my BIOS boot menu *rocks* and that i have 5 disks... so that's 5 mbrs i can choose from BIOS.
    Last edited by zarthon; 18th July 2011 at 10:15 PM.

  12. #12
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Ok, I am done with the method three this around but stuck at the very last hurdle. Here is the url from which I have followed the guidelines.

    http://software.intel.com/en-us/arti...l-boot-system/

    But now I have done this method 3 with Ubuntu 6.06 and Fedora 12. Here is the latest scenario....

    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

    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


    Error 15: File notc found press any key to continue..
    Here is the output of fdisk -l command in a terminal in Fedora 12...

    Code:
    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...

    Code:
    # 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.

    Code:
     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.

    This is what I see using the Palimpsest Disk Utitlity program in Fedora 12.

    Code:
    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....

    ---------- Post added at 07:30 AM ---------- Previous post was at 07:22 AM ----------

    Quote Originally Posted by zarthon
    Using a live CD or installer create a partition scheme:
    Ok. I will do so soon. My situation I have only one hard drive ie 80 Gb and I need to dual boot with Fedora 12/14 and Ubuntu 6.06/10.10 - so where do I begin? Please give me some good plan, one that I can follow easily. Yes, I have 2 Fedora CDs one with Fedora 12 and another with Fedora 14 on it. The same goes for Ubuntu one is 6.606 LTS and the other is 10.10- thanks waiting for your reply.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  13. #13
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Hi Zarthon,

    I am thinking of dual booting with Fedora 14 and Ubuntu 10.10. So I am thinking of a partition plan for both of them knowing whatever little I do about partitions needed in a dual-boot system. Thanks.

    ---------- Post added at 01:44 AM ---------- Previous post was at 01:20 AM ----------

    Here is what I just did trying to dual boot with Fedora 14 and Ubuntu 10.10

    1. Inserted Fedora 14 DVD and went to parition step after inistally choosing the Create Custom Layout option.

    2. Here what I did and here is how my partition table looked at that stage. But I could not go further from there after creating all the necessary LVM Logical Volumes for Fedora 14 that in my opinion (I could be 100% wrong here, please correct me if required) are generally necessary.

    Code:
    Device      Size(MB)     Mount Point      Type       Format
    
    LVM Volume Groups
    
    FedoraVolGroup  36992
    
    home             10016             /home            ext4        tick
    root                5024              /                    ext4        tick
    swap              2016              NA                swap       tick
    free               19936
    
    Hard Drives
    
    sda
    
    sda1          37000            FedoraVolGroup  Physical Vol(LVM)  tick
    sda2          500                /boot                  ext4                      tick 
    free            38818
    Apologies, the table does not look properly formatted, but I hope you will get the info.

    After creating the above mentioned paritions root, swap and home as LVM Logical Volumes and boot partition as a Standard Partition (it would not allow me to mount boot partition on /boot when created it as an LVM Logical Volume
    so I had to create it as a standard partition), I started creating the same partitions (root, swap and home as LVM Logical Volumes and boot partition as a Standard Partition), but it would not allow me do so saying all the respective mount points were already in use namely /boot, /, /home. So am I wrong here by assuming that partitions for both Fedora and Ubuntu can be created in advance and both the OS can then be installed in their respective empty spaces? I have tried my best so far and I need some solid guidance now.

    1. Which are the paritions that are a must for both the OS here considering the fact that it is a dual-boot system?

    2. Should one be creating separate root, swap, home and boot partitions for both the OS?

    3. After creating paritions for both of them is it necessary to select the respective free space line in the partition table during installtion of both the OS to make sure that they both are installed in their respective free spaces? Or the installer for both automatically does so and one does not need to select the free space and just press the button Install Now?

    4. Where are the files and documents (created by users) actually stored in both OS? Is it the free space or home space?

    I now believe that I should only be using the Ubuntu alternate install CD to make things ie partitoning issues easy for me. But I am not sure. What do you think? Can I do it without it? Here is what the site says

    http://www.linuxbsdos.com/2011/06/20...ioning-scheme/

    Ubuntu Desktop comes with a simple, point-and-click installer, but it does not have support for disk encryption and LVM, the Linux Logical Volume Manager. The Alternate Installer edition uses an ncurses, keyboard-based navigation, but with support for LVM and disk encryption.
    Last edited by tech291083; 22nd July 2011 at 10:08 AM.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

  14. #14
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,568
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    My gosh! After installing both OS's, getting a dual boot system working should take about 5 minutes. Why all this fuss here?

    Laptop boot menu:
    PHP Code:
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You do not have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd0,2)
    #          kernel /boot/vmlinuz-version ro root=/dev/sda3
    #          initrd /boot/initrd-[generic-]version.img
    #boot=/dev/sda
    default=0
    timeout
    =30
    splashimage
    =(hd0,2)/boot/grub/splash.xpm.gz
    title     Fedora 15
        root 
    (hd0,2)
        
    kernel /boot/vmlinuz-2.6.38.8-35.fc15.x86_64 ro root=UUID=4b93c9df-c4da-42ae-9f25-cba47d632b0e rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
        initrd 
    /boot/initramfs-2.6.38.8-35.fc15.x86_64.img
    title     Fedora 14
            root 
    (hd0,1)
            
    configfile /boot/grub/menu.lst

    title    CentOS 6
        root 
    (hd0,5)
        
    configfile /boot/grub/menu.lst

    title     CentOS 5 
    (2.6.18-194.32.1.el5)
            
    root (hd0,4)
            
    configfile /boot/grub/menu.lst

    title     Debian 6
            root 
    (hd0,6)
            
    kernel /boot/grub/core.img

    title   Scientific Linux 
    (2.6.32-71.18.2.el6.i686)
            
    root (hd0,0)
            
    configfile /boot/grub/menu.lst

    title    Ubuntu 11
        root 
    (hd0,7)
        
    kernel /boot/grub/core.img

    title     Puppy Linux 525
        root 
    (hd0,8)
        
    kernel /boot/vmlinuz root=/dev/sda9 pmedia=atahd 
    Laptop fdisk:
    PHP Code:
    [root@satellite64 ~]# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads
    , 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units 
    = sectors of 1 * 512 = 512 bytes
    Sector size 
    (logical/physical): 512 bytes / 512 bytes
    I
    /O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier
    : 0xb3fd5b52

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *          63    41945714    20972826   83  Linux
    /dev/sda2        41945715    83891429    20972857+  83  Linux
    /dev/sda3        83891430   125837144    20972857+  83  Linux
    /dev/sda4       125837206   312576704    93369749+   5  Extended
    /dev/sda5       125837208   167782859    20972826   83  Linux
    /dev/sda6       167782923   209728574    20972826   83  Linux
    /dev/sda7       209728638   251674289    20972826   83  Linux
    /dev/sda8       251674353   293620004    20972826   83  Linux
    /dev/sda9       293620068   310472189     8426061   83  Linux
    /dev/sda10      310472253   312576704     1052226   82  Linux swap / Solaris 
    I'd post the same for my desktop but it would essentially be redundant.

  15. #15
    Join Date
    Sep 2006
    Posts
    2,176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dual boot with Fedora and Ubuntu

    Quote Originally Posted by glennzo
    My gosh! After installing both OS's, getting a dual boot system working should take about 5 minutes. Why all this fuss here?
    Yes, I agree with you 100%. But it is not the case with me here and thus I have been doing whatever I can using my own experince and that of Forum members and the net.

    I tried so many thing and still can't dual boot with Fedora and Ubuntu. It is much easy with Windows and Linux, but not as it looks with both the OS being Linux distros.

    The last thing that I tried seems the easiest thing to do as described on a site. But again I failed, the reason as mentioned on the site I did not use the Ubuntu alternate install CD which as per the site makes LVM paritioning much easier. I am stuck now, need help. I am sure that forum members will help no matter what to find a solution. Please suggest something, thanks

    ---------- Post added at 03:36 AM ---------- Previous post was at 03:32 AM ----------

    Quote Originally Posted by glennzo
    As far as thinking ahead, planning, on one of my desktops I have a 200GB drive that I wanted to be able to install several Linux distributions to. With that in mind I created 10 20GB partitions before I installed anything. Now I can do as I please as there is always an empty partition to install whatever grabs my curiosity
    Oh boy! Wish I could do the same...

    ---------- Post added at 03:39 AM ---------- Previous post was at 03:36 AM ----------

    Quote Originally Posted by glennzo

    [/PHP]
    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 41945714 20972826 83 Linux
    /dev/sda2 41945715 83891429 20972857+ 83 Linux
    /dev/sda3 83891430 125837144 20972857+ 83 Linux
    /dev/sda4 125837206 312576704 93369749+ 5 Extended
    /dev/sda5 125837208 167782859 20972826 83 Linux
    /dev/sda6 167782923 209728574 20972826 83 Linux
    /dev/sda7 209728638 251674289 20972826 83 Linux
    /dev/sda8 251674353 293620004 20972826 83 Linux
    /dev/sda9 293620068 310472189 8426061 83 Linux
    /dev/sda10 310472253 312576704 1052226 82 Linux swap / Solaris
    [/PHP]
    I am just going to be depressed now, seeing the things you have been able to do so easily. Great work indeed.
    fedoralinuxcommands.blogspot.com


    All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

Page 1 of 2 12 LastLast

Similar Threads

  1. Dual boot Ubuntu and Fedora
    By uniquerockrz in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 28th May 2011, 10:49 AM
  2. Dual Boot Ubuntu 9.04 and Fedora 10?
    By Cam42 in forum Installation, Upgrades and Live Media
    Replies: 24
    Last Post: 6th July 2009, 09:52 PM
  3. Dual-boot Ubuntu/XP, Replace Ubuntu w/ Fedora
    By safetycopy in forum Installation, Upgrades and Live Media
    Replies: 20
    Last Post: 26th February 2009, 09:11 AM
  4. Ubuntu / Fedora 8 Dual Boot
    By BrentNorin in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 26th November 2008, 02:17 PM
  5. Dual boot Fedora Ubuntu
    By Faineant7698 in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 28th February 2008, 08:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •