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