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
Q

Is / a mount point?

A

Yep, mounted by the kernel during startup.

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

Give three equivalent command lines that initialize the /dev/hda6 partition with an ext2 filesystem.

A
  1. mkfs.ext2 /dev/hda6
  2. mke2fs /dev/hda6
  3. mkfs -t ext2 /dev/hda6
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

You made yourself a fancy new partition that you want to use as swap space, what command do you use to turn on swap?

A

swapon

20
Q

What is the partition ID for a Linux LVM?

A

8e

21
Q

What command is used to mount a CD

A

mount -t iso9660 /dev/cdrom /mnt

22
Q

What command is used to edit the partition table

A

fdisk /dev/sda

22
Q

What command is used to unmount a filesystem

A

umount

24
Q

What is the partition ID for a Linux Swap filesystem?

A

82

25
Q

Where doe sthe proc filesystem reside

A

Inside the kernel

27
Q

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

A

Mount options - or the word “defaults”

28
Q

What command would you use to set the volume name of /dev/hda1 to foo

A

e2label /dev/hda1 foo

29
Q

What must be done to write partition table changes

A

Enter the w subcommand

31
Q

How does Linux always begin counting the first logical partition?

A

Starting with 5. Even if all 4 primary partitions arent used.

32
Q

What is the default RHEL6 filesystem

A

ext4

33
Q

What two items does the MBR contain?

A
  1. Bootloader
  2. Partition Table
34
Q

What does the dumpe2fs command do

A

Examines the features of a filesystem

34
Q

Which partition is mounted first

A

Root partition

36
Q

Give a command line that lists all known partitions on a disk.

A

fdisk -l

37
Q

What type of filesystem is nfs

A

Network filesystem

38
Q

Must a mount point be an already existing directory?

A

Yes.

40
Q

What is the partiton ID for ext2 and ext3

A

83

41
Q

What kind of filesystem is proc

A

Virtual

43
Q

How large in the MBR?

A

512 bytes

45
Q

You made changes with fdisk, and want to see them RIGHT FREAKIN NOW, how?

A

partprobe

46
Q

Partitions are referred to using

A

Distinct device nodes

47
Q

What is nfs used for

A

Sharing directories between Linux/Unix machines

48
Q

What command is used to create an ext2 filesystem

A

mke2fs

49
Q

What kind of partition is the extended partition

A

Primary partition

50
Q

What is Linux’s native filesystem?

A

ext2

52
Q

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

A

The mount point

53
Q

Root should check its privilege, it gets how much percent of a ext2 filesystem?

A

5%

54
Q

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

A

The device id to mount

55
Q

When should you use the -i switch for mke2fs

A

When you know the average size of the files in the filesystem

57
Q

The extended partition houses

A

Multiple logical partitions

58
Q

What is the difference between ext2 and ext3

A

ext3 supports journaling

59
Q

Why do you need swap space?

A

Because your raggidy-ass computer doesnt have enough RAM

60
Q

What is iso9660 filesystem used for

A

read-only filesystem used by CDs

62
Q

What numbers do primary partitions use

A

1 to 4

63
Q

How does the Linux kernel refer to the 7th partition on the drive /dev/sdc?

A

/dev/sdc7

64
Q

What are the two types of disk partitions

A

Primary and extended

65
Q

What is smbfs used for

A

Sharing directories between Linux/Unix and Windows machines

66
Q

What command is used to deactivate swap space

A

swapoff

67
Q

When should you use the -N switch for mke2fs

A

When you know the maximum number of files it will contain