2017/05/22

在 ubuntu 中建立 swap


1. 建立 swap 檔
```sh
sudo fallocate -l 1G /data/swap
sudo chmod 600 /data/swap
sudo mkswap /data/swap
```

2. 編輯 /etc/fstab 加入系統啟動自動掛載
```sh
/data/swap none swap defaults 0 0
```

3. 自動掛載 fstab 設定的 swap
```sh
sudo swapon -a
```

4. 查詢 swap
```sh
swapon -s
# 或
free
```

1 則留言:

  1. 1976 marked the primary year 3D Computer Aided Design/Computer Aided Machining techniques had been obtainable. The tight tolerances, small dimensions, and want for precision leave little or no room for error when producing components for electronics. Many of the components have to be micromachined to fulfill the design requirements. Men’s Loafer Slippers Since a Swiss machine can complete multiple of} operations in a single cycle, could be} little need for guide labor to change components or adjust the work piece. Swiss CNC machining is a fast and price effective technique for top volume machining of small components in massive portions.

    回覆刪除