Last active
November 26, 2019 07:41
-
-
Save madsonic/d3396d09c62b1ef42378ef4d52ca5e68 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo du -Sh | sort -r -h | head -n 100 |
This file contains hidden or 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
sudo growpart <device name> <partition number> | |
sudo resize2fs <device name> |
This file contains hidden or 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
# 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