Suggested Answer:See explanation below.
# fdisk /dev/sda p (check Partition table) n (create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions)
Enter - +2G t 8 I 82
W - partx -a /dev/sda partprobe mkswap /dev/sda8
Copy UUID - swapon -a vim /etc/fstab UUID=XXXXX swap swap defaults 0 0 (swapon -s)
fdisk /dev/sdX
n (new)
p (primary)
enter
+2G
t
82
wq
partprobe or reboot
free -m
mkswap /dev/sdX1
echo "/dev/sdX1 swap swap default 0 0"
swapon -a
free -m
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MichaelChapoco
3 weeks agolgu
2 years, 2 months agokitkat
1 year, 5 months ago