PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

Answer: A

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
t
l
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)

4 Comments on “CORRECT TEXT Create a 2G swap partition which take effect automatically at boot-start, and it should not affec

  1. steven kunjachan says:

    fdisk /dev/sda
    follow prompts and create primary partition
    when you get toi size enter +2G
    make sure to set type to swap (I believe its 82)

    once complete

    mkswap -L NEWSWAP /dev/sda1
    swapon -L NEWSWAP

    vim /etc/fstab
    LABEL=NEWSWAP swap defaults 0 0




    0



    0
  2. retard says:

    once you enter the hex digit of 82, type “p” to get a listing of the partition table. The disk you will run mkswap on should be the last entry that appears (which would not have appeared before from the fdisk output)




    0



    0

Leave a Reply