NOS-120 CHAPTER 5 UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS
Which of the following commands can only be used to a. gdisk
create partitions on a GPT hard disk?
a. gdisk
b. cfdisk
c. fdisk
d. parted
After a partition on a hard disk is formatted with a b. False
filesystem, all partitions on that hard disk drive must use
the same filesystem. True or False?
a. True b. False
You want to see the filesystems that are in use on the b. df -T
system. What command could you use? (Choose all that c. cat /etc/mtab
apply.)
a. cat /etc/fstab
b. df -T
c. cat /etc/mtab
d. ls /sys/block
, Jim has just installed two new SAS SSDs in his system. He c. Create one or more partitions on each of the SSDs.
properly installs the hardware in his machine. Before he e. Mount any partitions created on the two SSDs such that they are accessible by
can use them for data storage and retrieval, what must he the operating system.
do? (Choose all that apply.) f. Format any partitions created on the SSDs with a valid filesystem recognized by
a. Mount the two SSDs so they are accessible by the Linux.
operating system.
b. Mount a filesystem to each of 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.
Given the following output from /etc/fstab, which c. /, /proc, and swap
filesystems will be automatically checked on boot by the
fsck command?/dev/sda1 / ext4 defaults 1 1none /dev/pts
devpts gid=5,mode=620 1 0none /proc proc defaults 0
1none /dev/shm tmpfs defaults 1 0/dev/sdc2 swap swap
defaults 0 1/dev/dvd /media/dvd iso9660 noauto,ro 0 0
a. none, as fsck must be run manually for each filesystem
b. /, /dev/pts, and /dev/shm
c. /, /proc, and swap
d. all of them, as fsck is run automatically at boot for all
filesystems
A user mounts a device to a mount point directory and c. Unmount the device from the directory.
realizes afterward she needs files previously found within
the mount point directory. What should this user do?
a. Nothing; the files are lost and cannot ever be
accessed.
b. Nothing; the files could not have been there because
you can only mount to empty directories.
c. Unmount the device from the directory.
d. Run the fsck command to recover the file.
e. Look in the lost+found directory for the file.
Which command is used to display the amount of free d. df
space that exists on a filesystem?
a. fsck
b. quota
c. du
d. df
What must you do to successfully run the fsck command c. Unmount the filesystem.
on a filesystem?
a. Run the fsck command with the -u option to
automatically unmount the filesystem first.
b. Choose yes when warned that running fsck on a
mounted filesystem can cause damage.
c. Unmount the filesystem.
d. Ensure that the filesystem is mounted.
Which of the following commands can only be used to a. gdisk
create partitions on a GPT hard disk?
a. gdisk
b. cfdisk
c. fdisk
d. parted
After a partition on a hard disk is formatted with a b. False
filesystem, all partitions on that hard disk drive must use
the same filesystem. True or False?
a. True b. False
You want to see the filesystems that are in use on the b. df -T
system. What command could you use? (Choose all that c. cat /etc/mtab
apply.)
a. cat /etc/fstab
b. df -T
c. cat /etc/mtab
d. ls /sys/block
, Jim has just installed two new SAS SSDs in his system. He c. Create one or more partitions on each of the SSDs.
properly installs the hardware in his machine. Before he e. Mount any partitions created on the two SSDs such that they are accessible by
can use them for data storage and retrieval, what must he the operating system.
do? (Choose all that apply.) f. Format any partitions created on the SSDs with a valid filesystem recognized by
a. Mount the two SSDs so they are accessible by the Linux.
operating system.
b. Mount a filesystem to each of 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.
Given the following output from /etc/fstab, which c. /, /proc, and swap
filesystems will be automatically checked on boot by the
fsck command?/dev/sda1 / ext4 defaults 1 1none /dev/pts
devpts gid=5,mode=620 1 0none /proc proc defaults 0
1none /dev/shm tmpfs defaults 1 0/dev/sdc2 swap swap
defaults 0 1/dev/dvd /media/dvd iso9660 noauto,ro 0 0
a. none, as fsck must be run manually for each filesystem
b. /, /dev/pts, and /dev/shm
c. /, /proc, and swap
d. all of them, as fsck is run automatically at boot for all
filesystems
A user mounts a device to a mount point directory and c. Unmount the device from the directory.
realizes afterward she needs files previously found within
the mount point directory. What should this user do?
a. Nothing; the files are lost and cannot ever be
accessed.
b. Nothing; the files could not have been there because
you can only mount to empty directories.
c. Unmount the device from the directory.
d. Run the fsck command to recover the file.
e. Look in the lost+found directory for the file.
Which command is used to display the amount of free d. df
space that exists on a filesystem?
a. fsck
b. quota
c. du
d. df
What must you do to successfully run the fsck command c. Unmount the filesystem.
on a filesystem?
a. Run the fsck command with the -u option to
automatically unmount the filesystem first.
b. Choose yes when warned that running fsck on a
mounted filesystem can cause damage.
c. Unmount the filesystem.
d. Ensure that the filesystem is mounted.