XK0-005 · Question #460
XK0-005 Question #460: Real Exam Question with Answer & Explanation
The correct answer is B: mkfs.ext4 /dev/sdc1. "modify the /etc/fstab text file to automatically mount the new partition by opening it in an editor and adding the following line: /dev/ xxx 1 /data ext4 defaults 1 2 where xxx is the device name of the storage device" To configure a new filesystem that needs the capability to b
Question
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)
Options
- Adf -h /data
- Bmkfs.ext4 /dev/sdc1
- Cfsck /dev/sdc1
- Dfdisk -l /dev/sdc1
- Eecho "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
- Fecho "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
Explanation
"modify the /etc/fstab text file to automatically mount the new partition by opening it in an editor and adding the following line: /dev/ xxx 1 /data ext4 defaults 1 2 where xxx is the device name of the storage device" To configure a new filesystem that needs the capability to be mounted persistently across reboots, two commands are needed: mkfs.ext4 /dev/sdc1 and echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab. The first command creates an ext4 filesystem on the device /dev/sdc1, which is the partition that will be used for the new filesystem. The second command appends a line to the /etc/fstab file, which is the configuration file that controls persistent mount points of filesystems. The line specifies the device name, the mount point (/data), the filesystem type (ext4), the mount options (defaults), and the dump and pass values (0 0).
Topics
Community Discussion
No community discussion yet for this question.