Size: 3985
Comment: boot repair
|
Size: 4037
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:
- Boot up an Ubuntu LiveCD
- On the top taskbar click on the "Places" menu
- Select your Windows partition (it will be shown by its partition size, and may also have a label such as "OS")
- Navigate to windows/system32/dllcache
- Copy hal.dll from there to windows/system32/
- 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;
Boot from your Windows Recovery CD and select "Startup Repair"
- If you don't have one, download (a small fee due to Microsoft license restrictions):
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/
Burn the ISO to a disc, help for how to do that is here.
- Boot up from it
- 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:
- Boot into Windows
Get to an MS-DOS command-line by pressing Windows Key + R and then typing cmd
Type in fixmbr
- Reboot the machine, it should boot straight into Windows with no option for Ubuntu
- 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.