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.
I suggest you install Windows first, then Fedora, then install Ubuntu last. Installing Windows first will ensure that Fedora's or Ubuntu's GRUB will detect Windows and allow you to choose between all three operating systems.
Install Windows! (Skip this step if you have it already)
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.
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.
Shut down Windows.
Boot into a Fedora Installation or Live CD and choose "Install Fedora".
Keep going and then stop at this step.
Choose Create Custom Layout.
Select the "Free" thing and then click the "Create" button.
Click Create again. Choose the Mount Point as / and give some space to Fedora in MBs. Remember to leave some space for Ubuntu!
Go through the rest of the Process.(next, next, next.)
Restart your machine and setup Fedora.
Fedora is now installed! Have fun with Fedora.
Then reboot into a Ubuntu Live CD.
Again, stop at this step.
Choose Something Else.
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.
Click OK and go through the rest of the process. (next,next,next.)
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.
Sharing swap on a USB flash drive between Ubuntu and Fedora
Here is how to share swap on a USB flash drive between Ubuntu and Fedora. (Thanks Akshit Baunthiyal!)
For anyone that doesn't know what Swap is, read the SwapFaq in the Official Ubuntu Documentation.
Boot into Ubuntu.
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.
Then go to Disk Utility. The USB Stick should show up in the sidebar.
Because I don't have a spare USB lying around the USB stick that is supposed to show up isn't shown.
Click on the USB Stick, and then select Format Drive. Then choose linuxswap as the format. Remember not to format the wrong drive!!!
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!
Fire up a terminal by searching "Terminal" in the dash.
sudo mkswap /dev/sdx1in the Terminal. Enter your password when prompted and replace "/dev/sdx1" with the string that I told you to remember.
sudo swapon /dev/sdb. Again, replace /dev/sdb with the string.
sudo gedit /etc/fstab. A window will appear.
/dev/sdx1 swap swap defaults 0 0to the end of the file.
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:
then type in your password in Fedora and follow the steps without having to type "
Now you should have a triple-Boot system with Ubuntu, Windows, Fedora, and a swap in Both Ubuntu and Fedora!
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.