Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an Acer Laptop with windows 7 pre installed. I want to install Ubuntu and fedora and make a triple boot configuration. I want to know how? I am a newcomer to linux and I need help.

share|improve this question

2 Answers 2

I suggest you install Windows first, then Fedora, then install Ubuntu last. Ubuntu's GRUB is better than Fedora's, since it detects all other operating systems on your computer.

  1. Install Windows!(Skip this step if you have it already)

  2. Shrink your Windows Partition using Disk Management by clicking the Start Menu, then right-click Computer, then select Manage. Then Select Disk Management from the sidebar.

enter image description here

  1. Right-Click the Windows Partition and Choose "Shrink Volume". Decide How many MB's you will want to give to Ubuntu and Fedora. More is better. Remember: 1GB = 1024MB. I suggest shrinking about 20-50 GBs for both Fedora and Ubuntu, since they need at least 6.5 GB for both.

  2. Shut down Windows.

  3. Boot into a Fedora Installation or Live CD and choose "Install Fedora".

  4. Keep going and then stop at this step.

enter image description here

Choose Create Custom Layout.

enter image description here

Select the "Free" thing and then click the "Create" button.

enter image description here

Click Create again. Choose the Mount Point as / and give some space to Fedora in MBs. Remember to leave some space for Ubuntu!

enter image description here

Go through the rest of the Process.(next, next, next.)

enter image description here

Restart your machine and setup through all those Fedora Stuff.

Then have fun with Fedora.

Then reboot into a Ubuntu Live CD.

enter image description here

Again, stop at this step.

enter image description here

Choose Something Else.

enter image description here

Click the Free space and then click Add. Again choose / for the mount point and use a Logical Partition. Choose any Disk size you want.

enter image description here

Click OK and go through the rest of the process. (next,next,next.)

enter image description here

A GRUB menu should appear to let you choose Windows, Ubuntu, and Fedora!

Note: If Fedora didn't show up in the GRUB menu, you might have to type sudo update-grub in the Terminal.

More Stuff:

Because this post is intended for beginners, I ignored swap. But here's how to have swap on a USB Stick if you want it. (Thanks Akshit Baunthiyal!)

For anyone that doesn't know what Swap is, read the SwapFaq in the Official Ubuntu Documentation.

  1. Boot into Ubuntu.

  2. Insert a 4GB+ USB Stick. Use a spare one, because stuff on the USB will be gone soon! Of course, you can ignore these steps, so read the SwapFaq to decide if you really need swap.

  3. Then go to Disk Utility. The USB Stick should show up in the sidebar.

enter image description here

Because I don't have a spare USB lying around the USB stick that is supposed to show up isn't shown.

  1. Click on the USB Stick, and then select Format Drive. Then choose linuxswap as the format. Remember not to format the wrong drive!!!

  2. After formatting, scroll to the side and look at the Device: column. Note the string that is followed by that. It should be something like "/dev/sdx1". Remember that!

enter image description here

  1. Fire up a terminal by searching "Terminal" in the dash.

  2. Type sudo mkswap /dev/sdx1 in the Terminal. Enter your password when prompted and replace "/dev/sdx1" with the string that I told you to remember.

  3. Next, type sudo swapon /dev/sdb. Again, replace /dev/sdb with the string.

  4. Then, type sudo gedit /etc/fstab. A window will appear.

enter image description here

  1. Add /dev/sdx1 swap swap defaults 0 0 to the end of the file.

  2. Save the file and close it.

Apply the same thing with Fedora if you want, but just remember that there is no sudo in Fedora and you will have to switch to a root prompt:

su --login

then type in your password in Fedora and follow the steps without having to type "sudo".

Now you should have a Triple-Boot system with Ubuntu, Windows, Fedora, and a swap in Both Ubuntu and Fedora!

share|improve this answer
2  
Now THIS is a great post! Props! –  Blah Aug 7 '12 at 16:36
1  
Also, since swap is usually necessary, you should give some space for it too. Better still, plug in a pen drive (minimum 4GB recommended), format it as linuxswap from the Disk Utility and execute this command mkswap /dev/sdb (where 'sdb' is the mountpoint of your USB drive). –  Akshit Baunthiyal Aug 7 '12 at 17:15
1  
And swapon /dev/sdb. Finally execute sudo nano /etc/fstab and add the following line at the end - /dev/sdb swap swap defaults 0 0. –  Akshit Baunthiyal Aug 7 '12 at 17:23
    
@AkshitBaunthiyal Thanks!!! Added to answer –  Emerson Hsieh Aug 7 '12 at 18:35

Make a backup of your windows 7 install - Imaging the whole disk with clonezilla is a good idea since OEM installs often do wierd bootloader stuff. This also means you can restore the system to factory settings if needed.

Firstly if you have lots of ram, avoid a swap partition ... We'll come to why later.

Plan your partitions - I'd suggest going with 2 system partitions, and initially one or no swap partition - this should simplify things considerably, and there's a good reason for this. I'd also suggest setting slightly different partition sizes for each (For example, 50 gigs for windows, 30 gigs for ubuntu, 28 gigs for fedora, and 2 gigs for swap). Write down the sizes. Make sure you know them. I'd suggest leaving the windows partition as primary, and using extended and logical partitions for linux.

Resize the windows partition, making sure its the first partition - i'd use the tools in the first linux distro you install to resize. Install, reboot, and check both OSes work. Ideally, i'd make a second image of the drive at this point

Install the second distribution. Reboot and retest.

At this point you have two OSes and ONE swap partition. Sharing a swap partition is messy - so i'd suggest setting up a swap file. There's no real performance issues with modern partitions.

For each distro, you will need to do the following things as root (su for fedora, sudo su for ubuntu will work). Instructions adapted from cyberciti

Firstly, you will want to create a disk image for your swap file - for a 512 mb swap file

dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 - replace the value of 'count' with the size you want in bytes.

mkswap /swapfile1 format the swapfile as a swap partiton

chown root:root /swapfile1 Give ownership of the swap file to root chmod 0600 /swapfile1 Give read-write permissions to the file to root only.

swapon /swapfile1 activate swap file

Now, you will need to edit fstab to load up the swapfile for the system on boot

to do this nano /etc/fstab opens up the fstab file in nano (you can do this with the text editor of preference)

Add the line /swapfile1 swap swap defaults 0 0 to it, and remove any other lines referring to swap.

If the other linux boot has no swap file, repeat - you can rename the swap file if you choose.

This should give you a neat triple boot, with as simple a partition layout as possible.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.