Recommended Steps for SLED and Windows Dual Boot
This document (7001144) is provided subject to the disclaimer at the end of this document.
Environment
(dual booted) Microsoft Windows
Situation
Resolution
If Windows is to be installed first:
- Partition the hard drive to allow space for Windows to be installed, and leave one or more blank partitions on which to install SLED. You can also shrink a previously existing Windows installation with one of several tools, but that process is not covered in this document.
- Install Windows, which will install the Windows bootloader to the Master Boot Record (MBR)
- Install SLED to the previously allocated partition(s), noting that during the installation process, the Windows partition is detected.
- As part of the SLED installation, GRUB is installed to the MBR, and entries are created in the /boot/grub/menu.lst file for both SLED and Windows.
If SLED is to be installed first:
- Install SuSE Linux Enterprise Desktop (SLED), arranging partitions as needed and leaving a blank partition on which to install Windows. You can also shrink a previously existing SLED installation with one of several tools, but that process is not covered in this document.
- Install Windows onto the partition set aside during the SLED installation. This process will install the Windows bootloader over top of GRUB, and prevent you from seeing an option to boot SLED.
- Reinstall the GRUB bootloader.
- Boot from the SLED Installation media and select "Rescue System" from the prompt.
- Verify your current partition setup with the command 'fdisk -l', and make note of the devices where Windows and the root SLED partition are located. Ensure that the SLED root partition is flagged as bootable and NOT the Windows partition.
- Mount the SLED root partition. Assuming that SLED's root partition is /dev/sda2, use the command 'mount /dev/sda2 /mnt'.
- Reinstall GRUB with the command 'grub-install --root-directory=/mnt /dev/sda'. The root-directory argument tells grub-install where to find the device, so that a chroot into the device is not necessary. The final argument specifies which device is going to receive the bootloader. A partition number should not be specified (i.e. do not use "/dev/sda2").
- Reboot the system. Assuming that the GRUB reinstallation was successful, the system will go into the GRUB menu, and SLED should be bootable. For additional information on this process, please see TID#3918735.
- One final step required to dual boot is to edit the GRUB menu and add an entry that will boot Windows. While booted into SLED, open the file /boot/grub/menu.lst with the preferred text editor and add the following:
- Add this entry to any part of the menu.lst. Its position in the file will determine the order that the entry shows up in the GRUB menu when booting.
- The title is arbitrary and simply influences what the entry in the GRUB men is called.
- The beginning with "root" will need to be customized based on where Windows is located. This line needs to be in GRUB syntax. (hd0,0) references the first hard drive's first partition, or /dev/hda1 in Linux notation. (sd1,2) would reference the second SATA hard drive's third partition, or /dev/sdb3.
#Windows dual boot entry
title "Windows"
root (hd0,0)
chainloader +1
---<end of code>---
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7001144
- Creation Date: 12-Aug-2008
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Desktop
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com