Kubuntu and Vista on HP laptop
02 Aug 2007Ignore this if you are not setting up a HP laptop right now. This is only for anyone who is looking for helpful information about installing Kubuntu on a HP Compaq nx7400 notebook with Windows Vista Business (dual boot). It may be similar on other laptops and with other versions of Windows Vista though.
Backup and installation
- The laptop has a 80 GByte hard disk. Initially there is a 20 GByte partition with Windows Vista Business installation software on it
- On booting up the first time, the Windows Vista software is personalised and installed on the hard-disk.
- After Windows Vista is installed, HP’s backup software automatically creates a backup on the hard-disk and you end up with three partitions: the windows partition, a recovery partition, and another partition with the recovery boot-loader.
- To be safe you can boot Kubuntu from DVD and create a backup of the master boot record, the partition table, and the first partition if you have a large external hard disk for example (alternatively maybe you can use the HP backup tool to create a backup on DVDs, but I am not sure about this):
- In the “Control Panel” under Windows Vista, you can find the partition manager under the advanced tools. I deleted the second and third partition (the backup). This doesn’t harm Windows Vista itself. Furthermore I shrank the system partition using “Shrink partition” to the allowed minimum size of 40 GByte.
- Now it was possible to install Kubuntu. The Kubuntu installation even allows you to further reduce the size of the Windows Vista partition (e.g. 25 GByte). Don’t forget to install a daemon for CPU frequency scaling such as cpudyn or powersave.
- Using dd (see above) one can now create a new backup of the reduced first partition (sda1.img):
- It can be useful to store the backup files on the Linux partition as well. One can use gzip to compress the img-file. To save disk-space you can compress the backup image on the fly:
Restoring from backup
If Windows Vista is corrupted due to some software problem, now one does not need to have the external hard drive for restoring Windows Vista at hand. You would restore the content of the Windows Vista partition like this (I did not try this!):
One can use the information in fdisklinux.log using the command fdisk /dev/sda to manually restore a partition layout. The mbr-files can be used to restore a particular master-boot record. The img-file can be used to restore the 25GByte Windows Vista partition.
All this information is given without any warranty. You can send me an e-mail if you find that the information is wrong.
Note that if you uninstall the HP backup tool, it will overwrite the master-boot-record of the hard disk (without confirmation) and you will have to reinstall grub (see reference below).
Update:
Dabs is now known as BT Shop.
See also: