Skip to content

Instantly share code, notes, and snippets.

@yossioo
Last active January 6, 2020 11:02
Show Gist options
  • Save yossioo/b94bb008bd90f80f05ec53f62d64b483 to your computer and use it in GitHub Desktop.
Save yossioo/b94bb008bd90f80f05ec53f62d64b483 to your computer and use it in GitHub Desktop.
# This script is not executable :) Use it only for reference
# 30 GB:
truncate -s $((1024*30))M image.img
/sbin/mkfs -t ext4 -q image.img
mkdir ~/image_contents
sudo mount -o loop image.img ~/image_contents
sudo chown -R $USER:$USER ~/image_contents
sudo umount ~/image_contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment