backup data when container can't start or backup mode

nzucode

Member
Dec 22, 2022
5
0
6
Previously I had tried to fix the CT error, it couldn't start, then I tried to back it up but it still didn't work. There seems to be a problem with my hard drive, can I back up /var/www/ in my corrupted ct?
 
Hi,

What is the error you got when you try to start the CT?


Please try to do a pct mount <CT-ID> then the CT should mount in the /var/lib/lxc/CT-ID/rootfs path. and then you can try to copy/backup the /var/www/.
 
Hi,

What is the error you got when you try to start the CT?


Please try to do a pct mount <CT-ID> then the CT should mount in the /var/lib/lxc/CT-ID/rootfs path. and then you can try to copy/backup the /var/www/.

I have error this when i try
pct mount 102 [/QUOTE] mount: /var/lib/lxc/102/rootfs: can't read superblock on /dev/mapper/pve-vm--102--disk--0. mounting container failed command 'mount /dev/dm-6 /var/lib/lxc/102/rootfs//' failed: exit code 32