On Mar 16, 2014, at 12:38, Mick <michaelkintz...@gmail.com> wrote:

> On Sunday 16 Mar 2014 09:07:49 Matti Nykyri wrote:
>> Change the hard disk device ID to the same value as the old disk. It is
>> written on MBR. Change the UUID of the windows partition to the same as on
>> the old partition. UUID on NTFS partition is written at the beginning of
>> the partition at 0x48-4F. 
> 
> Can you give more detail please?  How would you change disk and partition 
> UUIDs? 
> 
> -- 
> Regards,
> Mick

Well when you purchase a new blank disk it is full with null's. When you first 
time open that drive with for example with fdisk it complains about incorrect 
mbr. If you in that situation print the partition table you will see that the 
device id is null.

When you create a partition these errors will be corrected by write. Fdisk 
creates a new device id from random data. It is then written to the mbr. Just 
explore the disk with hexedit and you'll find the device id. Just remember 
endianess.

By the same way a UUID is created when you format a new NTFS partition. It is 
also just random data written to the disk. It can easily edited with hexedit. 
At least my win7 booted normally when i moved it from a disk to another and 
fixed the UUID's of the new drive. Windows didn't notice anything. After i 
switched the motherboard of the machine then windows required a new activation.

Actually if you copy the windows partition with dd the uuid of the NTFS 
partition will not change. If you also copy the beginning of the old disk to a 
new one it will copy the device id to the new disk. Instead if you make a new 
partition table the device id will change.

There is nothing magical with partitioning and moving data on disk or to 
another disk. You can completely wipe mbr and partition table and then write a 
new partition table with partitions pointing to the beginning of your data and 
all your data will be intact.

Just experiment with hexedit. I can give you correct addresses when i'm back at 
home tomorrow. Or just google your self, if you are unable to find it with 
hexedit.

-- 
Matti

Reply via email to