Multi-booting

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Lumenos (talk | contribs) at 17:02, 9 February 2010 (→‎Technical issues: moved "Vista problem with dual booting with XP" to "Installing multiple Windows systems", other edits throughout). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

GRUB, with entries for Ubuntu and Windows Vista, an example of dual booting

Multi-boot or Multi-booting is the act of installing multiple operating systems on a computer, and being able to choose which one to boot when switching on the computer power. The term dual-booting refers to the common configuration of only two operating systems. The program which makes multi-booting possible is called a boot loader.

Usage

Multi-booting is useful in many situations, such as those where several pieces of software require different operating systems and cannot be run on a single system. A multi-boot configuration will allow a user to use all of this software on one computer. Another reason for setting up a multi-boot system can be that one wants to investigate or test a new operating system without switching completely. Multi-booting allows one to get to know the new system, configure all applications needed and migrate data before making the final step and removing the old operating system. This is often accomplished by using a boot loader that can boot more than one operating system, such as NTLDR, LILO, or GRUB.

Multi-booting can also aid software developers where multiple operating systems are required for development or testing purposes. Having these systems on one machine can greatly reduce hardware costs. (However, hardware costs are counterbalanced by system management costs, and the costs of the unavailability of the software that cannot be run at any given moment. Another solution to these problems is to use virtual machine software to emulate another computer from within the operating system of choice1.)

Technical issues

Partitioning

The basic concept involves partitioning a disk to accommodate each planned installation, including separate partitions for data storage or backups. Note that Vista's paritioners may not be compatible with XP/2000 (see Logical disk manager#Compatibility problems). If you may use Windows 2000/XP, probably the safest approach (for disks under 2 TiB) is to use a CHS partition table alignment that is chosen by Windows XP/2000 (not Vista or Windows 7). If starting with a disk with nothing important on it, delete all partitions, unplug the disk or reboot, create at least one partition with Windows XP/2000 Disk Management or the XP/2000 installer, and format all FAT partitions (only so that Ranish Partition Manager will not show them in red). The alignment can be checked with Ranish Partition Manager: Boot System Rescue CD. At the 1st prompt type "ranish". All partitions (including EBR extended partitions-- type 05) should start at the beginning of a head, and end at the end of a cylinder. If nothing is shown in red (with error messages when you highlight them) you probably have a disk with a standard CHS partition table alignment. If you wish to edit the partition table with Linux, first run sfdisk with "--show-geometry" and "--show-pt-geometry"[1]. If these return the same geometry, it should be safe to use Gparted, so long as it is set to round to cylinders, and you only add partitions to the end of the partition table. If you add a partition to the middle of the extended partition table, Gparted will not put them in the order they are on the disk (so that hda7 will follow hda9 instead of hda6). The order can be fixed with a Linux fdisk advanced function. Most Linux partitioners that don't use parted, may not end EBR extended partitions (type 05) on the same sector as their logical drives. When Gparted or parted edit these "nonstandard" partition tables, they will "fix" all these EBRs, so that the extended partitions end on the same sector as their logical drives. Ranish PM then shows these partitions as having no "errors". This can also be checked using (for example) sfdisk -l -x -us /dev/hda[2].

Windows and Linux

A popular multi-boot configuration is a dual-booting mixed-OS system in which Linux is one of the secondary (or primary) installations. In terms of business strategy, Windows does not facilitate or support multi-boot systems, other than allowing for partition-specific installations, and no choice of boot loader is offered. However, most current Linux installers accommodate this problem, although some prior knowledge of partitions is desirable.

There are some advantages to installing a Linux boot manager/loader (usually GRUB), to the master boot record. All Windows installations will be easily found by Linux, but Windows boot managers do not find Linux installations (nor does Windows deal natively with Linux file systems). However, in Vista, in order to install services packs (or other Windows updates) it may be necessary to restore the Vista boot loader first. SP2 may fail to install if it does not find certain files from the Vista boot loader, in the MBR. Similar problems may occur with SP1 [3] or when there are cloned disks or partitions [4]. The MBR boot code can be backed up and restored with dd (unix), available on System Rescue CD.

