Donnerstag, 18. September 2014

Windows 7 & GNU/Linux (Ubuntu 14.04) Dual Boot (hp touchsmart)

I had some difficulties with installing Linux on my HP Touchsmart tm2.
At first I tried to install UEFI for HP laptops, but finally that failed. So I put Ubuntu 14.04 on an USB disk and tried to install, but the partitions were shown completely wrong.
The origin of this is the hard disk format, i.e. that Windows has invented a special format which is not compatible with Linux.
The program "EaseUS Partition" did the job for me within a few seconds and converted the primary partition to a logical volume.

After this conversion the installation of Ubuntu worked without any problems and I was offered several boot options - but Windows 7 did not boot giving me the following error:

0xc000000e [...] winload.exe

This happened because I installed grub into the little 200MB partition which contains the MBR (Master Boot Record). To fix this I created a Windows 7 installation USB drive (WinUSB tool helped me) and booted from that USB drive. I had to start the repair mode three times (including reboot) until the program showed me the Windows 7 partition. Then I chose to repair this Windows 7 installation by means of the console and the following commands repaired everything: (take care whether your installation really is on drive C:\)

bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
attrib -h -s C:\boot\BCD
del C:\boot\BCD
bootrec.exe /rebuildbcd
bootrec.exe /fixboot

Actually I don't understand a lot about these commands. One tutorial did not show me the bootrec.exe /fixboot command, so I don't know whether it is important to execute it after /fixmbr. Maybe /fixmbr and /fixboot is sufficient.

Well, after that I booted from the Ubuntu live CD (from a USB disk) and from the terminal I executed the following commands to repair and reinstall grub:

sudo mount /dev/sda4
sudo grub-install /dev/sda -root -directory=/mnt
update grub

Since then everything worked fine.


I want to rewrite this article with the following structure:
1. Problems that occured
2. Mistakes I did leading to the problems
3. tools I needed
4. important steps leading to the solution
5. smile
x. add links and images

Keine Kommentare:

Kommentar veröffentlichen