Task 3.9 Flashcards

(22 cards)

1
Q

What utility is used to create new partitions on a disk?

A

fdisk

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

What filesystem type is used to format the new partitions?

A

ext4

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

How do you label the new partitions?

A

Using the command e2label

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

What command is used to view the current mount table?

A

cat /etc/mtab

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

Fill in the blank: The command to create a new partition is _______.

A

fdisk /dev/sdb

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

What command is used to format a partition as ext4?

A

mkfs -t ext4 /dev/sdb1

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

Which directories are created on the /mnt directory for mount points?

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

What does the command ‘lsblk -f’ display?

A

It shows the name of the hard disk, its partitions, filesystem type, labels, and current mount points.

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

True or False: The command ‘umount’ is used to mount a partition.

A

False

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

What command is used to automatically create mount points at startup?

A

Edit the /etc/fstab file

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

What is the purpose of the command ‘shutdown -r now’?

A

To restart the system immediately after shutdown.

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

What is the first step to create new partitions?

A

Issue the command fdisk /dev/sdb

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

What command is used to view the partitions on a disk?

A

fdisk -l /dev/sdb

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

Fill in the blank: To remove a label from a partition, use the command e2label /dev/sdb2 _______.

A

””

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

What is the purpose of the /etc/fstab file?

A

To define how disk partitions, filesystems, and other devices are mounted.

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

What command would you use to see the contents of the file1.txt after adding data?

A

cat /mnt/part1/file1.txt

17
Q

What command is used to unmount a partition?

A

umount /dev/sdb1

18
Q

What command shows a file-based representation of your hard disk?

A

ls -l /dev | grep sda

19
Q

How do you create a directory in the /mnt directory?

A

Use the command mkdir /mnt/part1 or mkdir /mnt/part2

20
Q

What is the command to check the contents of the /etc/fstab file?

A

cat /etc/fstab

21
Q

True or False: The command ‘mount’ shows the same output as ‘cat /etc/mtab’.

22
Q

What command should be used to add data to a text file in a mounted directory?

A

echo hello from file1.txt > /mnt/part1/file1.txt