Diff for "RecoveringWindows"


Differences between revisions 52 and 53
Revision 52 as of 2012-03-23 19:31:02
Size: 3985
Editor: yannubuntu
Comment: boot repair
Revision 53 as of 2012-06-28 17:06:43
Size: 4037
Editor: a91-155-176-245
Comment: (To recover from this boot problem); Mention that neosmart CDs are no longer free (a small fee)
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
 2. If you don't have one, download:  2. If you don't have one, download (a small fee due to Microsoft license restrictions):

Introduction

There are several complications or problems that can occur while running Ubuntu and Windows in either a dual-boot or Wubi environment.

Most distros, or versions of Linux like Ubuntu, can fix most Windows problems. There are also specialist distros (such as Boot-Repair-Disk, Trinity Rescue Kit and SystemRescueCd) that can fix a lot more.

This guide assumes that you either have Ubuntu on a LiveCD or installed on the hard-drive.

Boot Repair

In some situation, you might loose access to one or several of your operating systems (Windows, Ubuntu...) because of a buggy update, a bootloader problem, a broken filesystem, or after installing a new OS (e.g. installing Windows breaks Linux bootloader).

Boot-Repair is a graphical tool that will repair these problems, generally by reinstalling GRUB, which then restores access to the operating systems you had installed before the issue.

Boot-Repair also has advanced options for reinstalling GRUB, adding kernel options, restoring a generic MBR, or repair a broken filesystem.

Boot-Repair can be installed on Ubuntu, either on installed-session or live-session.

More information on Boot-Repair.

Wubi

"Missing hal.dll"

This is a frequent error seen on Wubi installations. It leaves Windows unable to boot and causes it to complain about a missing file,

C:\windows\system32\hal.dll

which is the Hardware Abstraction Layer for Windows.

Here is what you should do to fix it:

  1. Boot up an Ubuntu LiveCD
  2. On the top taskbar click on the "Places" menu
  3. Select your Windows partition (it will be shown by its partition size, and may also have a label such as "OS")
  4. Navigate to windows/system32/dllcache
  5. Copy hal.dll from there to windows/system32/
  6. Reboot.

The full Wubi guide is here.

Dual-Boot

Resizing Vista or Win7 Partitions

Windows 7 and Vista sometimes fail to boot after its partitions are resized outside of Windows. This is due to Windows using a very simplistic boot-loader. A regular file-system check is normal and to be expected on the first boot-up to Windows 7 or Vista because GParted programs Windows to do that by putting the 'dirty' flag in its file-system metadata.

To recover from this boot problem, you can either;

  1. Boot from your Windows Recovery CD and select "Startup Repair"

  2. If you don't have one, download (a small fee due to Microsoft license restrictions):
    1. Burn the ISO to a disc, help for how to do that is here.

    2. Boot up from it
    3. Select "Startup Repair".

Reinstating Windows

If you need to return the machine to the shop, or if for some other reason you need to return to Windows permanently, you can:

  1. Boot into Windows
  2. Get to an MS-DOS command-line by pressing Windows Key + R and then typing cmd

  3. Type in fixmbr

  4. Reboot the machine, it should boot straight into Windows with no option for Ubuntu
  5. To complete this task you might have to delete the remaining Ubuntu partitions from the hard drive in a LiveCD session, because Windows won't be able to see them.

Links

RecoveringWindows (last edited 2012-09-26 13:05:47 by yannubuntu)