linux chpt hw 5
A device file _______________________. (Choose all that apply.)
-has no data section -displays a major and minor number in place of a file size
Given the following output from /etc/fstab, which 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
/, /proc, and swap
You plug a USB flash memory drive into a system that has two SATA hard disks. How will the partition on this USB flash memory drive be identified by Linux?
/dev/sda2
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 or False?
False
Character devices typically transfer data more quickly than block devices. True or False?
False
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?
Mount the filesystem and check the lost+found directory underneath the mount point.
The lvextend command can be used to add unused space within a volume group to an existing logical volume. True or 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?
Unmount the device from the directory.
What must you do to successfully run the fsck command on a filesystem?
Unmount the filesystem.
Which of the following statements regarding LVM structure is correct?
VGs are comprised of one or more PVs
Which command is used to display the amount of free space that exists on a filesystem?
df
What does the command dumpe2fs -h do?
displays the number of used and available inodes for an ext2/ext3/ext4 filesystem
What does the du -s /var command do?
displays the total size of the /var directory
Which command is used to format a partition on a hard disk drive with the ext4 filesystem?
e2mkfs -t ext4 device
Which of the following commands can only be used to create partitions on a GPT hard disk?
gdisk
Which command mounts all existing filesystems in /etc/fstab?
mount -a
You want to see the filesystems that are in use on the system. What command could you use? (Choose all that apply.) *cat /etc/mtab -ls /sys/block -df -T *cat /etc/fstab
not sure
Which command can be used to repair an XFS filesystem?
xfs_repair /dev/sdb1