lsblk to check your hdd
sudo fdisk /dev/sdX
Replace /dev/sdX
with the correct device name. Inside the fdisk
utility:
- Press
n
to create a new partition. - Choose the partition number, default is usually fine.
- Press
Enter
to accept the default starting and ending sectors. - Press
t
to change the partition type. - Enter
82
to set the partition type to "Linux swap". - Press
w
to 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