Workbook 3: Linux Filesystem Management Flashcards

1
Q

Every filesystem is tied to an

A

Existing directory (mount point)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In /etc/fstab, what is the third column for?

A

The filesystem to use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What block sizes does the mke2fs command choose by default?

A

1,000 or 4,000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the advantage of vfat over msdos

A

Allows long filenames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to initialize swap space

A

mkswap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the msdos filesystem

A

FAT filesystem used by DOS and Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A Linux filesystem requires everything in the directory tree to have

A

Dentry, Inode, Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In /etc/fstab, what is the fifth column for?

A

Dump

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What command is used to list partitions

A

fdisk -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where are primary partition properties recorded

A

MBR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What three filesystems are supported by Linux

A

ext2, ext3, ext4, msdos, vfat, nfs, smbfs, iso9660, proc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of the nfs file system?

A

A network filesystem to share files between linux and unix macines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What partition ID is used for swap space

A

82

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the primary difference between the ext3 and ext2 filesystems?

A

Journaling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You realize that you’re an idiot and enabled swap on the wrong drive, how do you fix it?

A
  1. swapoff
  2. dont be an idiot, idiot.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command is used for partitioning a disk

A

fdisk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does ext4 uses instead of traditional blocks

A

Extents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Every filesystem has a

A

Root directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command is used to activate swap space

A

swapon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In /etc/fstab, what is the sixth column for?

A

What order to ‘fsck’ing check those disks in.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why would you ever spend the amount of time required to directly specify the number of inodes when creating a filesystem?

A

When you will have a lot (like a lot) of small files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which partition could function as the machine’s only filesystem

A

The root partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the filesystem associated with compact disks?

A

iso9660

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A Linux filesystem is a structure that organized

A

Raw data on a disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Is / a mount point?
Yep, mounted by the kernel during startup.
18
Give three equivalent command lines that initialize the /dev/hda6 partition with an ext2 filesystem.
1. mkfs.ext2 /dev/hda6 2. mke2fs /dev/hda6 3. mkfs -t ext2 /dev/hda6
18
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
20
What is the partition ID for a Linux LVM?
8e
21
What command is used to mount a CD
mount -t iso9660 /dev/cdrom /mnt
22
What command is used to edit the partition table
fdisk /dev/sda
22
What command is used to unmount a filesystem
umount
24
What is the partition ID for a Linux Swap filesystem?
82
25
Where doe sthe proc filesystem reside
Inside the kernel
27
In /etc/fstab, what is the fourth column for?
Mount options - or the word "defaults"
28
What command would you use to set the volume name of /dev/hda1 to foo
e2label /dev/hda1 foo
29
What must be done to write partition table changes
Enter the w subcommand
31
How does Linux always begin counting the first logical partition?
Starting with 5. Even if all 4 primary partitions arent used.
32
What is the default RHEL6 filesystem
ext4
33
What two items does the MBR contain?
1. Bootloader 2. Partition Table
34
What does the dumpe2fs command do
Examines the features of a filesystem
34
Which partition is mounted first
Root partition
36
Give a command line that lists all known partitions on a disk.
fdisk -l
37
What type of filesystem is nfs
Network filesystem
38
Must a mount point be an already existing directory?
Yes.
40
What is the partiton ID for ext2 and ext3
83
41
What kind of filesystem is proc
Virtual
43
How large in the MBR?
512 bytes
45
You made changes with fdisk, and want to see them RIGHT FREAKIN NOW, how?
partprobe
46
Partitions are referred to using
Distinct device nodes
47
What is nfs used for
Sharing directories between Linux/Unix machines
48
What command is used to create an ext2 filesystem
mke2fs
49
What kind of partition is the extended partition
Primary partition
50
What is Linux’s native filesystem?
ext2
52
In /etc/fstab, what is the second column for?
The mount point
53
Root should check its privilege, it gets how much percent of a ext2 filesystem?
5%
54
In /etc/fstab, what is the first column for?
The device id to mount
55
When should you use the -i switch for mke2fs
When you know the average size of the files in the filesystem
57
The extended partition houses
Multiple logical partitions
58
What is the difference between ext2 and ext3
ext3 supports journaling
59
Why do you need swap space?
Because your raggidy-ass computer doesnt have enough RAM
60
What is iso9660 filesystem used for
read-only filesystem used by CDs
62
What numbers do primary partitions use
1 to 4
63
How does the Linux kernel refer to the 7th partition on the drive /dev/sdc?
/dev/sdc7
64
What are the two types of disk partitions
Primary and extended
65
What is smbfs used for
Sharing directories between Linux/Unix and Windows machines
66
What command is used to deactivate swap space
swapoff
67
When should you use the -N switch for mke2fs
When you know the maximum number of files it will contain