lsblk to check your hdd
sudo fdisk /dev/sdX
Replace /dev/sdX with the correct device name. Inside the fdisk utility:
- Press
nto create a new partition. - Choose the partition number, default is usually fine.
- Press
Enterto accept the default starting and ending sectors. - Press
tto change the partition type. - Enter
82to set the partition type to "Linux swap". - Press
wto write the changes to the disk.
sudo mkswap /dev/sdX1
sudo vim /etc/fstab
add /dev/sdX1 none swap sw 0 0
verify swap sudo swapon --show
Tidak ada komentar:
Posting Komentar