How to Migrate from Swap Partition to Swap File in Ubuntu

Linux
Linux
44 بار بازدید - 7 سال پیش - This video will show you
This video will show you how to create a swap files and remove Swap partitions from Ubuntu Linux. Ubuntu SwapFaq: https://help.ubuntu.com/community/SwapFaq HOW TO ADD A SWAP FILE TO UBUNTU 1. sudo dd if=/dev/zero of=/swapfile bs=1M count=(size in MB) 2. sudo e4defrag /swapfile (Spinning drives only!) 3. sudo chmod 600 /swapfile 4. sudo mkswap /swapfile MOUNTING THE SWAP FILE 1. sudo cp /etc/fstab /etc/fstab.old 2. sudo nano /etc/fstab 3. add: "/swapfile none swap sw 0 0" to bottom of file. 4. Remove
7 سال پیش در تاریخ 1396/06/18 منتشر شده است.
44 بـار بازدید شده
... بیشتر