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)
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
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
Does anyone know if this is still valid for the Rehat 7 exam?
0
0
Try cfdisk
0
0