If you've messed up your eMMC Card - Solved
#2
(07-02-2018, 04:59 AM)gregb49 Wrote: <words>
Eventually, out of desperation, I flashed an SD Card with aufan's 0.6.44 image and running that, with the eMMC installed, I managed to do the following on the Rock 64

  1. Through gparted, I deleted the main root partition, the one that was over 50gb in size.
  2. I ran /usr/local/bin/rock64_reset_emmc.sh (sudo ./rock64_reset_emmc.sh) (I took a clue from the wiki - noobs - troubleshooting your device, although the advice was for the Pine64 and was about using /ussr/local/sbin/update_script.sh which was not available for the rock64 - yes I was getting desperate with what appeared to be a dead eMMC card)
I've no idea which of those sorted out the problem, but I was able to reinstall ayufan's
Code:
bionic-lxde-rock64-0.6.44-239-arm64.img.xz
under Win10. Note, Etcher through Linux still insisted that the eMMC card was a 32mb card, but Win10 Etched saw it as a 64gb card with multiple drives.

I'm hoping that this might help someone else who thinks they might have destroyed their eMMC card. I'm assuming that I did some damage to the uboot(?) partition but, really, I have no idea what I did wrong except by trying to wipe everything off the eMMC Card in the first place.

I'm sure someone out there knows a simpler way to restore your eMMC card.

In Windows, you can do almost the same thing as gparted to your sd- or emmc-cards. A wipe is great in case you've screwed the blocks or you have an invalid partition table.
Quick howto of Diskpart.exe:

Code:
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB      0 B        *
  Disk 1    Online          465 GB  1024 KB        *
  Disk 2    Online          931 GB      0 B
  Disk 3    Online          931 GB      0 B
  Disk 4    Online          113 GB      0 B        *
  Disk 5    Online           29 GB    26 GB
DISKPART> select disk 5
Disk 5 is now the selected disk.
DISKPART> clean
DiskPart succeeded in cleaning the disk.
DISKPART> create partition primary
DiskPart succeeded in creating the specified partition.
DISKPART>



The card now has an empty, unformatted partition that spans the entirety of that card. You can access (or write to) this partition from Etcher, Win32DiskImager, Rufus or any other sd/emmc writer tool (unless it's shit). If you want to check for bad blocks or check the integrity of the card etc, I advice to format it with SDCard Formatter.
  Reply


Messages In This Thread
RE: If you've messed up your eMMC Card - Solved - by CaptainZalo - 07-03-2018, 11:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Buildroot 2021.08 not booting from SD card jimmy 1 1,940 11-08-2021, 02:25 AM
Last Post: hunderteins
  Debian (Vanilla) on Rock64 and eMMC - how ? as365n4 4 5,142 09-21-2020, 04:33 AM
Last Post: as365n4
  Display limited to 800x600 [SOLVED] Averell 16 18,334 06-05-2020, 11:07 PM
Last Post: ab1jx
  Nextcloudpi SD card fills up. default_user8 13 16,329 12-04-2019, 01:30 PM
Last Post: Rocklobster
Question [SOLVED] Alpine Linux won't boot rock7 1 5,679 10-22-2019, 04:30 PM
Last Post: rock7
  Clone the SD to eMMC tagyro 1 3,329 02-06-2019, 06:55 AM
Last Post: evilbunny
  Repair corrupt root filesystem on emmc David82 1 3,696 01-31-2019, 01:11 PM
Last Post: Tozzi
  Migrate Linux from microSD to onboard eMMC elik745i 7 9,678 11-03-2018, 08:23 AM
Last Post: mara
  [solved] Unable to start X Osiander 8 11,273 10-03-2018, 03:54 AM
Last Post: jovval
  Tutorial How to write a image in the eMMc card without USB adaptor or serial cable gedas07 2 3,769 08-29-2018, 10:08 AM
Last Post: gedas07

Forum Jump:


Users browsing this thread: 1 Guest(s)