A Linux server administrator needs to make a new storage volume accessible to the OS and users. The administrator has physically attached the new disk, created a partition named /dev/sdc1, and formatted it with the ext4 filesystem. The administrator also created a directory at /mnt/data to serve as the access point. However, files cannot be read from or written to the /mnt/data directory. Which of the following commands must the administrator run NEXT to make the storage volume accessible at the specified location?
The correct answer is to use the mount command. In Linux, after a block device is partitioned and formatted, it must be mounted to a directory in the filesystem tree before it can be accessed. The command mount /dev/sdc1 /mnt/data attaches the filesystem on the /dev/sdc1 partition to the /mnt/data directory, making the storage accessible through that path.
mkfs.ext4 /dev/sdc1 is incorrect because the scenario states the partition has already been formatted with the ext4 filesystem. Running this command again would reformat the partition and erase any data on it.
fdisk /dev/sdc is incorrect because this utility is used to create and manage disk partition tables. The scenario specifies that the partition has already been created, so this step is complete.
net use Z: \\server\share is incorrect as it is a Windows command used to map network shares to a drive letter. It is not used for mounting local partitions on a Linux system.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is the `mount` command necessary in Linux when attaching new storage?
Open an interactive chat with Bash
What are some common directories used for mounting storage in Linux?
Open an interactive chat with Bash
What is the difference between formatting a partition and mounting it in Linux?