parted gives error while starting backup
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
I have a scripted backup that I've been using for a few years now. The actual backup command looks like this:
/usr/sbin/ocs-sr -batch -q2 -j2 -z1p -i 4096 -scs -p reboot savedisk autoname sda
I'm trying to run that command on a new laptop. It's about 1 year old Samsung model NP750QUB. The script launches automatically, and when I saw the screen here is what it says:
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Getting /dev/sda1 info...
Getting /dev/sda2 info...
Getting /dev/sda3 info...
Getting /dev/sda4 info...
Getting /dev/sda5 info...
Getting /dev/sda6 info...
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/9cebe8d0cd86-2020-04-28-0300-img/blkdev.list...
Saving block devices attributes in /home/partimag/9cebe8d0cd86-2020-04-28-0300-img/blkdev.list...
Checking the integrity of partition table in the disk /dev/sda...
/usr/share/drbl/sbin/ocs-functions: line 2984: 8527 Aborted parted -s $disk_file pr
int &> $dsk_chk_tmp
The partition table in this disk is illegal/invalid: /dev/sda
It's not supported by parted. Parted is used in Clonezilla to parse the filesystem in the partition
table. This partition table is detected as WRONG by parted!
The error messages from parted are:
*****************************************************.
realloc(): invalid next size
*****************************************************.
If you continue, something strange might happen (E.g. dd is used, not partimage or ntfsclone, to sav
Are you sure you want to continue? (y/N)?
I have tried both "Y" and "N" answers to the continuation question. "N" simply quits Clonezilla and a reboot takes place. "Y" proceeds and appears to actually back up the machine. But I am afraid to test it.
What can I do to avoid this error and successfully backup?
Which version of Clonezilla live did you use? Could you please give the latest one a try? Either 2.6.6-15 or 20200428-focal:
https://clonezilla.org/downloads.php
Steven
I'm on Alternative eaon
Yes, I can give it a try.
Last edit: Steven Shiau 2020-05-24
I have now tried it with 20200428-focal, and the results are almost the same. This time, instead of "line 2984: 8527 Aborted", it says "line 2984: 8434 Aborted".
If it is helpful, here I transcribe a screenshot that I was able to take when I was physically with the machine (I was able to start Clonezilla in its user-guided mode, and selected a command prompt to type a couple commands I hope would be helpful):
So what could be the cause of the message: "The partition table in this disk is illegal/invalid" resulting from the "realloc()" call in parted?
Are there additional diagnoses that I can do to help?
Last edit: Saige Losli 2020-05-19
I googled and found this issue was asked on different forum two years ago:
https://bug-parted.gnu.narkive.com/7cW2mSfD/bug-29051-error-in-parted-realloc-invalid-next-size
" It appears that you have some non printing characters in your partition names." -> Is this your case?
Steven
I was worried about something like that. That's why I printed the
partition table in my last posting. I don't see any "non-printing"
characters in the partition names, but then again, how would one know?
It is the original partition table from the factory.
Last edit: Steven Shiau 2020-05-29
Maybe you can use sfdisk, blkid or parted to dump the file system info to a file, then use binary editor to check that file?
Steven