Ch. 5 Review

Ace your homework & exams now with Quizwiz!

A device file ______. a. has no size b. has a fixed size of 300 kilobytes c. has no inode section d. displays a major and minor number in place of a file size

Has no data section d.displays a major and minor number in place of a file size

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

True

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? /dev/sda1 / ext4 defaults 1 1 none /dev/pts devpts gid=5,mode= 620 1 0 none /proc proc defaults 0 1 none /dev/shm tmpfs defaults 1 0 /dev/sdc2 swap swap defaults 0 1 /dev/dvd /media/dvd iso 9660 noauto,ro 0 0 /dev/fd0 /media/floppy auto noauto 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

/,/dev/pts and dev/shm

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? a. /dev/sdb1 b. /dev/sda1 c. /dev/sda2 d. /dev/sdc1

/dev/sdc1

After a partition on a hard disk drive 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 -a option on a filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair? A user runs the fsck command with the -a option on a filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair? a. The system prompts the user for a target location when it comes across a file it cannot repair. b. View the contents of the directory /lost+found. c. Mount the filesystem and check the lost+found directory underneath the mount point. d. Look in the root of the filesystem.

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

Which of the following statements are true? a. Hard limits allow a user to exceed them for a certain period of time. b. Quotas can limit both user space and the number of files a user can own. c. Quotas can only limit user space. d. 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.

What does the du /var command do? a. shows the size of all directories within the /var directory b. dumps the /var directory c. shows the users connected to the /var directory d. displays the amount of free space in the /var directory

Shows the size of all directories within the /var directory (FROM TEST displayes amount of free space in /var directory)

A user mounts a device to a mount point directory and realizes afterward that there are files previously found within the mount point directory that are needed. What would this user do? a. Nothing; the files are lost and cannot ever be accessed. b. Unmount the device from the directory. c. Run the fsck command to recover the file. d. Nothing; the files could not have been there as you can only mount to empty directories. e. Look in the lost+found directory for the file.

Unmount the device from the directory

You find that a device file in the /dev directory has become corrupted. You know that this device is /dev/tty3 and that it is a character device file. What should you do?

Use the /dev/MAKEDEV command to re-create the file

Jim has just purchased two new SCSI hard disk drives and a controller card for them. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? a. Mount a filesystem to each of the hard disk drives. b. Mount any partitions created on the two hard drives such that they are accessible by the operating system. c. Use the vi editor to edit /etc/mtab and create an entry for the controller card and the hard disk drives. d. Mount the two hard drives so they are accessible by the operating system. e. Remove the format of any partitions created with a valid filesystem recognized by Linux. f. Use the btrfs command to create one or more partitions on each of the hard disk drives.

Use the fdisk command to create one or more partitions on each of the hard disk drives mount any partitions created on the two hard drives so that they are accessible by the operating system Format any partitions created with a valid filesystem recognized by Linux (FROM TEST Mount any partitions created on the two hard drives such that they are accessible by the operating system)

Which of the following statements regarding LVM structure is correct? a. VGs are comprised of one or more PVs b. PVs are collections of VGs c. LVs are created from the free space available within PVs d. PVs use the space within LVs to create VGs

VGs are composed of one or more PVs

You want to see the filesystems that are presently in use on the system. What command could you use? a. cat /etc/fstab b. ls -l /etc/fstab c. cat /etc/mtab d. ls -l /etc/fstab

cat /etc/mtab

Which command is used to display the amount of free space that exists on a filesystem? a. du b. df c. quota d. fsck

df

What does the command dumpe2fs -h do? a. is not a valid command b. displays the number of inodes used and available in an ext2 filesystem c. backs up an ext2 filesystem d. dumps an ext2 filesystem

displays the number of inodes used and available in an ext2 filesystem

Which command is used to format a partition on a hard disk drive with the ext4 filesystem? a. format_ext4 device b. e2mkfs -t ext4 device c. ext4mkfs device d. makeext4FS device

mke2fs -t ext4 device FROM TEST e2mkfs -t ext4 device

Which command mounts all existing filesystems in /etc/fstab? a. mount /etc/fstab b. mount -f c. mount -a d. mount /etc/mtab

mount -a

Which of the following commands can be used to create partitions on either a MBR or GPT hard disk? a. parted b. gdisk c. fdisk d. cdskck

parted

The first floppy drive on the system is not responding. You enter the file /dev/fd0 command and receive the following output. What is the problem? [root@server1 root]# file /dev/fd0 /dev/fd0: ASCII text [root@server1 root]# a. The device file has become corrupt. b. The floppy drive is seen as a character device. c. There is no floppy disk in the drive. d. The floppy drive cable has come loose.

the device file has become corrupt

What must you do to successfully run the fsck command on a filesystem? a. Choose yes when warned that running fsck on a mounted filesystem can cause damage. b. Unmount the filesystem. c. Run the fsck command with the -u option to automatically unmount the filesystem first. d. Ensure that the filesystem is mounted.

umount the filesystem


Related study sets

Psych Nursing Exam 2 Review (Ch: 3, 4, 10, 22, 24, 28, 32, 35, 36)

View Set

Part 2: The Strange Case of Dr. Jekyll and Mr. Hyde: Plot Development and Conflict Quiz

View Set

Effects of Aging on the Nervous System

View Set