Workbook 3: Linux Filesystem Management Flashcards
Every filesystem is tied to an
Existing directory (mount point)
In /etc/fstab, what is the third column for?
The filesystem to use
What block sizes does the mke2fs command choose by default?
1,000 or 4,000
What is the advantage of vfat over msdos
Allows long filenames
What command is used to initialize swap space
mkswap
What is the msdos filesystem
FAT filesystem used by DOS and Windows
A Linux filesystem requires everything in the directory tree to have
Dentry, Inode, Data
In /etc/fstab, what is the fifth column for?
Dump
What command is used to list partitions
fdisk -l
Where are primary partition properties recorded
MBR
What three filesystems are supported by Linux
ext2, ext3, ext4, msdos, vfat, nfs, smbfs, iso9660, proc
What is the purpose of the nfs file system?
A network filesystem to share files between linux and unix macines
What partition ID is used for swap space
82
What is the primary difference between the ext3 and ext2 filesystems?
Journaling
You realize that you’re an idiot and enabled swap on the wrong drive, how do you fix it?
- swapoff
- dont be an idiot, idiot.
What command is used for partitioning a disk
fdisk
What does ext4 uses instead of traditional blocks
Extents
Every filesystem has a
Root directory
What command is used to activate swap space
swapon
In /etc/fstab, what is the sixth column for?
What order to ‘fsck’ing check those disks in.
Why would you ever spend the amount of time required to directly specify the number of inodes when creating a filesystem?
When you will have a lot (like a lot) of small files
Which partition could function as the machine’s only filesystem
The root partition
What is the filesystem associated with compact disks?
iso9660
A Linux filesystem is a structure that organized
Raw data on a disk
Is / a mount point?
Yep, mounted by the kernel during startup.
Give three equivalent command lines that initialize the /dev/hda6 partition with an ext2 filesystem.
- mkfs.ext2 /dev/hda6
- mke2fs /dev/hda6
- mkfs -t ext2 /dev/hda6
You made yourself a fancy new partition that you want to use as swap space, what command do you use to turn on swap?
swapon
What is the partition ID for a Linux LVM?
8e
What command is used to mount a CD
mount -t iso9660 /dev/cdrom /mnt
What command is used to edit the partition table
fdisk /dev/sda
What command is used to unmount a filesystem
umount
What is the partition ID for a Linux Swap filesystem?
82
Where doe sthe proc filesystem reside
Inside the kernel
In /etc/fstab, what is the fourth column for?
Mount options - or the word “defaults”
What command would you use to set the volume name of /dev/hda1 to foo
e2label /dev/hda1 foo
What must be done to write partition table changes
Enter the w subcommand
How does Linux always begin counting the first logical partition?
Starting with 5. Even if all 4 primary partitions arent used.
What is the default RHEL6 filesystem
ext4
What two items does the MBR contain?
- Bootloader
- Partition Table
What does the dumpe2fs command do
Examines the features of a filesystem
Which partition is mounted first
Root partition
Give a command line that lists all known partitions on a disk.
fdisk -l
What type of filesystem is nfs
Network filesystem
Must a mount point be an already existing directory?
Yes.
What is the partiton ID for ext2 and ext3
83
What kind of filesystem is proc
Virtual
How large in the MBR?
512 bytes
You made changes with fdisk, and want to see them RIGHT FREAKIN NOW, how?
partprobe
Partitions are referred to using
Distinct device nodes
What is nfs used for
Sharing directories between Linux/Unix machines
What command is used to create an ext2 filesystem
mke2fs
What kind of partition is the extended partition
Primary partition
What is Linux’s native filesystem?
ext2
In /etc/fstab, what is the second column for?
The mount point
Root should check its privilege, it gets how much percent of a ext2 filesystem?
5%
In /etc/fstab, what is the first column for?
The device id to mount
When should you use the -i switch for mke2fs
When you know the average size of the files in the filesystem
The extended partition houses
Multiple logical partitions
What is the difference between ext2 and ext3
ext3 supports journaling
Why do you need swap space?
Because your raggidy-ass computer doesnt have enough RAM
What is iso9660 filesystem used for
read-only filesystem used by CDs
What numbers do primary partitions use
1 to 4
How does the Linux kernel refer to the 7th partition on the drive /dev/sdc?
/dev/sdc7
What are the two types of disk partitions
Primary and extended
What is smbfs used for
Sharing directories between Linux/Unix and Windows machines
What command is used to deactivate swap space
swapoff
When should you use the -N switch for mke2fs
When you know the maximum number of files it will contain