HP 255 G7 Model RTL8821CE | i cant restore image - disk too small
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Hi,
I have few laptops - HP 255 G7 Model: RTL8821CE
One nmve device 256gb, uefi. I installed linux there, download last clonzilla-stable (ubuntu-based) and make full backup.
I was planning to restore this image to other laptops. But when restoring, I get the error - disk is to small /dev/nvme0n1
I created a virtual machine with similar parameters - nmve controller, uefi, but disk i make about 300gb (original hardware 256), try restored and again get error disk too small..
I tried advanced mode, different parameters.. but... disk to small..
Try make backup again , and restore again. But..
I have been using your software for many years, it has never happened before.
Please:
1. Take some photos about the error messages on the screen then post. E.g.,
https://clonezilla.org/clonezilla-live/doc/02_Restore_disk_image/images/restore_to_smaller_disk_error.png
cat /proc/partitions
cat /home/partimag/YOUR_IMG/nvme0n1-pt.parted
cat /home/partimag/YOUR_IMG/nvme0n1-pt.sf
Please post the above results, too.
Thanks.
Steven
cat nvme0n1-pt.sf
cat nvme0n1-pt.sf
cat parts
nvme0n1p1 nvme0n1p2 nvme0n1p4
The issue is on sfdisk because it failed to write the partition table. This is due a bug in sfdisk:
https://github.com/karelzak/util-linux/issues/949
Which version of Clonezilla live did you use? This issue has been fixed for a long time IIRC.
Anyway, now you can modify nvme0n1-pt.sf, remove or comment this line:
sector-size: 512
Then restore it again.
Steven
This is weird...
The error about sfdisk creating partition table shown in en2_photo_2021-03-10_20-14-14.jpg is different from that of sf_VirtualBox_test255_14_03_2021_11_09_01.png.
BTW, I can not reproduce this issue using clonezilla-live-20210127-groovy-amd64.
Anyway, now idea how to fix it since it's not reproduce here.
Maybe you can give testing Clonezilla live 2.7.2-9 a try?
https://clonezilla.org/downloads.php
BTW, when you see the error shown in small_VirtualBox_test255_14_03_2021_11_08_22.png, please run these 3 commands again then the results:
cat /proc/partitions
cat /home/partimag/YOUR_IMG/nvme0n1-pt.parted
cat /home/partimag/YOUR_IMG/nvme0n1-pt.sf
and you can try to manually run:
sfdisk /dev/nvme0n1 < /home/partimag/YOUR_IMG/nvme0n1-pt.sf
to see its error messages. Please also take photo about the error messages on the screen then post it.
Steven
i run commands
Last edit: Anton Shevtsov 2021-03-14
Forgot to mention, please also run:
sudo parted -s /dev/nvme0n1 print
then post the results.
Steven
Clonezilla live 2.7.2-9 test video.
https://youtu.be/5Ij5b4tkCQI
parted -s /dev/nvme0n1 print
No idea actually. The issue now is not the disk size, and it's "first lba specified by script is out of range". I still can not figure it out.
I would suggest you manually create the partition table for the destination disk by fdisk or gdisk, according to the nvme0n1-pt.parted. Then try to restore the image in expert mode, and choose "-k" to use the existing partition table on the destination disk, i.e., skip creating partition table again.
Steven
i created manually and proccess successfully started!
Good to know that. Thanks for your feedback.
Steven