Last active
September 13, 2017 19:33
-
-
Save jaxxzer/a49ee64d17a20a273317a80669a6890d to your computer and use it in GitHub Desktop.
Shrink Pi image
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
In gparted, unmount the ext4, and resize the partition | |
$ sudo parted /dev/sdg -s print | |
Model: Generic Mass-Storage (scsi) | |
Disk /dev/sdg: 7948MB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Disk Flags: | |
Number Start End Size Type File system Flags | |
1 4194kB 47.2MB 43.0MB primary fat32 lba | |
2 47.2MB 3193MB 3146MB primary ext4 | |
$ sudo umount /dev/sdg*? | |
$ sudo dd if=/dev/sdg of=ardusub-raspbian-0.0.8.img bs=1M count=3194 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment