I have a work-computer with Win7 but I'd like to use Ubuntu. At some point I will have to give back that computer as it was - with Win7 on it.
What I'd like to do:
- Clone(?) or backup somehow windows as it is right now on that computer and store the clone, .img or whatever it might be.
- Do a fresh Ubuntu install on it.
- Restore the state as of today with Win7 when I have to give back the pc at some point in future.
I've found following tutorial (https://wiki.archlinux.org/index.php/Disk_Cloning)
Create disk image
Boot from a liveCD or liveUSB.
Make sure no partitions are mounted from the source hard drive.
Mount the external HD
Backup the drive.
dd if=/dev/hda conv=sync,noerror bs=64K | gzip -c > /mnt/sda1/hda.img.gz`
Save extra information about the drive geometry necessary in order to interpret the partition table stored within the image. The most important of which is the cylinder size.
fdisk -l /dev/hda > /mnt/sda1/hda_fdisk.info
NOTE: You may wish to use a block size (bs=) that is equal to the amount of cache on the HD you are backing up. For example, bs=8192K works for an 8MB cache. The 64K mentioned in this article is better than the default bs=512 bytes, but it will run faster with a larger bs=. Restore system
To restore your system:
gunzip -c /mnt/sda1/hda.img.gz | dd of=/dev/hda
Is that the way to do it? Or is there a better way?
I see three partitions on the system now: SYSTEM_DRF, Windows7_OS, and Lenovo_Recovery. Could I also only copy the Lenoveo_Recovery partition and then rebuild the system from there?