Module 5 Flashcards
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
Improper shutdown
Reorder the steps to install a new disk drive on a Linux workstation.
- Install a device driver if not present
- Mount the device
- Create a partition
- Install a filesystem
- Attach a physical device
- Create a mount point if it doesn’t exist
5, 1, 3, 6, 2, 4
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
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
You can mount/unmount a device even if a user process is using the mount point.
True
False
False
Which statements are true regarding the output below? (Select two)
sda2 is a block device
sda2 uses a device file identified by the major number 8
How do you find out which filesystem the root partition uses? (Select two)
- df -T
- ls -l /
- cat /etc/fstab
- fstype
df -T
cat /etc/fstab
Which one is NOT a component of LVM?
- Physical Volume
- Group Volume
- Volume Group
- Logical Volume
Group Volume
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
Flag them
Move them to “lost+Found” directory under the mount point
Find the match.
- sdc1
- sda1
- sdc2
- sdb2
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:
Standard partition can be extended only if an unallocated partition exists after it in contiguous manner.
True
False
True
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
xfs_repair /dev/sdb1
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
False
Which command mounts all existing filesystems in /etc/fstab?
- mount -f
- mount -a
- mount /etc/fstab
- mount /etc/mtab
mount -a
Which command is used to display the amount of free space that exists on a filesystem?
- fsck
- quota
- du
- df
df
The lvextend command can be used to add unused space within a volume group to an existing logical volume.
True
False
True
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.
Unmount the device from the directory.
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.
Mount the filesystem and check the lost+found directory underneath the mount point.
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
has no data section
displays a major and minor number in place of a file size
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
df -T
cat /etc/mtab
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.
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.