Copy data between HDDs without access

ejimenez

New Member
Apr 4, 2023
9
0
1
hello,
I had a problem with a proxmox virtual machine, Zentyal (manage samba), I have a disk with 2TB of information but the partition table was deleted and I can't access it if I format it first.

I need to copy the data to a new disk to make a backup, how can I do it without formatting the disk with 2TB of data?, thanks.
 
Hi,
I'm afraid you can only make a bitwise copy of the disk if you don't have the partition/filesystem information. But it's still worth doing before attempting recovery. Then you can use https://www.cgsecurity.org/wiki/TestDisk to try and recover the partition table.

Can you share the VM configuration qm config <ID> with the ID of the VM and output of pveversion -v? Did you run backups of this VM? If you are using SATA this might be: https://bugzilla.proxmox.com/show_bug.cgi?id=2874

What also would be interesting is the start of the disk to see how the corruption looks like. You can use pvesm path <storage>:vm-<ID>-disk-<N> to get the path and then
Code:
qemu-img dd bs=512 count=256 if=/path/to/disk of=/tmp/dump.raw
zstd /tmp/dump.raw
to get a compressed (for easier uploading) dump in /tmp/dump.raw.zst.
 
  • Like
Reactions: pvps1

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!