View previous topic :: View next topic |
Author |
Message |
hal8000 n00b

Joined: 27 Mar 2025 Posts: 13
|
Posted: Tue Apr 15, 2025 8:45 am Post subject: Recovering Memory card Gentoo-kernel-bin [solved] |
|
|
I will mark this solved shortly.
The Dash-cam in my car stopped working, it used a 16G Fat32 Micro SD card.
In Windows, the card was unreadable (could not run chkdsk) and windows wanted to format the card.
Tried a format but it failed with the most helpful message in the world, "Unable to format card"..
I tried on my laptop running Linux Mint 22.1 this time the error was corrupt dos partition table.
I then tried on my desktop running Gentoo with gentoo-kernel-bin 6.12.21
I emerged syst-fs/dosfstools and was amazed when the card was recognized!
I tried:
Code: | fsck.vfat -n /dev/sdd1 |
The error message was invalid sectors (or something) should have made a screenshot
I then tried interactive repair:
Code: | fsck.vfat -r /dev/sdd1 |
And the errors on disk were corrected.
Is there anything special about the gentoo-kernel-bin sources?
Why was I able to repair a card that could not be read in windows or another linux distribution?
My current kernel from /boot:
Quote: | ls -l /boot -h
total 27M
-rw-r--r-- 1 root root 145K Apr 11 12:33 amd-uc.img
drwxr-xr-x 2 root root 39 Apr 11 12:33 grub
-rw-r--r-- 1 root root 3.4M Apr 11 12:33 initramfs-6.12.21-gentoo-dist.img
-rw-r--r-- 1 root root 20M Apr 11 12:33 kernel-6.12.21-gentoo-dist
|
The only thing I can think of was maybe the Micro SD card contacts were contaminated and moving from
laptop to computer and re-inserting cleaned card contacts ?
Last edited by hal8000 on Tue Apr 15, 2025 3:15 pm; edited 1 time in total |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55200 Location: 56N 3W
|
Posted: Tue Apr 15, 2025 10:20 am Post subject: |
|
|
hal8000,
I can't speak for Windows. I gave that up in 2002. :)
fsck may not do what you think it does.
When used on a corrupt filesystem, it makes the filesystem metadata self consistent by 'guessing' what should be there.
Unfortunately, that can result in destroying some or all the user data in the filesystem.
There is no undo, hence you need a validated backup before running fsck on a filesystem with valuable data.
You ran which usually tells fsck to look and report but not fix.
Corrupt or missing partition tables are harmless. The partition table is a set of pointers to partitions.
The partitions and the data they contain may well be unharmed. Just difficult to get to.
Use the offset= option to mount or recreate the partition table as it was to get the data back. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
hal8000 n00b

Joined: 27 Mar 2025 Posts: 13
|
Posted: Tue Apr 15, 2025 3:19 pm Post subject: |
|
|
Neddy,
Thanks for your insight. I think I got lucky this time, as the card is usable again, and there was no important data to back.
Have marked as solved. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|