CH 3 Review Questions
1. What are common IRQs for RS-232 serial ports? (Select two.) A. 1 B. 3 C. 4 D. 8 E. 16 2. What tool would you use to disable a motherboard’s sound hardware if you don’t want to use it? A. The firmware. B. The alsactl utility. C. The lsmod command. D. The lspci program. E. None of the above; onboard sound devices can’t be disabled. 3. What is the purpose of udev? A. To aid in the development of software B. To unload Linux device drivers C. To load Linux device drivers D. To store devices’ BIOS configurations in files E. To manage the /dev directory tree 4. You’ve just installed Linux on a new computer with a single SATA hard disk. What device identifier will refer to the disk? A. /dev/sda B. /dev/mapper/disk1 C. /dev/hda D. C: E. /dev/sda or /dev/hda 5. Which files contain essential system information such as IRQs, direct-memory access channels, and I/O addresses? (Select three.) A. /proc/ioports B. /proc/ioaddresses C. /proc/dma D. /proc/interrupts E. /proc/hardware Review Questions 173 c03.indd 03/26/2015 Page 173 6. Typing fdisk -l /dev/sda on a Linux computer with an MBR disk produces a listing of four partitions: /dev/sda1, /dev/sda2, /dev/sda5, and /dev/sda6. Which of the following is true? A. The disk contains two primary partitions and two extended partitions. B. Either /dev/sda1 or /dev/sda2 is an extended partition. C. The partition table is corrupted; there should be a /dev/sda3 and a /dev/sda4 before /dev/sda5. D. If you add a /dev/sda3 with fdisk, /dev/sda5 will become /dev/sda6, and /dev/ sda6 will become /dev/sda7. E. Both /dev/sda1 and /dev/sda2 are logical partitions. 7. A new Linux administrator plans to create a system with separate /home, /usr/local, and /etc partitions, in addition to the root (/) partition. Which of the following best describes this configuration? A. The system won’t boot because critical boot-time files reside in /home. B. The system will boot, but /usr/local won’t be available because mounted partitions must be mounted directly off their parent partition, not in a subdirectory. C. The system will boot only if the /home partition is on a separate physical disk from the /usr/local partition. D. The system will boot and operate correctly, provided each partition is large enough for its intended use. E. The system won’t boot because /etc contains configuration files necessary to mount non-root partitions. 8. Which of the following directories is most likely to be placed on its own hard disk partition? A. /bin B. /sbin C. /mnt D. /home E. /dev 9. You discover that an MBR hard disk has partitions with type codes of 0x0f, 0x82, and 0x83. Assuming these type codes are accurate, what can you conclude about the disk? A. The disk holds a partial or complete Linux system. B. The disk holds a Windows installation. C. The disk holds a FreeBSD installation. D. The disk is corrupt; those partition type codes are incompatible. E. The disk holds a Mac OS X installation. 174 Chapter 3 ■ Configuring Hardware c03.indd 03/26/2015 Page 174 10. You run Linux’s fdisk and modify your partition layout. Before exiting the program, you realize that you’ve been working on the wrong disk. What can you do to correct this problem? A. Nothing; the damage is done, so you’ll have to recover data from a backup. B. Type w to exit fdisk without saving changes to disk. C. Type q to exit fdisk without saving changes to disk. D. Type u repeatedly to undo the operations you’ve made in error. E. Type t to undo all of the changes and return to the original disk state. 11. What does the following command accomplish? # mkfs -t ext2 /dev/sda4 A. It sets the partition table type code for /dev/sda4 to ext2. B. It converts a FAT partition into an ext2fs partition without damaging the partition’s existing files. C. Nothing; the -t option isn’t valid, and so it causes mkfs to abort its operation. D. It converts an ext2 filesystem to an ext4 filesystem. E. It creates a new ext2 filesystem on /dev/sda4, overwriting any existing filesystem and data. 12. Which of the following best summarizes the differences between Windows’s FDISK and Linux’s fdisk? A. Linux’s fdisk is a simple clone of Windows’s FDISK but written to work from Linux rather than from Windows. B. The two are completely independent programs that accomplish similar goals, although Linux’s fdisk is more flexible. C. Windows’s FDISK uses GUI controls, whereas Linux’s fdisk uses a command-line interface, but they have similar functionality. D. Despite their similar names, they’re completely different tools—the Windows FDISK command handles disk partitioning, whereas Linux’s fdisk formats floppy disks. E. The Windows FDISK command manages GPT disks, whereas Linux’s fdisk manages MBR disks. 13. What mount point should you associate with swap partitions? A. / B. /swap C. /boot D. /mem E. None of the above 14. Which of the following options is used with fsck to force it to use a particular filesystem type? A. -A B. -N C. -t Review Questions 175 c03.indd 03/26/2015 Page 175 D. -C E. -f 15. Which of the following pieces of information can df not report? A. How long the filesystem has been mounted B. The number of inodes used on an ext3fs partition C. The filesystem type of a partition D. The percentage of available disk space used on a partition E. The mount point associated with a filesystem 16. What is an advantage of a journaling filesystem over a conventional (non-journaling) filesystem? A. Journaling filesystems are older and better tested than non-journaling filesystems. B. Journaling filesystems never need to be checked with fsck. C. Journaling filesystems support Linux ownership and permissions; non-journaling filesystems don’t. D. Journaling filesystems require shorter disk checks after a power failure or system crash. E. Journaling filesystems record all transactions, enabling them to be undone. 17. To access files on a USB flash drive, you type mount /dev/sdc1 /media/flash as root. Which types of filesystems will this command mount? A. Ext2fs B. FAT C. HFS D. ReiserFS E. All of the above 18. Which of the following /etc/fstab entries will mount /dev/sdb2 as the /home directory at boot time? A. /dev/sdb2 reiserfs /home defaults 0 0 B. /dev/sdb2 /home reiserfs defaults 0 0 C. /home reiserfs /dev/sdb2 noauto 0 0 D. /home /dev/sdb2 reiserfs noauto 0 0 E. reiserfs /dev/sdb2 /home noauto 0 0 19. What filesystem options might you specify in /etc/fstab to make a removable disk (such as a USB flash drive) mountable by an ordinary user with a UID of 1000? (Select three.) A. user B. users C. owner D. owners E. uid=1000 176 Chapter 3 ■ Configuring Hardware c03.indd 03/26/2015 Page 176 20. What is the minimum safe procedure for removing a USB flash drive, mounted from /dev/ sdb1 at /media/usb, from a Linux computer? A. Type umount /media/usb, wait for the command to return and disk-activity lights to stop, and then unplug the drive. B. Unplug the drive, and then type umount /media/usb to ensure that Linux registers the drive’s removal from the system. C. Unplug the drive, and then type sync /dev/sdb1 to flush the caches to ensure that problems don’t develop. D. Type usbdrive-remove, and then quickly remove the disk before its activity light stops blinking. E. Type fsck /dev/sdb1 , wait for the command to return and disk-activity lights to stop, and then unplug the drive.