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.

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

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)



Leave a Reply 4

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


steven kunjachan

steven kunjachan

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

retard

retard

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)

c

c

Does anyone know if this is still valid for the Rehat 7 exam?

Vinh Nguyen

Vinh Nguyen

Try cfdisk