Showing posts with label installation. Show all posts
Showing posts with label installation. Show all posts

Saturday, February 1, 2014

Solving BSOD Issues During Windows XP Installation

Contents

  • 1. Why BSODs occur during Windows XP Installation
  • 2. Decoding BSODs
  • 3. Stop 0x0000007B (INACCESSIBLE_BOOT_DEVICE): What does it mean
  • 4. Other stop codes
  • 5. Professional kernel dump analysis

1. Why BSODs occur during Windows XP Installation

BSOD (Blue Screen of Death) means that Windows Kernel has encountered an error it could not handle. For example:
Screenshot - Windows XP BSOD
Usual reasons for BSOD during Windows XP installation: lack of proper storage drivers, faulty hardware or the minimum system requirements for Windows XP are not met.

2. Decoding BSODs

BSODs usually contain the name of failed driver or Windows component (SPCMDCON.SYS in this example), error description (PAGE_FAULT_IN_NONPAGED_AREA), stop code afer "*** STOP: " (0x00000050 in this example) and other information.
Screenshot - BSOD Structure
The most important things to note are error description and corresponding stop code.

3. Stop 0x0000007B (INACCESSIBLE_BOOT_DEVICE): What does it mean

When Windows starts, it must load its Kernel into the memory. To do this, Windows must read the Kernel from the disk. In order to read the disk, Windows must load disk driver first. But disk driver can't be loaded before Kernel is already in the memory.
It's a kind of chicken-and-egg problem.
To solve it, Windows temporarily (only during boot time) is using different way to access the boot disk — not via usual driver, but via BIOS interface (Interrupt 13h). BIOS Interrupt 13h is slow, and incompatible with multitasking, so it is used only to read portion of the operating system from boot disk. Other disks are never read this way.
During the boot process, in order to remount boot filesystem in read/write mode, to reopen the registry in read/write mode, to load the rest of drivers, and to perform other necessary boot tasks, Windows switches from old BIOS interface for accessing the disk to native (driver) interface for accessing the disk. This switching allows disk access to be faster and more reliable, thus new way to access the disk is used until complete shutdown of the OS.
If this switching is impossible for some reason, then Windows Kernel fires error 0x0000007B (INACCESSIBLE_BOOT_DEVICE).
Usual reason why this switching might be impossible is a lack of driver: disk controller driver, or maybe bus (miniport) driver. There are also situations when the driver is present but contains bugs and needs to be upgraded in order to work.
The most probable reason why you are getting error 0x0000007B (INACCESSIBLE_BOOT_DEVICE) is SATA disk controller configured in AHCI mode, which is supported by BIOS interrupt 13h, but requires special driver from motherboard vendor in order to work in Windows.

There's also official Microsoft documentation of this error.

4. Other stop codes

0x0000000A (IRQL_NOT_LESS_OR_EQUAL),
0x000000D1 (DRIVER_IRQL_NOT_LESS_OR_EQUAL),
0x0000001E (KMODE_EXCEPTION_NOT_HANDLED), 0x000000C5 (DRIVER_CORRUPTED_EXPOOL), 0x0000008E (KERNEL_MODE_EXCEPTION_NOT_HANDLED)
One of your drivers contains bugs (name of failed driver may be helpful, but not necessary indicates the source of the problem). Try upgrading/disabling drivers for your devices starting from most unreliable/rare devices. Unplugging devices for the time of Windows Installation also may help. On fully installed Windows this error is usually caused by buggy antivirus/firewall software.
0x00000023 (FAT_FILE_SYSTEM),
0x00000024 (NTFS_FILE_SYSTEM)
May be related to unreliable hard disk: surface wear-out, bit rot etc. Also check SATA connectors aren't loose.
0x00000116 (VIDEO_TDR_ERROR) This one is related to the driver of your video card.
0x0000009C (MACHINE_CHECK_EXCEPTION),
0x00000124 (WHEA_UNCORRECTABLE_ERROR),
0x0000007E (SYSTEM_THREAD_EXCEPTION_NOT_HANDLED),
0x0000007F (UNEXPECTED_KERNEL_MODE_TRAP),
0x00000050 (PAGE_FAULT_IN_NONPAGED_AREA),
0x000000F4 (CRITICAL_OBJECT_TERMINATION)
It's recommended to test memory with MemTest86+. This recommendation also applies to all error codes listed above in this section. MemTest86+ can be converted from CD ISO image to bootable USB thumbdrive with FlashBoot. Also disable overclocking if you are using it.

