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
  Fix for Armbian not booting on PBP from eMMC agreenbhm 1 320 09-13-2022, 05:01 AM
Last Post: akront
  6/22 run of PBPs - is reimaging eMMC with new OS possible still? elitegamercody 25 990 08-31-2022, 04:30 PM
Last Post: wdt
  Debian emmc installer db579 6 429 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 1,076 08-18-2022, 11:26 PM
Last Post: calinb
  Fresh Manjaro does not boot from eMMC pentamassiv 7 1,688 08-18-2022, 11:47 AM
Last Post: Bemo
Big Grin PinephonePro can't Flashing to the eMMC ricardo 1 279 07-31-2022, 04:04 PM
Last Post: wpeckham
  PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD Pino64 21 2,862 05-12-2022, 05:00 AM
Last Post: Pino64
  Broken eMMC boot annahellrothsparent 3 786 04-28-2022, 07:31 AM
Last Post: tophneal
  Installing debian on pinebook pro (deb installer/emmc) ljones 14 5,047 02-08-2022, 02:47 AM
Last Post: Humid Stylus
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 0 737 01-10-2022, 03:58 PM
Last Post: zackw

Forum Jump:


Users browsing this thread: 1 Guest(s)