Unable to find target partition "sda4".
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Finding extended partition(s) in parted table /home/partimag/image6/sda-pt.parted...
Restoring extended boot record (EBR) in extended partition /dev/sda4...
Unable to find target partition "sda4".
Check if the partition sda4 really exists, otherwise maybe the kernel is too old.
ubuntu 16.04 LTS kernel 4.4 i doubt is too old
i have attached the logs from creating and restoring the image + all the small files in the image.
For the files you provide, it looks like /dev/sda4 does not exist on your hard drive:
8 0 976762584 sda
8 1 512000 sda1
8 2 512000 sda2
8 3 32768000 sda3
8 5 32768000 sda5
8 6 32768000 sda6
8 7 865357824 sda7
This is weird... From the results of sfdisk, apparently it's created.
After you see the errors, can you verify that by running:
cat /proc/partitions
then post the results.
Thanks.
Steven
after clonezila writes the image back sda4 is missing, based on the image i attached, does it even saves it ?
redone the steps using:
drbl-2.20.33-drbl1 clonezilla-3.22.8-drbl1 partclone-0.2.89-drbl1 drbl-chntpw-20110511-1drbl mkpxeinitrd-net-2.3.11-drbl1 ipxe-20140910-drbl1 freedos-1.0-19drbl util-linux-2.27.1-6ubuntu3.1 gdisk-1.0.1-1build1
installed pristine source HDD, and rebooted
issued
issued while clonezilla was creating the image from the sda disk
clonezilla finished makeing the image
it does not mention anything about sda4
the sda4 is still there after clonezilla finished creating the image
now writing the image back
Last edit: Mircea Dan 2016-07-14
any sugestion on what may be wrong, or any other logs that are needed ?
The case is really weird to me. I have no idea why it happens. What's the OS which you are restoring?
If there is no classified data, and if it's not very huge, maybe share the image to me so that I can try to reproduce the issue here.
Steven
in the sda4.zip i included all the files except the data files, see picture with the files i included and the files i left out, will it be posible to use some standard junk data files (i assume those shoudl play no role in the partition table)
the OS i try to restore is centos 7
Still I can not find any clues abut why it happens there. No idea what to do next. I wish I can access that machine and check more.
Steven
so i cannot provide the original image but i did as much as posible to provide something similar, i zeroed the disk
than created same 7 partitions and the logic volumes
now i looked to see if i have same disk structure
and i got same structure exctley like in the above posts
now i started clonezilla and this is the command that was generated
and you can find attached the full image (a bunch of partitions with no data in them)
now i deleted all the partitions and cleaned /dev/sda and rebooted (this is how i deleted teh partitions: fdisk /dev/sda d1d2d3d4w)
and now i tried to restore this image and the problem reproduced
Unable to find target partition "sda4".
Last edit: Mircea Dan 2016-08-09
had a breakthrough and i belive is all related to the cleanup.
i deleted everything, partitions, lvms, zeroed the disk, went all out of wiping everything. (clearley overboard)
rebooted
restored the image and it restored properley
rebooted
executed same exact command to restore the image and surprise unable to find targeted partition "sda4" error.
somehow i belive clonezilla does not wipes etc etc properley the hdd before writing it.
i think this comamnds are doing the job of cleaning up
export DISK1="/dev/sda"
sudo vgremove vg_02
sudo pvremove ${DISK1}7
sudo dd if=/dev/zero of=${DISK1}7 bs=1M count=1
sudo kpartx -dv ${DISK1}
echo -e "d\n1\nd\n2\nd\n3\nd\n4\nw\n" | sudo fdisk ${DISK1}
i also noticed some of this commands are not blocking or how to say, if you just paste them sometimes the ydon't work, but if you do them 1 by one the OS has enough time to propagate the changes so maybe a timeing issue
so at this time i have 2 speculations: cleanup issue (wipeing lvm and old partitions from targed disk) or timing issue.
Last edit: Mircea Dan 2016-08-10
Thanks for this bug report. I have confirmed this issue, and it was fixed in the git repository. Tomorrow we should have another testing release, and this fix will be included.
Steven
thanks very much, will give it a try once available and report back
Please give testing Clonezilla live 2.4.7-28 a try:
http://clonezilla.org/downloads.php
Let us know the results.
Thanks.
Steven
Hi,
when i create a live usb, i believe this fix is not present.although i use the latest clonezilla/drbl version, did this fix also made it to the iso that is being downloaded and modified when the live usb image is created ?i still see the issue even today when i create a live usb stick from an image.
Thanks,Mircea Dan
Fixed in
https://github.com/stevenshiau/clonezilla/commit/1923d4381302e3fc637e63dbb46e0d293335fd43
Feel free to reopen this if this issue is still remain.Steven [bugs:#254] Unable to find target partition "sda4".Status: closed-fixed
Group: testing_clonezilla
Created: Tue Jul 05, 2016 06:23 PM UTC by Mircea Dan
Last Updated: Tue Aug 16, 2016 05:58 AM UTC
Owner: Steven Shiau
Attachments:
Finding extended partition(s) in parted table /home/partimag/image6/sda-pt.parted...
Restoring extended boot record (EBR) in extended partition /dev/sda4...
Unable to find target partition "sda4".
Check if the partition sda4 really exists, otherwise maybe the kernel is too old.
ubuntu 16.04 LTS kernel 4.4 i doubt is too oldi have attached the logs from creating and restoring the image + all the small files in the image.Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/bugs/254/To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#254Fixed in
https://github.com/stevenshiau/clonezilla/commit/1923d4381302e3fc637e63dbb46e0d293335fd43
Feel free to reopen this if this issue is still remain.
Steven
the version from 20161010 works perfectley thanks very much for all the fixes and improvments made