Dual Booting with Windows XP and Windows PE 2. The Desktop Files. Dual Booting with Windows XP and Windows PE 2. Wes Miller. In previous installments of The Desktop Files, I've mentioned that Windows PE has become a tool for recovery, and I've explained how you can use it from a second partition. An inquiry I received recently has made me think that it might be worth discussing a new spin on this—using Windows PE 2. Windows XP together. After all, many of you may be using Windows. While you can boot Windows PE 1. I'll discuss shortly. Two Boots for Windows. Windows NT. But as Extensible Firmware Interface (EFI)- based computers have begun to replace the old IBM PC AT BIOS, Microsoft has changed the Windows boot mechanism to work more optimally with EFI and to have one boot mechanism across all architectures. The new boot mechanism for Windows, beginning with Windows Vista. ![]() But whether you are talking about the old boot. BCD mechanism, Windows can generally boot other operating systems, even if it means handing off the boot process to another boot loader. Before we start, it is critical that you remember that Windows PE 2. ![]() How to dual boot Vista and XP. Fix Dual Boot Screen. I had a dual boot setup with Windows XP Pro x86 & Windows 7 x64. They were on separate HDDs. I upgraded the. A dual-boot between Windows XP and Windows Vista happens when. Once Windows XP setup.How to dual-boot Vista with XP. This is an updated tutorialbased on our first Windows XP/Vista dual-booting. Overview of the Windows Vista Repair options. In order to start the Windows Recovery Environment you must boot your computer off of the Windows Vista DVD that. Advanced Configuration and Power Interface (ACPI) compatibility and 3. MB (ideally 5. 12. MB) of RAM. As I noted in my May column (technetmagazine. Desktop. Files), non- ACPI systems will fail to boot Windows PE 2. Windows PE 2. 0 must boot to a RAMDisk, it needs to have enough RAM to hold the RAMDisk, any scratch space, and all RAM working set. If your system has less than 3. ![]() MB of RAM, don't even consider this route; use Windows PE 1. Even a hand skilled at reducing Windows PE size cannot make it run well on 2. MB. Oh, the Problems You'll Solve. ![]() Now let's take a look at the problems you might tackle by booting Windows PE 2. Windows XP. Full- System Recovery This is just one task made possible by booting Windows PE right from the Windows XP partition. Since Windows PE 2. Windows PE 1. 6 before it) can boot entirely into a RAMDisk, you can reimage the entire disk—or use Image. X to restore the Windows XP files by themselves, since it's not necessary to reimage the entire partition. By allowing users to boot to Windows PE at startup, they can recover their own systems even while working remotely. The image could come from a secondary partition, a network share (if the users won't be mobile), a recovery DVD or USB hard disk, or, if you are using Image. ![]() X, you could even store it on the partition being recovered. This sort of on- disk recovery is a great solution for many problems (with the exception of physical disk corruption). It's obviously not great at restoring user data unless that data is protected in the first place and then restored as a part of the recovery. Remember, you should be using roaming profiles and backing up data from the PC to prevent that kind of loss. You should also ensure that any recovery mechanism you use can mitigate any potential data loss on behalf of the user (including loss due to EFS encryption keys being reset). File Recovery Windows PE also provides the mechanism to get a system up and running even if the primary installation of Windows will not boot. In that case, you are able to boot and recover user data either to another system (provided you have warm backup systems available for users) or to another location so that the user may begin working again soon. ![]() ![]() System Repair Finally, booting Windows PE on Windows XP lets you repair a system by running either a set of troubleshooting scripts or a simple user- driven repair or recovery application. The process is similar to full system recovery, but it will be narrower in scope (and won't risk user data). Now that you have some idea of what you can do if you boot Windows PE on the Windows XP partition, let's see what is going on behind the scenes so you can apply the process to any solution you like. ![]() ![]() Before Windows Vista. Before the advent of Windows Vista, here's how BIOS/Master Boot Record (MBR)- based systems booted. The BIOS pointed to the boot device (in the case of the hard disk, it points to the MBR on the disk). The MBR executed code that specified which partition to boot. Note that this is the first partition that has the active flag set for it. In the earliest versions of diskpart, you couldn't make a partition inactive (that is, you couldn't remove the active flag). The switch was added to diskpart to fix this—otherwise it would be the first partition in partition table order that had its active flag set. The partition contains the boot sector—which tells it which code to execute next. From Windows NT to Windows Server. If you've ever formatted a disk, didn't install Windows, and then attempted to boot, you've seen the . This means that Windows XPs ntldr can boot Windows 2. This is why it's always important to install the oldest operating system first if you plan to dual boot. Since ntldr doesn't have version numbering attached to it, it's even more important to keep this straight. Ntldr is a real- mode (1. NTDetect. com, which performs basic device detection and then launches the kernel, ntoskrnl. The kernel is the critical component in the Windows boot process. This summary of the boot process is somewhat simplistic, and I've omitted the entire initialization of Win. If you want more information about it, I recommend you read Windows Internals, Fourth Edition by Mark Russinovich and David Solomon (Microsoft Press. This file actually contains slightly different boot code so that it can boot from CD (which ntldr cannot). This is why in order to boot Windows PE 1. It's also why that file couldn't then load a boot. CD booting, and, as a result, boot. Windows Vista and Beyond. Windows Vista changed many pieces of this process. Windows Server 2. IA3. 2 (3. 2- bit support) for booting from EFI—something that hasn't been possible to date outside of Itanium- based systems. For BIOS- based systems, the initial steps of the boot process are largely unchanged. The key difference is that BOOTMGR is the boot loader that is initialized and then performs the following steps. It looks in the boot directory for the BCD file, which is effectively its own registry hive. The BCD contains the boot entries (including the default) to boot. See Figure 1 for image types (executable file types), and see Figure 2 for the specific application types to launch. One (or more) of these entries can be a reference to ntldr. Only one of them can actually reference the well- known GUID used to load ntldr (see the fifth row of Figure 3). The bootmgr then decides which entry to load next, depending on whether the system is being booted, has been hibernating, or is booting to ntldr or another boot manager (in which case it would point to another boot sector and launch that loader). This would be most common if you were dual booting with a non- Windows. You can find more information at microsoft. Description. BCDEdit IDGUIDWindows Boot Manager. In a dual boot system, displays a boot selection menu to the user. Windows Boot Loader. Loads a particular version or configuration of Windows. Windows Resume. Application. Restores Windows to its running state when a computer resumes from hibernation. Windows Memory Tester. A memory diagnostics application. Ntldr. 0x. 6Applies only to PC/AT BIOS systems. Loads versions of Windows earlier than Windows Vista. Boot Sector. 0x. 8A 1. Applies only to PC/AT BIOS systems. Can be used to restart the boot process and load a non- Windows operating system. Knowing that the new bootmgr infrastructure needed to be backward- compatible with the existing ntldr and other third- party boot managers, bootmgr was intentionally built to support such solutions. So now that we've examined how Windows boots and how the new BCD works, how do we tie the two together and get Windows PE 2. Windows XP installation? There are two ways to put down the Windows Vista boot sector—the piece of boot code that tells the system to start bootmgr. One of them is to use diskpart and create and format a new partition with Windows PE 2. But that's not going to be an option here, since you've already got an existing Windows XP installation that you don't want to damage or move. Instead, follow this process: Ensure you have a copy of bootsect. Windows PE 2. 0 boot CD (they can both be found on your Windows Vista installation DVD). Boot your Windows XP system to the Windows PE 2. CD. Once booted, run this command: This will set the boot sector to be the Windows Vista- compatible boot sector that knows how to launch bootmgr. Copy the boot manager to the hard disk. BOOTMGR C: \BOOTMGR /I. Copy the boot. SDI file to the \BOOT directory on the hard disk. You'll need to make a copy of this before you boot, as it will be locked and unable to be copied while running Windows PE. Correct the source path accordingly. Copy the boot. WIM to the hard disk. Like the SDI, you should have a secondary copy available; you will not be able to copy the file you are running from. BOOT. WIM C: \BOOT\BOOT. WIM. Correct the source path accordingly. Now, create a new BCD store: 8. Next, create the BCD entries to load Windows PE. The last line will return a GUID. These are the entries to RAMDisk that boot Windows PE from your hard disk, shown in Figure 4. Now, create bootmgr entries so Boot Manager will start. Finally, set up a BCD entry for your existing Windows installation (change the display text from Windows XP to whatever you would like to be displayed in the boot manager boot menu. The last command also sets it to be the first (default) entry in the boot menu. You should now be able to restart your system and have it launch either the previous installation of Windows or Windows PE 2. Figure 5 shows the sample output from bcdedit /enum all. This command lists all entries in the BCD after the entries have been added (this is from within Windows PE 1. Sample input (Click the image for a larger view)I have been working on a script that can perform this task automatically. Currently it can only copy the boot files to the hard disk and set up your BCD entries. Restore. Ubuntu/XP/Vista/7. Bootloader - Community Help Wiki. Discussion of this wiki can be found here. This wiki is for Windows dual booters who reinstall an operating system only to find that it has taken away access to their other operating system. All four parts of this tutorial require that you boot from a CD or DVD. If you don't know how to do this, check here. If you have made a mistake and want to revert the changes, simply follow the instructions for reinstalling the previous bootloader. For example, if you have installed vista over ubuntu, try to get the ubuntu bootloader back, but want to get the vista bootloader back, simply follow the instructions for installing the vista bootloader. How to fix the Ubuntu GRUB bootloader. How to fully fix the Windows bootloader using a Windows disk. XPBoot on your Windows XP installation CD or XP Recovery console. You will get to a part where it asks if you want to repair or recover. To do so, press . If prompted, enter your Windows XP administrator password. This will leave you at at a command line, so type in the following two commands: fixbootfixmbrexit. Then remove your XP cd. If everything has gone well, you should come to your XP bootloader. Windows Vista or 7 or 8. First boot on your Windows Vista/7/8 installation DVD. If you have one of the many OEM computers that didn't come with a Windows installation disk, you can get the same effect with a Windows repair disk, which you can download (eg Win. Win. 7 6. 4bit) or create from another Windows Vista/7/8 computer (see this page for Win. Make your own Windows repair. CD, and Windows 8 UEFI repair USB must be FAT3. Win. 8 guide). When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page, click on . Then click on . From there, type in the following 2 commands: bootrec. Now close the two windows and click . How to partially fix the Windows bootloader using an Ubuntu CD Note: these methods will work on Legacy firmwares (not UEFI), if Windows boot files are not broken, and if the boot sector of the Windows boot partition is healthy. In other cases, you will need a Windows installation or repair disc as described above. Run Boot- Repair from a live. CD, click . This will automatically restore a generic syslinux MBR, and set the boot flag on the Windows boot partition. This will also tell you if the Windows bootsector needs repair (see this tutorial). Via command lines. Boot from the live CD (or live USB) of any recent version of Ubuntu and choose “Try Ubuntu” to get to the live desktop 2. Check that the partition from which Windows boots has the 'boot' flag. For XP and Vista, this is normally the main C: partition. Windows 7 usually (but not always) has a separate boot partition of 1. MB in size with the partition label “SYSTEM”. There are also more exotic configurations where two versions of Windows have been installed to the same hard drive, or where the main Windows partition is a logical one. In these cases there will be a single primary partition with the Windows boot files which needs to be marked as active, and you will need to identify which this is. Once you have done so, open Gparted and see if “boot” is listed under the flags column for that partition. If not, highlight the partition and go to Partition menu . Both methods below assume that the boot drive is designated /dev/sda in Ubuntu. This is almost always so, but with some unusual BIOS configurations where there is more than one hard drive, the boot drive may be other than /dev/sda. In such cases you will need to adjust the command appropriately. If internet connectivity available, open a terminal and run these commands: sudo apt- get install lilosudo lilo - M /dev/sda mbr. If no Internet connection: recent versions of Ubuntu include the file /usr/lib/syslinux/mbr. Be very careful with this command and check for typos before running it. Now reboot, remove the Ubuntu CD and you should reboot straight into Windows. See also. Thread for discussion about this wiki page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |