Escolar Documentos
Profissional Documentos
Cultura Documentos
Explained
Last reviewed: May 2005
etc).
The partition containing the boot files for the installed OS(s) is special and is called the system partition.
It will/must always be marked Active. Also, the PBR for this system partitioncontains the OS PBR
Code (also called OS Boot Sector Code) which is responsible for calling the boot files of the OS to be
loaded. This boot code is OS-specific and passes control to only one specific boot file (NTLDR for a NT-type
OS, or Io.sys for a Win9x-type OS).
The PBR is commonly called the Boot Sector when it refers to the system partition. Therefore the OS PBR
Code is referred to below as the OS Boot Sector Code in order to comply with common usage. Both
expressions are interchangeable on this page.
1.
Towards the end of its initial activity, the BIOS passes control to the MBR Code in the MBR
2.
MBR Code looks in the Partition Table and locates the partition marked Active.
3.
MBR Code passes control to the PBR's OS Boot Sector Code on first sector of Active partition.
This partition is called the system partition and must contain all boot files for the installed OS.
For Windows, it must be a Primary partition on the first hard disk (the Primary Master). It's
invariably C:
4.
The OS Boot Sector Code locates, and passes control to, OS-specific boot files on its own (system)
partition (files like NTLDR for XP/2K/NT, or Io.sys for Win9x). The OS Boot Sector Code is OS-specific
because it has to know and use OS-specific boot files.
5.
The boot files contain the location of the OS installation. These boot files now complete the process
of loading and initialising the OS from the partition on which it is installed. This partition is called
the boot partition, and it contains the OS directory, Program Files, and the rest of the OS's system
files. The boot partition can be the same as the system partition or it can be a different partition i.e.
C: is usually the system partition (containing the boot files), while C:, or D:, or E:, or ..., can be the
boot partition (containing the OS directory, Program Files, and the rest of the operating system).
Summary
BIOS > MBR (1st sector of disk) > OS Boot Sector Code of system partition (Active) > boot files (system
partition) > OS (boot partition)
And Yes! The boot files are on the 'system partition', and the OS's system files are on the 'boot partition'!
(a) > BIOS passes control to MBR code (on first sector of disk)
(b) > MBR locates the Active partition and passes control to the PBR's
(Everything is OS-specific from here on)
OS Boot Sector Code (outside the system partition) which passes control to the boot file
(Next is the system partition. It contains all the boot files)
(d) > loads and starts the chosen OS from that pathway (it's to the OS's boot partition).
In (c) above: The system partition contains all boot files for every installed Windows.
The system partition may also contain a Bootsect file for an OS other than XP/2K/NT,
and will also contain \Cmdcons\Bootsect.dat if the Recovery Console is installed.
A natural dual-boot executes in line (c). A boot file points to the directory of the selected Windows.
There's just one Active partition. All installed OSs use the same OS Boot Sector Code, initially at least.
A dual-boot created with a third-party boot utility usually executes in line (b) using its own non-Microsoft
MBR. Boot managers typically hide all active Primary partitions of any hard disk, with the exception of the
active partition selected for booting.
The two most critical parts are the OS Boot Sector Code on the system partition (Active) and the boot files
on that partition. Both should reflect the latest version of Windows (not the most recently installed Windows
if that's an older version). This is easiest to achieve if the latest version is installed last (the dual-boot is
created automatically), but there are other methods that achieve the same result (and without data loss!) see Dual-Boot Centre below.
Much of the above will be new to many readers. If so, it's recommended that you read, and reread it. It's not
difficult, it's just new! It will all fall into place and you will then fully understand ALL dual-booting
mechanisms.
Some users may feel a third-party boot utility will resolve all problems. However, they'll still need to know
most of the above. Also, if a problem develops when using a third-party boot utility, another level of repair is
necessary and that repair is not always successful. Repairing a 'natural' dual-boot is relatively easy and
usually successful.
Remember!
Active Partition: You must have one! It can be verified or created by booting from a Win9x boot disk,
typing Fdisk, and selecting option 2. It must be a Primary partition on the Primary Master (1st disk).
System Partition: It's the Active partition with the same rules as the Active! It must contain all boot files
for all OSs installed. It's nearly always the first partition (C:). There can be only one system partition. It's
also often the boot partition for one of the installed OSs - when C: is the system partition and one OS is
installed on C:
NTFS Partition: Win9x ignores an NTFS partition. If Win9x is part of the dual-boot and the first partition
uses NTFS, then the first FAT/32 partition must be the system partition. The first FAT/32 may be the second
partition and still allocated the C letter under Win9x, but will be allocated a different letter under an
XP/2K/NT using NTFS.
Boot Partition: Different OS versions should never be installed on the same (boot) partition. Therefore
there will be more than one boot partition. Each one contains the OS's installation directory, folders & files,
Program Files. It can be a Primary or Logical partition, and can be anywhere on any hard disk provided there
are no BIOS (INT13 Extensions), file system (FAT), or OS (Win95) restrictions.
Boot Files: Boot files are initiated by the OS Boot Sector Code. They are used to set certain parameters and
to identify the location of the OS to be used. Windows XP/2K/NT use different boot file names than Win9x, so
they can never be misidentified. The NTLDR and Ntdetect.com on the system partition must be from the
latest version of XP/2K/NT installed. Boot.ini is a 'text' file and will not cause a version conflict (though its
contents are still vital).
XP/2K/NT Boot Files: Ntdetect.com, NTLDR, Boot.ini, and sometimes Ntbootdd.sys. Win 2K also uses
Arcldr.exe & Arcsetup.exe
Win9x Boot Files: Io.sys, Msdos.sys, Command.com, and usually Config.sys and Autoexec.bat
Bootsect.xxx: It's an image of the OS Boot Sector Code for an OS other than XP/2K/NT. It's on the system
partition (read below).
Win9x Boot Sector Code > Io.sys > Io.sys reads pathway to Win9x in Msdos.sys > Io.sys runs Win9x from
that location.
Open C:\Msdos.sys (it's a Hidden file) in Notepad. You'll see that WinDir and other lines point to the Win9x
partition & directory. This information is used by Io.sys to run Win9x from that location.
Sys writes a Win9x Boot Sector (OS PBR) to the specified partition overwriting the existing OS Boot
Sector. In practice, the specified partition will always be the C: drive. This overwriting of an existing sector is
very convenient for a dual-booter who wishes to (re)create a Bootsect.dos file (image of Win9x Boot Sector).
Sys C: is run, the new Win9x sector is save to Bootsect.dos, and then the Fixboot command is used to
restore an XP/2K/NT sector (read Bootsect.dos created new for details).
Sys also copies files to C:. These are the Win9x startup system files, Io.sys and Msdos.sys, and also the
command interpreter Command.com. The Msdos.sys file will not be copied if one exists on C:. These file are
OS-specific so you must use a boot floppy created by the installed Win9x. A work-around is to first backup
the three files from C:, then use Sys from any Win9x boot disk, and finally copy the backups back to C: - all
will be well.
A word of caution.
If C: does not initially contain a Msdos.sys file, then Sys will copy that file from the boot disk over to C:. The
Msdos.sys on the floppy is nearly empty and will not boot your Win9x. In the context of creating/repairing a
dual-boot, don't use the Sys command unless the C: drive already contains a legitimate Msdos.sys file or you
will be wasting your time!
You'll see a 'System transferred' message when Sys has created the OS Boot Sector and copied the files.
Answer Y.
EXIT
6. Reboot. Rectify BIOS's Boot Order. Test.
Remember you must sometimes specify the system partition with Fixboot.
NT: To Repair a damaged, or incorrect, NT Boot Sector (PBR):
1. Make the CD-ROM, or floppy drive, the first choice in the Boot Order in the BIOS.
2. Cold boot from the NT CD or Setup Disk 1 (and then Disk 2).
3. Press any key, if asked, to boot from CD. Press [Enter] to begin.
4. Press R for Repair when the Setup options appear.
5. Select only the option "Inspect boot Sector" - deselect any other options.
6. Insert a ERD for this Windows when requested,
or press Esc to let repair look for the repair information.
7. Reboot when finished. Rectify BIOS's first Boot Order. Test.
ERD: Emergency Repair Disk:
If you are prompted to insert a ERD made by this Windows and you do not have it, then the repair looks in
Boot.ini for the boot path to the repair information on your computer. A failed repair may indicate the boot
path in Boot.ini is incorrect. If necessary, edit Boot.ini correcting the boot path, or use bootcfg
/rebuild from the Console to rebuild Boot.ini. Then run the repair again.