菜单

TK1初学软件教程-实现扩展swap交换区大小(十九)

2018年5月18日 - TK1初学软件教程

TK1初学软件教程-实现扩展swap交换区大小

说明:

步骤:

cd ~
git clone https://gist.github.com/jetsonhacks/b80d6130066e3f351bc8
cd b80d6130066e3f351bc8
#!/bin/bash
#NVIDIA Jetson TK1
#Create a swapfile for Ubuntu at the current directory location
fallocate -l 4G swapfile
#List out the file
ls -lh swapfile
# Change permissions so that only root can use it
chmod 600 swapfile
#List out the file
ls -lh swapfile
#Set up the Linux swap area
mkswap swapfile
#Now start using the swapfile
swapon swapfile
#Show that it's now being used
swapon -s
chmod +x createSwapFile.sh
sudo ./createSwapFile.sh
$ sudo gedit /etc/fstab
/media/ubuntu/JetsonSSD/swapfile none swap sw 0 0

参考:

发表评论