Last active
September 21, 2017 02:52
-
-
Save chrisloweau/df0e664abf1959240ba49a501f0ec10f to your computer and use it in GitHub Desktop.
This script is used to create the 'Persistence' partition for Raspbian x86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEV=sda | |
parted /dev/$DEV --script mklabel gpt | |
parted /dev/$DEV --script mkpart persistence 0% 100% | |
mkfs.ext4 /dev/${DEV}1 | |
mkdir -p /media/pi/persistence | |
mount /dev/${DEV}1 /media/pi/persistence | |
chown pi /media/pi/persistence | |
echo / union > /media/pi/persistence/persistence.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment