增加 Amazon Linux 2 AMI /tmp 大小
Increasing Amazon Linux 2 AMI /tmp size
我正在尝试在 Amazon linux AMI EC2 微型实例上安装 tensorflow,但即使磁盘是空的,我仍然收到 EnvironmentError: [Errno 28] No space left on device
。
在 ubuntu 服务器上,我使用命令 sudo mount -o remount,size=4G,noatime /tmp
解决了这个增加 /tmp 大小的问题,但是这个命令在 Amazon Linux 上失败了,告诉我 /tmp 根本没有挂载。
如何增加 Amazon Linux 2 上的 /tmp 大小?
谢谢!
以下内容有助于实现 tmp space。
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
我正在尝试在 Amazon linux AMI EC2 微型实例上安装 tensorflow,但即使磁盘是空的,我仍然收到 EnvironmentError: [Errno 28] No space left on device
。
在 ubuntu 服务器上,我使用命令 sudo mount -o remount,size=4G,noatime /tmp
解决了这个增加 /tmp 大小的问题,但是这个命令在 Amazon Linux 上失败了,告诉我 /tmp 根本没有挂载。
如何增加 Amazon Linux 2 上的 /tmp 大小?
谢谢!
以下内容有助于实现 tmp space。
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