O'Reilly logo

CompTIA® Linux+ Certification, Powered by LPI, Student Manual by Axzo Press

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

744 CompTIA Linux+ Certification, Powered by LPI
Unit summary: System configuration
Topic A In this topic, you learned that disk drives attach to either the IDE/ATA or SCSI bus on
your computer. Linux uses device files to represent the disk drive itself and the
partitions it contains. You used fdisk and mkfs to define partitions and create file
systems usable by Linux. You modified the fstab file to mount the volumes when you
boot your computer. You also mounted a virtual file system—an ISO file representing
the contents of a CD-ROM disc—and used the files it contained.
Topic B In this topic, you learned how to manage file systems. You determined how much disk
space was used and available with both command-line and GUI tools. You also learned
how to check ext-based file systems with the e2fsprogs command. And you learned
how to do the same for xfs-formatted disks with XFS related commands.
Topic C In this topic, you learned that disk quotas limit the amount of disk space users or
groups may use. You enabled quotas on a partition and set quota limits. You learned
about disk arrays and the various RAID levels. Finally, you examined logical volume
management and the benefits of LVM.
Topic D In this topic, you learned that files in the /dev directory represent the devices in your
system. You used some of the special devices, such as /dev/null and /dev/random. You
then viewed the devices on your computer’s USB and PCI buses.
Review questions
1 In terms of hard drives, what is a cylinder?
A logical collection of all the tracks at a given distance from the axis.
2 What is the device name assigned to the second IDE/ATA hard drive on your
system?
/dev/hdb
3 In Linux, a partition containing an ext2 or ext3 file system will have a partition type
ID of ________.
83
4 In Linux, a swap partition will typically have a partition type ID of ________.
82
5 True or false? The second partition on the first SCSI hard drive is /dev/hds2.
False. It is /dev/sda2
6 Linux requires a minimum of ________ partitions.
Two: the root and swap partitions
7 Which utility or utilities would you use to define new partitions on a hard drive?
A fdisk
B GParted
C mkfs
D partdef
8 True or false? GParted is available for Windows.
True, in the form of a bootable “live” CD.
System configuration 745
9 What command would you use to format an ext3 file system on the second partition
on the first IDE hard drive on your system?
mkfs -t ext3 /dev/hda2
10 What XFS-specific command do you use to gather information about an XFS file
system?
xfs_info
11 When might you want to mount a virtual file system?
When you want to use a CD-ROM disc image (.iso) file without burning it to an optical disc first.
12 In BSD they’re called virtual node devices. In SunOS, they’re lofi devices. What are
these devices called in Linux?
loop devices (not loopback devices)
13 You have set a soft limit quota of 50 MB. Will a user be able to save a 60 MB file to
that volume?
Yes, unless you have also set a hard limit that prevents it.
14 After configuring volume support for quotas and turning on quotas with quotaon,
you must set usage limits by using the ________ command.
A quotaed
B setquota
C GQuota
D edquota
15 True or false? To maximize swap performance, you should put swap on its own
partition on the same drive as your root partition.
False. For maximum performance, put swap on its own drive on its own disk controller.
16 Which RAID level is also known as duplexing?
RAID level 1, in particular when using two disk controllers
17 Compared to RAID level 3, does RAID level 5 perform better or worse on write
operations?
better
18 What command do you use to create a logical volume group from a set of physical
volumes?
vgcreate
19 True or false? In Linux, all devices are accessed as if they were files.
True
20 What device file is associated with the first floppy disk on a system?
/dev/fd0
21 What is the purpose of the /dev/lp0 device file?
It represents the first parallel port, typically associated with a printer.
22 True or false? No file is present in the /dev directory to represent an integrated
peripheral that you disable in the BIOS
True

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required