Skip to content

Instantly share code, notes, and snippets.

@TomTasche
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomTasche/9206307 to your computer and use it in GitHub Desktop.
Save TomTasche/9206307 to your computer and use it in GitHub Desktop.
#replace count=1024 with the number of MB (!) you want to grow the image file
dd if=/dev/zero bs=1024k count=1024 >> my_loop_image_file
e2fsck -f my_loop_image_file
resize2fs my_loop_image_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment