03-16-2020, 04:37 PM
(This post was last modified: 03-17-2020, 09:49 PM by buffer.
Edit Reason: tried it
)
(03-16-2020, 04:17 PM)MartijnBraam Wrote:(03-16-2020, 03:22 PM)buffer Wrote: That's cool but you could also just flash chosen OS to the SD card, boot up the SD card, open a terminal and run this command:
dd if=/dev/mmcblkX of=/dev/mmcblkY bs=1M
and then resize partition as described in wiki
https://wiki.pine64.org/index.php/PinePh...on_to_eMMC
unless this tool is for people allergic to command line
In that case you're copying a mounted filesystem, which usually isn't a good idea.
Point taken. Bad things can happen...
https://unix.stackexchange.com/questions...nted-risks
https://superuser.com/questions/396800/i...booted-off
I mistakenly assumed that using dd was a similar process to what goes on when live distros are booted, to install to an internal drive. I haven't looked closely enough at what happens there, I would like to run commands to reproduce the same effect, perhaps the tool you've made gets us there...
Edit: IT DOES! It's like a barebones Clonezilla for phones. The image is less than 50 MB. Could install this on a tiny cheap micro SD card and pop it in any time I want to change OS. No need to update it either...
*.*.* PinePhone BraveHeart edition w/ distro: Debian + Phosh // GuixOS, Debian, Arch // pocket linux enthusiast // washed up sysadmin *.*.*