There are several complications or problems that can occur while running Ubuntu and Windows in either a dual-boot or Wubi environment.
This guide assumes that you either have Ubuntu on a LiveCD or installed on the hard-drive.
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.
This is a frequent error seen on Wubi installations. It leaves Windows unable to boot and causes it to complain about a missing file,
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/
The full Wubi guide is here.
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 follow these instructions.
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:
Follow these instructions.
- 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.