Configuring Dual Boot (SUSE Linux, Windows) Systems
Novell Cool Solutions: Tip
By Chandan R
Digg This -
Posted: 25 Oct 2006
Configuring dual boot (SUSE linux, Windows) systems. After installing Windows on a SUSE Linux machine, the MBR will be overwritten and the GRUB screen will not be displayed on booting the system. This article explains how to rescue the system and configure dual boot in SUSE linux 10.1.
- Insert the bootable SUSE 10.1 CD/DVD into the drive and boot the system from the CD. If your system does not boot from the CD, you have to make modifications to the priority of your CD drive in your system's bios boot settings.
- On booting from the CD, choose the "Rescue System" option. Now image from the CD will be loaded to give you a rescue shell.
- On the "Rescue login:" prompt enter "root". Now the rescue shell is ready for repair.
- Run "fdisk -l" to display all the partitions in your harddisk(s). From this you can know on which partition you have installed linux and windows. Suppose if you have connected your harddisk as primary master then all its partition entries will be listed as /dev/hda*. Refer to Notes(1) if your harddisk configuration is different. If you have installed windows on primary partition of your harddisk then you would find an entry like --
"/dev/hda1 * 1 1216 9767488+ c W95 FAT32 (LBA)"If you have installed SUSE Linux on first logical partition then you would find an entry like --
"/dev/hda5 1217 2432 9767488+ 83 Linux"
- After determining the partition on which SUSE linux is installed(in this case /dev/hda5), mount the partition.
mount /dev/hda5 /mntNow contents of the /mnt directory will correspond to the / directory of your installed SUSE Linux.
- Open the GRUB's menu file(GRUB is the boot loader, which provides a choice for selecting the OS to boot into when your system is powered on)
- Go to the end of this file and add the following entry for windows
title Windows XP rootnoverify (hd0,0) chainloader +1(hd0,0)Save the modifications and close the file. You may get the following Warning message, which can be safely ignored
"Can't write viminfo file /root/.viminfo".This is because while rescuing we have booted into the readonly filesystem in the CD.
- Open the device map file of grub and make sure an entry for your hard disk is listed there.
vim /mnt/boot/grub/device.mapIn this case you should find the following entry listed:
- Now we are ready for the final step - installing grub. Run the following command:
grub-install --root-directory=/mnt/ /dev/hdaYou may have to modify the above command if your hard disk configuration is different. Refer to Notes (1) for details.
On successful installation you should get the following message:
"Installation finished. No error reported"
- Now we are done with the rescue. Remove the CD from the drive and reboot the system to get GRUB with newly added entries.
- Hard disk configuration to device name mapping:
- Primary Master: /dev/hda
- Primary Slave: /dev/hdb
- Secondary Master: /dev/hdc
- Secondary Slave: /dev/hdd
- Partition numbers:
- Usually a hard disk is divided into one primary partition and one extended partition. The extended partition is then divided among one or more logical partitions.
- Primary partition of a disk is numbered 1. (like hda1)
- Extended partition of a disk is numbered 2. (like hda2)
- Logical partitions of a disk are numbered starting from 5. (like hda5,hda6)
- SUSE Linux 10.1
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com