Diff for "RecoveringWindows"


Differences between revisions 1 and 34 (spanning 33 versions)
Revision 1 as of 2010-03-23 01:49:17
Size: 1928
Editor: 74
Comment:
Revision 34 as of 2010-06-13 20:39:29
Size: 3507
Editor: 78-105-201-166
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
There are several complications/problems that can occur while running Ubuntu in a dual boot/wubi configuration. #title Recovering Windows
Line 3: Line 3:
This article shows you how to fix them. ||<tablestyle="float:right; font-size: 0.9em; width:35%; background:#F1F1ED; background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;"><<TableOfContents>>||
There are several complications or problems that can occur while running Ubuntu and Windows in either a dual-boot or [[https://wiki.ubuntu.com/WubiGuide | Wubi]].
Line 5: Line 6:
== Wubi ==
=== Missing hal.dll ===
This is a frequent error seen on wubi installations.
It leaves windows unable to boot and complains about a missing C:\windows\system32\hal.dll
Most [[http://distrowatch.com | distros]] (versions of linux, Ubuntu is a distro), such as the tiny [[http://distrowatch.com/table.php?distribution=slitaz | sliTaz]], can fix most Windows problems and there are specialist distros (such as [[http://distrowatch.com/table.php?distribution=trinity | Trinity Rescue Kit]] and [[http://distrowatch.com/table.php?distribution=systemrescuecd | SystemRescueCd]]) that can fix a lot more.
Line 10: Line 8:
hal.dll is the HardwareAbstractionLayer (just like linux has) for windows. This guide assumes Ubuntu either as a LiveCd or installed on hard-drive but other distros could be used just as easily.
Line 12: Line 10:
This problem can be fixed by using the following steps. = Wubi "Missing hal.dll" =
This is a frequent error seen on Wubi installations. It leaves Windows unable to boot and complains about a missing
{{{
C:\windows\system32\hal.dll
}}}
which is the Hardware Abstraction Layer for Windows.
Line 14: Line 17:
1. Boot up off a Ubuntu LiveCD
2. Under
the "Places" menu, select your windows partition (it will only be shown by its partition size)
3. navigate to windows/system32/dllcache
4. copy hal.dll from there to windows/system32/
5. reboot.
 1. Boot-up an Ubuntu LiveCd
 1. On the top taskbar click on
the "Places" menu   1. Select your Windows partition (it will only be shown by its partition size)
 1. Navigate to windows/system32/dllcache
 1. Copy hal.dll from there to windows/system32/
 1. Reboot.
Line 20: Line 24:
== Dual Boot ==
=== Recovering After Resizing Windows Vista / 7 ===
Windows 7 / Vista will not boot after its partitions are resized by ubuntu.
The full Wubi guide is at
 * https://wiki.ubuntu.com/WubiGuide
Line 24: Line 27:
This is due to the checks that windows 7 / vista performs on its partition at bootup. = Dual-Boot =
== Resizing Vista or Win7 Partitions ==
Windows 7 and Vista sometimes fails to boot easily 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 meta-data.
Line 26: Line 31:
The proper way of resizing a windows 7 / vista partition is to
1. Go into the control panel
2. Select "classic view" or "icon view" (youll have to look around hard for this)
3. click on "administrative tools"
4. click on "computer management"
5. click on "disk manager" (or something similar)
6. right click on the windows partition and resize.
=== Resizing a Windows Partition in Windows ===
The Windows users way of resizing a Windows 7 or Vista partition is to
Line 34: Line 34:
 1. Go into the Control-Panel
 1. Select "classic view" or "icon view" (you will have to look around hard for this)
 1. Administrative Tools
 1. Computer Management
 1. Disk Manager (or something similar)
 1. Right-click on the Windows partition and resize.

=== Resizing a Windows Partition in Linux ===
In the !GPartEd or !QTPartEd Partition Editors the tick-box '''align to cylinders''' must '''NOT''' be ticked because Windows 7 and Vista partitions usually start in sector 2048 instead of the normal standard sector 63. The Windows boot-loader needs Windows to start misaligned to cylinder boundaries.

=== How To Recover ===
Line 36: Line 47:
1. Boot from your recovery DvDs
   Select "startup repair"
 a. Boot from your [[https://help.ubuntu.com/community/WindowsRecoveryCd | Windows Recovery Cd]] and select "startup repair"
 b. Download either
 * For Vista : http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/
 * For Windows 7 : http://neosmart.net/blog/2009/windows-7-system-repair-discs/
Line 39: Line 52:
2. Download either
For Vista : http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/
For Windows 7 : http://neosmart.net/blog/2009/windows-7-system-repair-discs/

1. Burn the ISO to a disc
2. Boot up from it
3. Select Startup Repair.
  1. Burn the ISO to a disc
  1. Boot up from it
  1. Select Startup Repair.
Line 48: Line 57:
== Additional Links ==
[[http://neosmart.net/blog/2009/windows-7-system-repair-discs/|NeoSmart Windows 7 Recovery Discs]]
[[http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ | NeoSmart Windows Vista Recovery Discs ]]
= Links =
 * https://help.ubuntu.com/community/WindowsRecoveryCd
 *
[[http://neosmart.net/blog/2009/windows-7-system-repair-discs/|NeoSmart Windows 7 Recovery Discs]]
 * [[http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ | NeoSmart Windows Vista Recovery Discs ]]
 * https://wiki.ubuntu.com/WubiGuide

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

Most distros (versions of linux, Ubuntu is a distro), such as the tiny sliTaz, can fix most Windows problems and there are specialist distros (such as Trinity Rescue Kit and SystemRescueCd) that can fix a lot more.

This guide assumes Ubuntu either as a LiveCd or installed on hard-drive but other distros could be used just as easily.

Wubi "Missing hal.dll"

This is a frequent error seen on Wubi installations. It leaves Windows unable to boot and complains about a missing

C:\windows\system32\hal.dll

which is the Hardware Abstraction Layer for Windows.

  1. Boot-up an Ubuntu LiveCd

  2. On the top taskbar click on the "Places" menu
  3. Select your Windows partition (it will only be shown by its partition size)
  4. Navigate to windows/system32/dllcache
  5. Copy hal.dll from there to windows/system32/
  6. Reboot.

The full Wubi guide is at

Dual-Boot

Resizing Vista or Win7 Partitions

Windows 7 and Vista sometimes fails to boot easily 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 meta-data.

Resizing a Windows Partition in Windows

The Windows users way of resizing a Windows 7 or Vista partition is to

  1. Go into the Control-Panel
  2. Select "classic view" or "icon view" (you will have to look around hard for this)
  3. Administrative Tools
  4. Computer Management
  5. Disk Manager (or something similar)
  6. Right-click on the Windows partition and resize.

Resizing a Windows Partition in Linux

In the !GPartEd or !QTPartEd Partition Editors the tick-box align to cylinders must NOT be ticked because Windows 7 and Vista partitions usually start in sector 2048 instead of the normal standard sector 63. The Windows boot-loader needs Windows to start misaligned to cylinder boundaries.

How To Recover

To recover from this boot problem, you can either

  1. Boot from your Windows Recovery Cd and select "startup repair" b. Download either

  2. For Vista : http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/

  3. For Windows 7 : http://neosmart.net/blog/2009/windows-7-system-repair-discs/

    1. Burn the ISO to a disc
    2. Boot up from it
    3. Select Startup Repair.

Links

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