Trying to deploy image to smaller Drive
-
I am trying to go from an HP x360 ee 11 128GB to an HP x360 ee 11 64GB. I have tried both resized image and an image where i shrunk the main partition to 33GB both ways gave the same error. Image deploys fine back to original laptop Any ideas? Running version 1.5.2
-
@bretfred Most probably related to the partition layout. Can you please post the contents of
d1.partitions
,d1.minimum.partitions
andd1.fixed_size_partitions
? -
Here is the contents of those files. I thought i shrunk this drive in windows before I did the capture. I could be mistaken as i was doing a bunch of stuff. Looks like the primary partition itself wants 64GB so its no wonder why its not working however i have included a not resizeable capture i did where i know its shrunk to around 33GB at the bottom that does the same thing. In windows the drive shows 30.8 however the partitions file shows 64Gb for the size.
fixed size:2:3:1
minimum
label: gpt label-id: CA2CF626-B6A1-BE98-571A-1A6FE2E6B6DE device: /dev/sda unit: sectors first-lba: 34 last-lba: 250069646 /dev/sda1 : start= 40, size= 921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=2B630EF3-1CF9-42FB-846C-792BF8938857, name="Basic data partition" /dev/sda2 : start= 921640, size= 104426, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=95A294AF-CC04-4743-AB0D-ADB83A5E365E, name="EFI system partition" /dev/sda3 : start= 1026066, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=2967A63F-3AA1-4409-BDA8-305B43B9513E, name="Microsoft reserved partition" /dev/sda4 : start= 1058834, size= 64605696, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=18916FDB-D9D2-4F31-AD1F-1F574B24070A, name="Basic data partition" /dev/sda5 : start= 246730258, size= 3338240, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=17DDD755-5CBF-4FBE-AAA4-C20CE93D52A8, name="attrs="RequiredPartition GUID:63"
partitions
label: gpt label-id: CA2CF626-B6A1-BE98-571A-1A6FE2E6B6DE device: /dev/sda unit: sectors first-lba: 34 last-lba: 250069646 /dev/sda1 : start= 40, size= 921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=2B630EF3-1CF9-42FB-846C-792BF8938857, name="Basic data partition" /dev/sda2 : start= 921640, size= 104426, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=95A294AF-CC04-4743-AB0D-ADB83A5E365E, name="EFI system partition" /dev/sda3 : start= 1026066, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=2967A63F-3AA1-4409-BDA8-305B43B9513E, name="Microsoft reserved partition" /dev/sda4 : start= 1058834, size= 64605696, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=18916FDB-D9D2-4F31-AD1F-1F574B24070A, name="Basic data partition" /dev/sda5 : start= 246730258, size= 3338240, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=17DDD755-5CBF-4FBE-AAA4-C20CE93D52A8, name="attrs="RequiredPartition GUID:63"
Shrunk not resize
label: gpt label-id: CA2CF626-B6A1-BE98-571A-1A6FE2E6B6DE device: /dev/sda unit: sectors first-lba: 34 last-lba: 250069646 /dev/sda1 : start= 40, size= 921600, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=2B630EF3-1CF9-42FB-846C-792BF8938857, name="Basic data partition" /dev/sda2 : start= 921640, size= 104426, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=95A294AF-CC04-4743-AB0D-ADB83A5E365E, name="EFI system partition" /dev/sda3 : start= 1026066, size= 32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=2967A63F-3AA1-4409-BDA8-305B43B9513E, name="Microsoft reserved partition" /dev/sda4 : start= 1058834, size= 64605696, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=18916FDB-D9D2-4F31-AD1F-1F574B24070A, name="Basic data partition" /dev/sda5 : start= 246730258, size= 3338240, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=17DDD755-5CBF-4FBE-AAA4-C20CE93D52A8, name="attrs="RequiredPartition GUID:63"
-
@bretfred Ok, let’s try to sort your partitions out.
- sda1: GUID=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC => Windows recovery partition -> marked as fixed size, ok!
- sda2: GUID=C12A7328-F81F-11D2-BA4B-00A0C93EC93B => EFI partition -> marked as fixed size, ok!
- sda3: GUID=E3C9E316-0B5C-4DB8-817D-F92DF00215AE => Microsoft reserved partition, not sure why you have that but marked as fixed seems ok to me too.
- sda4: GUID=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 => Microsoft basic data partition, probably where your Windows is installed, should be able to resize that.
- sda5: GUID=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC => another Windows recovery partition, not sure why you have that?! Possibly this is preventing the resize.
You see all the numbers in
d1.partitions
andd1.minimum.partitions
match. That should not be the case if we are able to resize. Even the “shrunk not resize” output is exactly the same. Not sure what exactly you did?! -
Yea not sure why the shrunk partition is listing the same size as the resizable one. So I went ahead and deleted the second recovery partition. Recaptured the image as not resizeable. Was able to get it to restore to the smaller drive. Even after i recaptured it still showed the data partition as 64GB not sure why but hey it worked. Thanks for your help.