So I have a 64GB SanDisk Cruzer Glide, and recently something happened to it. Whenever I would try to fsck it said the magic number for the superblock was corrupted, I didn't know what that meant, so I backed up everything with dd to a 1TB hard drive.
I formatted it as exFAT in macOS, and put it back into my Pi 400. I tried to mount the .img file to a directory I made so I can try to copy the files over to the thumb drive, so I can then copy them to my hard drive, but whenever I try to mount the .img file, I get this...
root@ubuntu:/home/wolfyn_claw# mkdir /mnt/glide2
root@ubuntu:/home/wolfyn_claw# mount -o loop '/media/wolfyn_claw/AC_STORAGE/glide2.img' /mnt/glide2
mount: /mnt/glide2: wrong fs type, bad option, bad superblock on /dev/loop17, missing codepage or helper program, or other error.
I'm attempting to write the .img file back to the thumb drive and see how that goes. I'm really hoping I can access the files on it, I can't afford to lose any of it.
I attempted to fsck the thumb drive, but whenever I do so it says the magic number in he superblock is invalid.
Before I did this, I backed up the thumb drive dev/sda1
to an .IMG file with dd. The file is ~63.5GB, and is stored on my hard drive.
Help is really appreciated, I really need to get these files back. Once it works again, I'll transfer everything to my 2TB SSD.
dd
to back up a data partition is an even worse idea than using it to back up a whole system. Why??!??cp -a
is your friend; then you are not dependent on any particular fs type.dd
the whole thumb drive/dev/sda
or only its partition/dev/sda1
? What was exactly the command you used?dd
is the best command here. Of course if the filesystem is accessible and not corrupt, you can copy withcp
. But if you need to do further forensics to get the files back, you should always work on a copy of the image, not on the image itself.dd if=/dev/sda1 of=some.img bs=4M
" etc.