Created
March 4, 2020 06:49
-
-
Save KAMEDAkyosuke/86c5c46d408af7cd7a97d72549b0ae01 to your computer and use it in GitHub Desktop.
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
target_end=$(($(cat "/sys/block/mmcblk0/size") - 1)) | |
sudo parted -m /dev/mmcblk0 u s resizepart 2 $target_end | |
sudo resize2fs /dev/mmcblk0p2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment