Task 3.9 Flashcards
(22 cards)
What utility is used to create new partitions on a disk?
fdisk
What filesystem type is used to format the new partitions?
ext4
How do you label the new partitions?
Using the command e2label
What command is used to view the current mount table?
cat /etc/mtab
Fill in the blank: The command to create a new partition is _______.
fdisk /dev/sdb
What command is used to format a partition as ext4?
mkfs -t ext4 /dev/sdb1
Which directories are created on the /mnt directory for mount points?
- part1
- part2
What does the command ‘lsblk -f’ display?
It shows the name of the hard disk, its partitions, filesystem type, labels, and current mount points.
True or False: The command ‘umount’ is used to mount a partition.
False
What command is used to automatically create mount points at startup?
Edit the /etc/fstab file
What is the purpose of the command ‘shutdown -r now’?
To restart the system immediately after shutdown.
What is the first step to create new partitions?
Issue the command fdisk /dev/sdb
What command is used to view the partitions on a disk?
fdisk -l /dev/sdb
Fill in the blank: To remove a label from a partition, use the command e2label /dev/sdb2 _______.
””
What is the purpose of the /etc/fstab file?
To define how disk partitions, filesystems, and other devices are mounted.
What command would you use to see the contents of the file1.txt after adding data?
cat /mnt/part1/file1.txt
What command is used to unmount a partition?
umount /dev/sdb1
What command shows a file-based representation of your hard disk?
ls -l /dev | grep sda
How do you create a directory in the /mnt directory?
Use the command mkdir /mnt/part1 or mkdir /mnt/part2
What is the command to check the contents of the /etc/fstab file?
cat /etc/fstab
True or False: The command ‘mount’ shows the same output as ‘cat /etc/mtab’.
True
What command should be used to add data to a text file in a mounted directory?
echo hello from file1.txt > /mnt/part1/file1.txt