Workbook 3: Linux Filesystem Management Flashcards
How does the Linux kernel refer to the 7th partition on the drive /dev/sdc? [6]
/dev/sdc7
What two items does the MBR contain and how large is the MBR? [8]
The MBR is 512 bytes. It contains the bootloader and the partition table.
What is a bootloader’s function? [8]
When booting, BIOS passes control to the bootloader, which is then responsible for loading and passing control to the appropriate operating system.
For how many partitions can the partition table store information? [8]
This small amount of space records information for up to 4 partitions, referred to as primary partitions.
How many primary partitions can each disk be divided into? [8]
Each disk can be divided into up to four primary partitions
What is the function of an extended partition? [8]
The extended partition is used as a container for storing more partitions, referred to as logical partitions
What is a logical partition? [8]
Within the extended partition, multiple logical partitions may be created.
How does Linux always begin counting the first logical partition? [8]
first logical partition as partition number 5, even if not all 4 primary partitions are used.
Give a command line that lists all known partitions on a disk. [9]
With the -l command line switch, fdisk will list partition tables for all known disks.
What is the partition Id for a Linux ext2 or ext3 filesystem? [11]
x
What is the partition Id for a Linux swap partition? [11]
x
Give a command line to edit a disk’s partition table. [12]
When using fdisk to edit a partition table, the fdisk command should be called with a single argument: the device node of the disk to be edited.
Give two ways to force a Linux kernel to reread a disk’s partition table. [17]
Rebooting will cause the change to take affect, but so will running a relatively newer called partprobe.
Which proc filesystem lists all known partitions? [18]
/proc/partitions lists all known partitions, as well as sizes (in blocks of 1024 bytes) and activity statistics.
What is Linux’s native filesystem? [27]
ext2