dd if=/dev/sda2 of=/dev/sdb2
mount /dev/sdb2 /mnt
dd if=/dev/sda3 of=/mnt/sda3
dd if=/dev/sda1 of=/mnt/sda1
For two partitions, most importantly the system partition. Now i had a really hard time getting it to boot. Fix: After lots (and lots) of trial and error this is what got me to the finish line:
- I installed a Windows Vista
- mounted this installation in gparted (/media/sdb1), rm -rf everything except files that looked boot related, most importantly /BOOT (WINDOWS/Boot doesn't seem to be relevant)
- mv /media/sdb1/BOOT /media/sdb1/BOOT.bak
- mount -o loop /mnt/sda1 /media/sda1 and cp -r /media/sda1/* /media/sdb1/
- rm -rf /media/sdb1/BOOT/; mv /media/sdb1/BOOT.bak /media/sdb1/BOOT
- reboot into the Windows Vista installation cd and used the fix boot option
- Boot into Windows again and fix drive letters (before you start up the SQLServer!)
- Voila
If you have the luxury of enough space just do a dd if=/dev/sda /dev/sdb!
What doesn't work:
- dd of the disk image to the disk (blank cursor)
- dd of the disk image to a new partition (blank cursor on boot)
- Creating a partition and installing into it (wrong disk offset => blank cursor)
- Installing Vista and overwriting the partition with a dd (blank cursor)
- Deleting the partition, installing Vista and copying everything into it (Missing winload.exe)
- Installing Vista and copying everything safe for WINDOWS/BOOT (MIssing winload.exe)
No comments:
Post a Comment