Friday 24 February 2012

Dual Booting Linux Ubuntu 11.10 and Windows XP

Dual boot (Ubuntu and Windows XP) Installation Process


Two hard disks in my system.

First HD 20 GB for Linux.

Second HD with three NTFS partitions. Windows XP is first installed in one of these partitions.

Next, Linux Ubuntu 11.10 is installed in first HD.


Ubuntu is booted normally. There is no grub showing option to boot Windows XP.

When Ubuntu is booted, click on Home Folder from the Ubuntu Desktop.

Select “File System” option.

Click on boot/grub/grub.cfg

There is no trace of Windows XP entry.

Go to terminal mode and type following to upgrade grub.

$ sudo update-grub


Restart system.

Now you will see the grub with the following options

  1. Ubuntu, with Linux 3.0.0-12-generic

  2. Ubuntu, with Linux 3.0.0-12-generic (recovery mode)

  3. Memory test(memtest86+)

  4. Memory test(memtest86+, serial console 115200)

  5. Windows NT/2000/XP(loader)(on /dev/sdb5)


If you select '1' option, Ubuntu booted normally.

Click on boot/grub/grub.cfg

Now you will see Windows XP entry in grub.cfg as follows.


### BEGIN /etc/grub.d/30_os-prober ###

menuentry "Windows NT/2000/XP (loader) (on /dev/sdb5)" --class windows --class os {

insmod part_msdos

insmod ntfs

set root='(hd1,msdos5)'

search --no-floppy --fs-uuid --set=root 4EA8BEAAA8BE8FC7

drivemap -s (hd0) ${root}

chainloader +1

}

### END /etc/grub.d/30_os-prober ###




If you select '5' option, it says

NTLDR is missing

Press Ctlr+Alt+Del to restart


How to solve this problem? Lets see next Steps...





No comments:

Post a Comment