Increasing Amazon Linux 2 AMI /tmp Size

cd # change to your home directory
fallocate -l 20G mydrive.img # create the virtual drive file
mkfs -t ext3 mydrive.img # format the virtual drive
sudo umount /tmp # unmount the /tmp
sudo mount -t auto -o loop mydrive.img /tmp # mount the virtual drive

 

Leave a Reply

Your email address will not be published. Required fields are marked *