Module 5 Flashcards

1
Q

What is the most common cause for a disk failure?

  • Bugs in the disk controller module
  • Poor manufacturing process
  • Improper shutdown
  • Not running defrag tool
A

Improper shutdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Reorder the steps to install a new disk drive on a Linux workstation.

  1. Install a device driver if not present
  2. Mount the device
  3. Create a partition
  4. Install a filesystem
  5. Attach a physical device
  6. Create a mount point if it doesn’t exist
A

5, 1, 3, 6, 2, 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which statement describes a device file? (Select three)

  • mknod command will create it
  • Does not have an associated data block
  • Exists under /boot directory
  • A file through which OS can read/write to the device through a device driver
A

mknod command will create it

Does not have an associated data block

A file through which OS can read/write to the device through a device driver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You can mount/unmount a device even if a user process is using the mount point.

True

False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which statements are true regarding the output below? (Select two)

A

sda2 is a block device

sda2 uses a device file identified by the major number 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you find out which filesystem the root partition uses? (Select two)

  • df -T
  • ls -l /
  • cat /etc/fstab
  • fstype
A

df -T

cat /etc/fstab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which one is NOT a component of LVM?

  • Physical Volume
  • Group Volume
  • Volume Group
  • Logical Volume
A

Group Volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What will fsck do if it cannot repair the bad blocks? (Select two)

  • Delete them
  • Flag them
  • Move them to “lost+Found” directory under the root directory
  • Move them to “lost+Found” directory under the mount point
A

Flag them

Move them to “lost+Found” directory under the mount point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Find the match.

  • sdc1
  • sda1
  • sdc2
  • sdb2
A

sdc1 1st primary partition on the 3rd SATA SSD:

sda1 1st primary partition on the 1st SATA SSD:

sdc2 2nd primary partition on the 3rd SATA SSD:

sdb2 2nd primary partition on the 2nd SATA SSD:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Standard partition can be extended only if an unallocated partition exists after it in contiguous manner.

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which command can be used to repair an XFS filesystem?

  • fsck -t xfs /dev/sdb1
  • e2fsck /dev/sdb1
  • fsck.xfs /dev/sdb1
  • xfs_repair /dev/sdb1
A

xfs_repair /dev/sdb1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

After a partition on a hard disk is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem.

True

False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

  • mount -f
  • mount -a
  • mount /etc/fstab
  • mount /etc/mtab
A

mount -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

  • fsck
  • quota
  • du
  • df
A

df

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

True

False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

  • Nothing; the files are lost and cannot ever be accessed.
  • Nothing; the files could not have been there because you can only mount to
    empty directories.
  • Unmount the device from the directory.
  • Run the fsck command to recover the file.
  • Look in the lost+found directory for the file.
A

Unmount the device from the directory.

17
Q

A 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?

  • Look in the root of the filesystem.
  • The system prompts the user for a target location when it comes across a file
    it cannot repair.
  • Mount the filesystem and check the lost+found directory underneath the
    mount point.
  • View the contents of the directory /lost+found.
A

Mount the filesystem and check the lost+found directory underneath the mount point.

18
Q

A device file _______________________. (Choose all that apply.)

  • has no inode section
  • has no data section
  • displays a major and minor number in place of a file size
  • has a fixed size of 300 kilobytes
A

has no data section

displays a major and minor number in place of a file size

19
Q

You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.)

  • cat /etc/fstab
  • df -T
  • cat /etc/mtab
  • ls /sys/block
A

df -T

cat /etc/mtab

20
Q

Which of the following statements are true? (Choose all that apply.)

  • Quotas can only limit user space.
  • Quotas can only limit the number of files a user can own.
  • Quotas can limit both user space and the number of files a user can own.
  • Hard limits can never be exceeded.
  • Hard limits allow a user to exceed them for a certain period of time.
  • Soft limits can never be exceeded.
  • Soft limits allow a user to exceed them for a certain period of time.
  • Either a hard limit or a soft limit can be set, but not both concurrently.
A

Quotas can limit both user space and the number of files a user can own.

Hard limits can never be exceeded.

Soft limits allow a user to exceed them for a certain period of time.