Skip to content

Instantly share code, notes, and snippets.

@madsonic
Last active November 26, 2019 07:41
Show Gist options
  • Save madsonic/d3396d09c62b1ef42378ef4d52ca5e68 to your computer and use it in GitHub Desktop.
Save madsonic/d3396d09c62b1ef42378ef4d52ca5e68 to your computer and use it in GitHub Desktop.
sudo du -Sh | sort -r -h | head -n 100
sudo growpart <device name> <partition number>
sudo resize2fs <device name>
# make file system
sudo mkfs.ext4 -m 0 -F -E lazy_itable_init=0,lazy_journal_init=0,discard <path>
# check for formmated disk
blkid
# add to fstab for automount when system startup
echo UUID=`sudo blkid -s UUID -o value <path>` <path> ext4 discard,defaults,nofail 0 2 \
| sudo tee -a /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment