General TC > General TC Talk

Data Recovery from bad SSD

<< < (5/6) > >>

curaga:
USB adapters use different drivers, so older Linux probably won't affect anything.

MTCAT:
Hi everyone,

Having problems posting, long story short, can't get Slackware to recognize the external 2.5 inch drive. I did make a 21.7 GByte image of hda3 (user partition), which I still have, on a pen drive, but I wasn't able to mount the image file, getting the following error in dmesg,

[1810.399627] EXT4-fs [loop 0]: failed to parse options in superblock: y?
[1810.399652] EXT4-fs [loop0]: bad geometry: block count 13565696 exceeds size of device (5701216 blocks)

Any ideas what I can do to try to mount this 21.7 GByte image file ?

Thanks,

David

Rich:
Hi MTCAT
First make a copy of your image file to experiment on:

--- Code: ---cp hda3Data.img hda3Test.img
--- End code ---
This way if something goes wrong, you can just copy it again.

Next you want to get a list of backup superblocks:

--- Code: ---sudo mke2fs -n hda3Test.img
--- End code ---
When it asks:

--- Code: ---Proceed anyway? (y,N)
--- End code ---
just hit  y  then  Enter.

It should look similar to this:

--- Code: ---tc@E310:~/DD$ sudo mke2fs -n /dev/sda2
mke2fs 1.44.4 (18-Aug-2018)
/dev/sda2 contains a ext4 file system
        last mounted on /mnt/sda2 on Mon Jul  4 20:32:05 2022
Proceed anyway? (y,N) y
Creating filesystem with 3840000 4k blocks and 960992 inodes
Filesystem UUID: f6a323d6-9619-454f-aaeb-09a8a1b00d26
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

tc@E310:~/DD$
--- End code ---

Pick the first superblock backup listed and try to restore the superblock.
For example:

--- Code: ---sudo e2fsck -b 32768 hda3Test.img
--- End code ---

Now try mounting it again:

--- Code: ---mkdir PickAnyName
sudo mount hda3Test.img PickAnyName
--- End code ---

If it fails, pick the next superblock backup listed and try to restore the superblock.
Then try mounting again. Work your way through the superblock backups as required.

MTCAT:
Thanks for the help Rich, I'll give that a try this week.

Thanks,

David

MTCAT:
Hi Rich,

I went through all the super-blocks as instructed but I still get the same error as in post 21 when trying to mount. Need to run resize2fs somehow?, without it complaining that I need to run e2fsck first.

Thanks,

David

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version