5. Professional kernel dump analysis

If BSOD occurs after Windows installation, it usually creates dump file in C:\Windows\MiniDump (except the case when BSOD is caused by system disk failure). These dumps can be later copied, archived, sent by email and analyzed by trained professional using Microsoft tools.

Sunday, January 12, 2014

How to Repair a Corrupt Windows 7 Installation

Every operating system needs an occasional repair job, and Windows 7 is no exception. Whether the source of the problem is corrupt data, a particularly brutal piece of malware, or some other serious issue, you'll occasionally have to reinstall your copy of Windows.
Wiping your hard drive and performing a fresh installation can be a huge headache; but fortunately there's a way to repair a corrupt Windows 7 installation while keeping all your programs, personal data, and user accounts intact. With Windows 7 you can perform an in-place upgrade installation to repair a flaky existing install. Though technically designed to upgrade older Windows operating systems like Vista, the in-place upgrade installation option can also be used to repair an existing installation of Windows 7.
The in-place Upgrade installation involves multiple stages, starting with copying installation files to the destination drive and gathering existing files and settings.
Note that you must perform the in-place upgrade process from within Windows; if your PC can't fully boot to the Windows desktop, this repair guide is not for you. A few other limitations come up later in the article, so be sure to read the entire guide thoroughly before attempting to repair your corrupt copy of Windows 7. Performing a repair installation should be your last resort, and you should consider it only if you have already removed spyware from your PC, reinstalled your drivers, and unsuccessfully tried to restore from an earlier (working) version of Windows 7 using System Restore.

Prepare Your PC for Windows 7

Before performing a repair installation, you should take a few precautionary measures to ensure that the process goes smoothly. The first step is to back up all of your critical files to an external storage device. Though the repair process is unlikely to fail or to render any of your files unrecoverable, it's always a smart idea to back up your data.
After you've backed up your system's important data, we recommend uninstalling any third-party security software such as firewalls or antivirus applications. You can always reinstall them after completing the repair process; but since you'll be initiating this process from within Windows, you need to remove any security applications that actively scan files. You should also download and store all of the drivers that your system needs to function--especially the network controller, which tells your network adapter how to access the Internet.
After backing up all of your drivers, clean out all of the temporary files and junk data that have accumulated in Windows 7 over the course of prolonged use. To do this, click the Start button, and in the Search field type Folder Options; then press Enter. In the Folder Options window, click the View tab and select Show hidden files, folders and drives; then click OK.
Next, initiate a Disk Cleanup by opening the Start menu and selecting Computer; right-click your primary drive (the C: drive by default) and open the Properties menu. Select the Disk Cleanup utility in the lower-right portion of the menu, and select Clean up system files. The Disk Cleanup utility should take a few moments to rescan the drive. Next, click the More Options tab, and select Clean Up in the 'System Restore and Shadow Copies' section at the bottom of the menu. In the dialog box that appears, click the Delete button; then navigate back to the Disk Cleanup tab, confirm that all items in the Files to Delete list are checked, and click OK. The Disk Cleanup utility should clear out outdated system files, temporary data, and other digital detritus. Depending on how much junk data is on your drive, this step may take anywhere from a few seconds to a few minutes.
After running the Disk Cleanup utility, you should clean out a few folders manually. Open the C: drive again, and double-click the Windows folder. Scroll down the list of folders and delete any files in the Prefetch and Temp folders. Be sure to delete only files within those two folders and not the folders themselves. Next, navigate back to the C: drive, and double-click the Users folder. Within the Users folder, double-click first the folder for your particular username, and then the AppData folder (if you don't see the AppData folder, you must not have selected 'Show hidden files, folders and drives' earlier), the Local folder, and finally the Temp folder. Delete all of the files in this Temp folder as well; then restart your system.