Advertisement
zmatt

expand sd card filesystem

Dec 7th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. # expand partition 1 of sd card to max size:
  2. echo ,+ | sudo sfdisk --no-reread --no-tell-kernel /dev/mmcblk0 -N 1
  3.  
  4. # tell kernel to recheck partitions
  5. sudo partprobe /dev/mmcblk0
  6.  
  7. # expand filesystem to fit partition:
  8. sudo resize2fs /dev/mmcblk0p1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement