CORRECT TEXT Create a 2G swap partition which take effe…

CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original
swap partition.

CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original
swap partition.

A.
partx -a /dev/sda

B.
vim /etc/fstab

C.
mkswap /dev/sda8

D.
partx -a /dev/sda

Explanation:
# 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 theextended
partition is further divided into logical partitions) Enter +2G
tlW
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)



Leave a Reply 0

Your email address will not be published. Required fields are marked *