Saturday, May 28, 2011

Install multiple linux OS on a single PC

Now a days there are so many Linux distributions and also each of them has their own speciality. There are many users those who have dual boot OS(two different OS on a single machine). Many of my own friends have fedora/Ubuntu and Windows OS installed.

Today I am going to say about how to install fedora, Ubuntu, and Windows XP on a same PC.
1: Install XP
2: Install Ubuntu
3: Install fedora.

Note: When you install fedora after the installation of Ubuntu your Ubuntu's grub will be removed and you can't see Ubuntu on the Grub's list.

Now, to get the Ubuntu on the Grub's List follow these Steps:
1. boot with fedora
2. open terminal
$su -

as root type this command.
# fdisk -l

Hint: Check Column "System"
Lets /dev/sda3 partition contains your Ubuntu OS.
3. mount your Ubuntu partition.
# mount /dev/sda3 /mnt
4. Open the grub menu.lst file
# cd /mnt/boot/grub
# gedit menu.lst
Now search for similar lines:

title Ubuntu 8.10, kernel
uuid 84c1144f-93ff-4f12-8a6a-90f12f51421c
kernel (hd0,2)/boot/vmlinuz- root=UUID=84c1144f-93ff-4f12-8a6a-90f12f51421c ro quiet splash
initrd (hd0,2)/boot/initrd.img-

title Ubuntu 8.10, kernel (recovery mode)
uuid 84c1144f-93ff-4f12-8a6a-90f12f51421c
kernel (hd0,2)/boot/vmlinuz- root=UUID=84c1144f-93ff-4f12-8a6a-90f12f51421c ro single
initrd (hd0,2)/boot/initrd.img-

title Ubuntu 8.10, memtest86+
uuid 84c1144f-93ff-4f12-8a6a-90f12f51421c
kernel (hd0,2)/boot/memtest86+.bin

Copy these lines and paste these inside the fedora's grub menu list file:
# gedit /boot/grub/menu.lst
now restart fedora OS
This time you can see few more options on your Grub's List.

1 comment:

  1. Hi,

    Thanks for the post, but this will not work if GRUB 2 is installed default on Ubuntu.
    Do you also have a solution for this situation?