You are not logged in.
Hello,
I have accidently executed
mkfs.ext4 /dev/mapper/<vg>-data.
Can you please advise how to recover the deleted data?
The drive is good, the partitions are accessible, LVM shows no errors.
THX
Offline
I don't use LVM but this page could help you.
It's probably best to clone the drive first in case more data gets written to it so at least you have an exact copy of the drive.
Offline
Any advice how to work with photorec with LVM partition?
Offline
Is it SSD storage? Asking because mkfs.ext4 issues TRIM/discard and thus all data gone nothing to recover.
So recovery is only possible on HDD, or if the PV is LUKS encrypted without allow-discards.
Otherwise... which filesystem was on it before?
Any advice how to work with photorec with LVM partition?
You can use photorec on it directly like any other block device. But photorec can only recover unfragmented files with distinct file headers.
Offline
The drive is a HDD.
And the filesystem was originally EXT4.
Offline