Chapter 6 Flashcards

1
Q

Which of the following command lines could be used to check and repair an ext2 filesystem?

A

All of the above

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

Which of the following command lines could be used to assign the label /data to an ext2 filesystem?

A

e2label /dev/sda3 /data

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

The remaining questions refer to the following scenario.

You have just attached a newly purchased drive to an already existing Red Hat Enterprise Linux installation. Using only the tools discussed in this Workbook, you would like to create 6 ext4 filesystems, each mounted to the directories /data1, /data2, …, /data6, and a 256 megabyte swap partition. You would like all 6 partitions to be mounted and the swap area to be activated automatically at bootup.

A

-

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

Which of the following commands could you get away with not using?

A

e2label

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

What is the most reasonable ordering for the commands you will use?

A

fdisk, mke2fs, mkswap, mount, swapon

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

At least how many logical partitions will need to be used?

A

4

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

Which of the following command lines could be used to create an ext4 filesystem on the first logical partition, and assign it the label /data3?

A

All of the above

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

Once the ext4 filesystems have been created, and are all mounted, you decide that you would like the filesystem on partition /dev/sdd2 to be an ext3 filesystem instead. Which command line could be used to convert the filesystem to ext3 (without losing any data already in the filesystem)?

A

An ext4 filesystem cannot be reverted to an ext2 or ext3 filesystem

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

You decide that you would like to check and repair the filesystem on partition /dev/sdd3. You unmount the partition. What command could you run next to perform the check?

A

fsck /dev/sdd3

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

The check and repair utility used above mentions that it has restored some file, but could not find names for. Where should you look for these files?

A

The lost+found directory in the repaired filesystem’s root directory.

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

You realize that your previously installed Red Hat Enterprise Linux system had not used the ext3 filesystem. After successfully converting your new ext2 filesystem to ext3, what additional command should be run?

A

mkinitrd

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