03-05-2020, 02:30 PM
(03-04-2020, 11:17 PM)wdt Wrote: Because of /dev, /sys, /proc, /run cloning a booted system is not a good idea, better use rsync---------------------------------------------------------------------------------------------
When not booted, these are empty directories
mount |grep mmc (make sure no partitions on emmc are mounted)
Maybe blank 1st 16M,,,, dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=16
bs=1M, faster,,but the real point is default block size of dd 512 bytes is slower than slow
REALLY slow,, this only shows up writing several MB, you are writing 5G
Otherwise your command line looks good
I think an install resizes,, check (df) ,,if not, cfdisk (expand) and resize2fs on unmounted partition
(booted from SD), then fsck.ext4 to make sure all is well (df -h 58G)
--edit--
a little more elegant
xzcat pinebookpro-debian-desktop-mrfixit-191123.img,xz|dd of=/dev/mmcblk1 bs=1M status=progress
there is an image 1 month newer BTW,, pinebookpro-debian-desktop-mrfixit191226.img.xz
Thank you, WDT
Appreciates the good points, insights and suggestions particularly pertaining to disk checking. Never hurts to go the extra mile/km.
Good catch regarding the newer 191226 image.
Marshalling the courage. Thanks again.