I have accidently deleted all files in a logical volume by executing
Code: Select all
mkfs.ext4 /dev/mapper/<vg>-data
The disk is not damaged, the partition table is correct, all partitions are accessible, LVM is showing no errrors.
Based on the documentation I cannot undelete files of an ext4 filesystems, instead I can use photorec.
If this is correct, can you please advise how to proceed?
Should I run photorec on the logical volume? Or should I mount the logical volume and then run photorec?
THX