nerdexam
CompTIA

SK0-004 · Question #146

A technician has connected a previously formatted ext4 eSATA drive to a Linux server. Given the following output: Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 382818…

The correct answer is D. mount /dev/sdbl /data/drive0. The Linux mount command attaches a block device partition to a directory in the filesystem tree. To make the ext4 partition /dev/sdb1 accessible at /data/drive0, the technician runs mount /dev/sdb1 /data/drive0.

Server administration

Question

A technician has connected a previously formatted ext4 eSATA drive to a Linux server. Given the following output:

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 ?512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0009f31a Device Boot Start End Blocks Id System /dev/sdb1 * 20481 953525168 976761560 83 Linux Which of the following commands should the technician use to make the partition available under /data/drive0?

Options

  • Afdformat -type Linux /dev/sdbl -d /data/drive0
  • Bext2 0x0009f31a /data/drive0
  • Cnet use /data/drive0 /dev/sdb
  • Dmount /dev/sdbl /data/drive0
  • Efdisk -l /data/drive0

How the community answered

(19 responses)
  • B
    5% (1)
  • D
    95% (18)

Why each option

The Linux mount command attaches a block device partition to a directory in the filesystem tree. To make the ext4 partition /dev/sdb1 accessible at /data/drive0, the technician runs mount /dev/sdb1 /data/drive0.

Afdformat -type Linux /dev/sdbl -d /data/drive0

fdformat is a utility for low-level formatting of floppy disk devices and cannot be used to mount or manage eSATA hard drive partitions.

Bext2 0x0009f31a /data/drive0

ext2 is a Linux filesystem type designation, not an executable command, and the syntax shown does not correspond to any valid Linux utility for mounting or accessing a partition.

Cnet use /data/drive0 /dev/sdb

net use is a Windows command-line tool for mapping network shares and drive letters and is not available on Linux systems.

Dmount /dev/sdbl /data/drive0Correct

The mount command is the standard Linux utility for attaching a formatted partition to a mount point so its contents become accessible within the directory tree. Running mount /dev/sdb1 /data/drive0 links the already-formatted ext4 partition identified in the fdisk output to the /data/drive0 path without requiring any reformatting. After the command completes, users and processes can read and write the drive's data through that mount point.

Efdisk -l /data/drive0

fdisk -l reads and displays the partition table of a disk for informational purposes but does not mount or make any partition accessible to the filesystem.

Concept tested: Mounting a Linux ext4 partition with the mount command

Source: https://man7.org/linux/man-pages/man8/mount.8.html

Topics

#Linux mount#ext4#eSATA#disk partitioning

Community Discussion

No community discussion yet for this question.

Full SK0-004 Practice