If the drive is still somewhat operational, there are a few things you can try. First, check the drive’s condition with smartctl to see if it’s still alive at all. If there are tons of read/write errors, it explains why nothing is mounting. If the drive is responsive, you can try recovering the superblock with e2fsck, for example: If that doesn’t work, it’s better to create an image of the disk using ddrescue before it completely fails. Here’s how you can do it: sudo ddrescue Once you have an image, you can try extracting files from it using tools like photorec or testdisk. Testdisk might help recover the partition table, while photorec will extract raw files if everything else fails. If the drive is making strange noises or barely reads at all, further attempts might only make things worse. In that case, if the data is critical, you might want to consider reaching out to professional data recovery companies, like Salvagedata or similar. It’s not cheap, but at least you won’t risk causing more damage by trying to handle it yourself. Try the safer options first, like creating a disk image, but if the drive is on its last legs, professional recovery is likely your best bet.
Code:
sudo e2fsck -b 32768 /dev/mapper/xavi--vg-root
Code:
-f /dev/sdb5 /path/to/image /path/to/log
Statistics: Posted by ChristianMorris — 2024-12-02 19:51