XK0-005 · Question #10410
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…
The correct answer is B. mkfs.ext4 /dev/sdc1 F. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab. "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…
Question
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
How the community answered
(66 responses)- A8% (5)
- B85% (56)
- C5% (3)
- D2% (1)
- E2% (1)
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.