Recover data from crashed emmc
#1
Manjaro 20.08. KDE Plasma desktop
A while back the PBPro suffered intermittent locking behavior on the desktop. I was forced to reboot as no keyboard actions were having any affect. Upon reboot the logs indicted file system errors. Soon after this Manjaro would not boot at all. . . . . Forward two weeks . . . . .  Manjaro 20.08 is booting on the SDCard.
The emmc device is present as /dev/mmcblk2. I wanted to check it for files that may be recoverable, but I could not mount it with the defaults. The output is
The device - 'doesn't seem to have a valid NTFS'. Should mounting mmcblk2 work with defaults? Any ideas on how to recover data on mmcblk2?

The plan is to copy  my working SDCard Manjaro 20.08 across to this storage device as soon as I can. Naturally any files/data will be lost but I am prepared to wear this if necessary.
#2
How does NTFS get into the picture? Did a partition's type (just a byte I think) get changed? Does sfdisk -l show an NTFS partition now? Could have a corrupted superblock but it's probably ext4.

The original eMMCs seem to have started to fail, expect chaos. The super safe thing to do is probably copy the partition with dd to somewhere else then work with the copy. Several fdisk-type utilities can change a partition's type, I'd try to reset that to ext4 (on the copy). I don't think mount will mount it until it passes an fsck, you can specify an alternate superblock (number) to fsck. You can do a loop mount on a file made by dd and mount that volume almost like a normal partition.
#3
(10-20-2020, 05:09 PM)ab1jx Wrote: How does NTFS get into the picture?  Did a partition's type (just a byte I think) get changed?  Does sfdisk -l show an NTFS partition now?  Could have a corrupted superblock but it's probably ext4. 

The original eMMCs seem to have started to fail, expect chaos.  The super safe thing to do is probably copy the partition with dd to somewhere else then work with the copy.  Several fdisk-type utilities can change a partition's type, I'd try to reset that to ext4 (on the copy).  I don't think mount will mount it until it passes an fsck, you can specify an alternate superblock (number) to fsck.  You can do a loop mount on a file made by dd and mount that volume almost like a normal partition.

Wait... Isn't the PBP only like a year old? How are the eMMCs failing already? What's the wear like? (I found a quick-and-dirty script at https://electronics.stackexchange.com/a/525525 in case you don't have a better way to read the wear information.)

I have a PBP on my wishlist for when life feels normal to me again, but if I can only expect its eMMC to last about 20% as long as most eMMCs, I might have to reevaluate that.
#4
>Should mounting mmcblk2 work with defaults?
Not the WHOLE device, you have to mount partitions (eg, /dev/mmcblk1p1)
You can run fdisk on an image, then mount with the appropriate offset
eg sudo mount someimage existing-empty-mount-point -o loop,offset NNNN(K) (and maybe) -t type
testdisk if its really screwed up, you can run testdisk on an image
If fdisk seems to be "right" then run a fsck on PARTITION maybe more than once (until it ends without error)


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 1,917 12-13-2023, 07:22 PM
Last Post: trillobite
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 292 12-07-2023, 03:11 PM
Last Post: wdt
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 1,853 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Blank screen after Armbian 20.04 install to emmc? psychoacoustic 3 3,343 04-01-2023, 03:22 PM
Last Post: TRS-80
  Fix for Armbian not booting on PBP from eMMC agreenbhm 7 3,655 04-01-2023, 02:58 PM
Last Post: TRS-80
  My installation guide starting from messed up eMMC Besouro 0 813 12-19-2022, 01:01 PM
Last Post: Besouro
  newer ""emmc-installer" images (manjaro xfce) magistral 1 1,037 10-10-2022, 06:22 AM
Last Post: maxjrh
  6/22 run of PBPs - is reimaging eMMC with new OS possible still? elitegamercody 29 10,818 10-04-2022, 07:55 PM
Last Post: wdt
  Debian emmc installer db579 6 2,797 08-23-2022, 06:13 AM
Last Post: db579
  what is the magic dd incantation to copy the system from the sd card to the emmc? geokon 18 8,782 08-18-2022, 11:26 PM
Last Post: calinb

Forum Jump:


Users browsing this thread: 1 Guest(s)