ayufan-pine64 / linux-build

Pine64 Linux build scripts, tools and instructions (based on Longsleep work)
MIT License
154 stars 36 forks source link

install_to_emmc.sh burns home folder #16

Open jordanjay29 opened 7 years ago

jordanjay29 commented 7 years ago

It'd be nice if the home folders could be preserved (or copied from the sdcard) during the install script so that settings and documents can be retained without a messy backup and restoration process.

nickbreen commented 6 years ago

Having a separate (/dev/mmcblk0p3 ?) partition created and preserved during a flash would help.

There'd need to be some rule-of-thumb to size it appropriately compared to the root partition and the size of the emmc or sdcard.

I'd also considered mounting the sdcard as /home.

nickbreen commented 6 years ago

For the pinebook, mounting the sdcard as /home doesn't work correctly with suspend/resume as the kernel (deliberately) assumes that any sdcard present on resume may not be the one that was present when suspended.

I did find that using sfdisk rather than fdisk in the installation process can make for a more reliable partitioning process as it's designed for non-interactive partitioning.