Chapter 5 Review Questions

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

You plug a USB flash drive into a system that has two SATA hard disk drives. How will the partition on this USB flash drive be identified by Linux?

/dev/sdc1; The first and second SATA hard disk drive will be recognized as sda and sdb, respectively. Thus, a USB flash drive will take the next available device file (/dev/sdc) and the first partition on that drive will be /dev/sdc1.

After a partition on a storage device is formatted with a filesystem, all partitions on that storage device must use the same filesystem (TRUE/FALSE)

FALSE;Each partition on a storage device can use a different filesystem, if desired.

What does the du -hs /var command do?

displays the total size of the /var directory; The du command displays disk usage by directory. The -h option displays this usage in a human-readable format, while the -s option shows a summary of the total directory size.

Which command is used to format a partition on a hard disk drive with the ext4 filesystem?

e2mkfs -t ext4 device

Which command mounts all existing filesystems in /etc/fstab?

mount -a

Which command can be used to repair an XFS filesystem?

xfs_repair /dev/sdb1

Which of the following statements regarding LVM structure is correct

Volume groups (VGs) are pools of storage that are made up of individual physical volumes (PVs). Logical volumes (LVs) are created from the free space within VGs.

user runs the fsck command with the -f option on an ext4 filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair?

Mount the filesystem and check the lost+found directory underneath the mount point; Any files that the fsck command cannot repair are moved to the lost+found directory on the filesystem itself.

Which command is used to display the amount of free space that exists on a filesystem?

The df command displays the amount of free and used space on each mounted filesystem.

user mounts a device to a mount point directory and realizes afterward they need files previously found within the mount point directory. What should this user do?

Unmount the device from the directory. Mounting a filesystem to a directory is nondestructive as it merely redirects users in that directory to the root of a filesystem on a device. After a device is unmounted from a directory, users will be able to access the original files and subfolders within that directory.

What must you do to successfully run the fsck command on a filesystem?

Unmount the filesystem

The lvextend command can be used to add unused space within a volume group to an existing logical volume.

You can use the lvextend command to extend the size of a logical volume, provided there is sufficient free space available within a volume group.

You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.) a. cat /etc/fstab b. df -hT c. cat /etc/mtab d. ls /sys/block

b. df -hT c. cat /etc/mtab

a device file shows what things

displays a major and a minor number in a place of a file size (and shows no data section)

What does the command df -i do?

displays the number of used and available inodes on each mounted filesystem. The -i option to the df command displays free and used inodes for each mounted filesystem.

Jaime has just installed two new SAS SSDs in his system. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? (Choose all that apply.) a. Mount the two SSDs so they are accessible by the operating system. b. Mount a filesystem to each of the SSDs. c. Create one or more partitions on each of the SSDs. d. Use the vi editor to edit /etc/mtab and create an entry for the SSDs. e. Mount any partitions created on the two SSDs such that they are accessible by the operating system. f. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.

C, E, F. After installing a new storage device, you must create at least one or more partitions on it, format the partitions with a filesystem, and then mount the filesystems to a mount point directory under the root directory (/).

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? /dev/sda1 /boot ext4 defaults 1 1 /dev/sda2 swap swap defaults 1 0 /dev/sda3 / ext4 defaults 0 1 /dev/sda4 /var ext4 defaults 1 0 /dev/sda1 /home ext4 defaults 0 1 /dev/sr0 /media/dvd iso9660 noauto,ro 0 0

anything with a 1 in the 6th field.

Character devices typically transfer data more quickly than block devices. t/f

false;Character devices typically transfer data more quickly than block devices.

Which of the following commands can only be used to create partitions on a GPT storage device?

gdisk


Ensembles d'études connexes

Constructing Sentences/Phrase/Clause

View Set

BIO 113 - Chapter 3, Part 2 Study Set

View Set

Chem 2A Ch. 3 Atoms and the Periodic Table

View Set

Macro Econ Study Guide Test 1 (MindTap Quizzes/Homework)

View Set

Lewis - Male Reproductive Problems Practice Questions - Week 6 (copy)

View Set

Thinking critically with psychological science

View Set

DELIKTI. PERSONISKIE AIZSKĀRUMI UN MANTAS BOJĀJUMI.

View Set

AMERICAN GOV'T MIDTERM EXAM PRACTICE

View Set