It is often recommended that Windows be installed to the first primary drive. The boot loaders of Windows XP/2000 and Linux, identify partitions with a number derived by counting the partitions, from the 1st partition to the last. (Note, both Windows XP/2000 and Linux count the partitions according to the ordering of the partitions in the partition table, which may be different than the order of the partitions on the disk.) The number of the system partition may change, if partitions are added or deleted, in front of the system partition. If the number of the system partition changes, it requires reconfiguring, so the system will continue to boot and function properly. Adding or deleting partitions after the system partition should have no effect on the system partition. Unlike Windows, if Linux is installed in the extended partition, it is unaffected by changes in the number of primary partitions. Additionally Linux can usually be installed directly to an extended partition while Windows XP/2000 cannot be.

Installing multiple Windows systems

Further difficulties can arise when installing Windows, when Windows (or even just a Windows boot loader) is already installed on another visible partition.

System partitions that depend on other partitions

Windows 2000/XP

For example, if installing Windows XP/2000 when a Windows XP/2000 system is already installed on another partition, the installer may configure the boot loader (NTLDR) on the older installation, to boot both the newer installation and the old installation, and not install another NTLDR on the partition of the new installation. (See system and boot partitions.) This can create problems as the new partition will be dependent on the old partition, and will not be able to boot unless both partitions are properly configured. For example, if the partition with the old system is deleted, the new system can not be booted by activating it, or using another boot loader (such as GRUB or XOSL) because Windows 2000/XP requires NTLDR to boot. It may also name the system partition of the second installation, some letter other than "C:" (usually "D:"). It is not desirable to have a system partition named "D:" because if the disk signature is changed, this may cause the system drive to be renamed as "C:", and fixing this may require editing the registry of a non-bootable system (not an easy task).

To make the Windows installer put NTLDR on its own system partition, and to make the system name its partition C:, it is necessary to hide other partitions with NTLDR on them. One should hide any partition that could contain NTLDR (such as a Dell recovery partition[citation needed]). These partitions must be hidden before attempting the secondary Windows installation and should not be unhidden until after the secondary partition is booted for the first time. The hiding can be done with MBRWizard[citation needed] or the partition(s) can be deleted from the partition table (and later recreated) with a sector-precise partitioner such as Ranish Partition Manger [5].

However, using this method will not automatically set up a dual-boot configuration. In order to boot the initial Windows installation you must either, activate that partition, configure boot.ini of the new system to dual-boot the old system, or install a third party boot loader such as GRUB or XOSL.

XP/2003 deletes Vista's System Restore points

On a computer with both Windows Vista and either Windows XP or Windows Server 2003 installed, Windows XP or Windows Server 2003 deletes any existing System Restore points belonging to Windows Vista during boot.[1] Microsoft confirms this problem but maintains that it is a fundamental function of the way XP works and cannot be changed. According to Microsoft, the solution is to install Windows Vista on a separate partition invisible to XP.[2]

Apple Boot Camp

Boot Camp allows owners of Intel-based Apple Macintosh computers to install Windows XP, Vista and Windows 7 on their Macs. The software comes bundled with Mac OS X 10.5 Leopard and Mac OS X 10.6 Snow Leopard, Apple's latest version of the Operating System included on their computers. Previously the application was available in beta version as a download from Apple's website.

Boot Camp allows non-destructive disk partitioning and resizing of HFS+ filesystems, boot menu options, and an option to burn a CD with necessary device drivers. Since Windows XP is incompatible with Extensible Firmware Interface (the successor to legacy BIOS), the firmware on early Intel Macs need to be updated to support BIOS emulation first. BIOS emulation is achieved with a compatibility support module (CSM). Apple does not support non-Windows partition formats or drivers so therefore configuring other operating systems is not directly possible through Boot Camp itself. However, any operating system which can utilize the BIOS emulation of Intel Macintosh can be made to work, including non-XP versions of Windows. The Ubuntu Linux distribution is particularly popular for this purpose because they provide an option to use proprietary device drivers along with open source drivers.

See also

References

  1. ^ Al-Qudsi, Mahmoud (2007-12-16). "Vista Hide 'n Seek Beta". NeoSmart Technologies. Retrieved 2008-01-10.
  2. ^ {{cite web|url=http://support.microsoft.com/kb/926185 |title=No restore points are available when you use Windows Vista or Windows Server 2008 in a dual-boot configuration together with an earlier Windows operating system |accessdate=2008-06-24 |date=2008-01-31 |work=Microsoft Help and Support |publisher=Microsoft }}

External links