Cyb202 Lab5
Cyb202 Lab5
Lab-5 Administration
1
CYB202 Linux
Lab-5 Administration
Step 2
the sixth virtual console. In Linux, virtual consoles are accessed using the
What are the major and minor numbers for this file?
The major and minor numbers for ‘/dev/tty6’ can be found in the output of the ‘ls -
l’ command. So, the major number for ‘/dev/tty6’ is 4, and the minor number is 6.
2
CYB202 Linux
Lab-5 Administration
Step 3
Yes, the file was removed successfully, as confirmed by the absence of ‘/dev/tty6’ when I
list it.
Step 4
Were you successful to login at tty6?
No, because the ‘/dev/tty6’ device file was removed, making the terminal inoperable.
Step 5
What did this command do? Was the file re-created successfully?
The command ‘mknod /dev/tty6 c 4 6’ re-created the ‘/dev/tty6’ character device file with
major number 4 and minor number 6. Yes, the file was re-created successfully, as
Step 6
Yes, because the /dev/tty6 device file was re-created, making the terminal operable again.
3
CYB202 Linux
Lab-5 Administration
Step 7
All these files are character device files with similar permissions and ownership.
The major number is the same (4) for each file, indicating they use the same
driver.
The minor number is different for each file, distinguishing each virtual terminal
individually.
Step 8
How large in KB are all files within the /dev directory? Why?
The size of all files within the /dev directory is very small (typically 0 KB or a few
KB) because most of these files are device nodes, not actual files, and do not
4
CYB202 Linux
Lab-5 Administration
Step 9
(/dev/tty*)
Matches what was observed in Step 2, where /dev/tty6 also had a major number
of 4.
Step 2
Is there an icon that represents your Fedora Live installation media in the left
pane?
Yes, there is an icon representing Fedora Live installation media in the left pane of
‘/run/media/<username>/Fedora-Live’.
5
CYB202 Linux
Lab-5 Administration
Step 4
6
CYB202 Linux
Lab-5 Administration
Step 5
The command ‘umount /dev/cdrom; successfully unmounts the Fedora DVD. The ‘du -hT’
Step 6
Step 7
The warning received is likely "mount: /mnt: mount point does not exist." The ‘du -hT’
command confirms that the ISO image is now mounted to the ‘/mnt’ directory.
Step 8
7
CYB202 Linux
Lab-5 Administration
Yes, the output of both mount and ‘cat /etc/mtab’ is more verbose than ‘du -hT’, as it
provides detailed information about all currently mounted filesystems, including their
Step 9
Yes, the contents of the ISO image are the same as in Step 2, displaying the files
Step 10
shows that you are currently using the ‘/mnt’ directory, preventing unmounting.
8
CYB202 Linux
Lab-5 Administration
Step 2
Use ‘lsblk’ to identify the storage device file holding existing partitions and view the
Step 4
Use fdisk with the p command to view and verify the partition table on the storage
device (/dev/sda), checking for consistency with previously noted partitions and
G
CYB202 Linux
Lab-5 Administration
Step 8
Which character would you type at the fdisk prompt to change the type
of partition?
Step 9
Typing ‘w’ saves the changes made to the partition table and exits the fdisk utility.
Step 13
The new ext4 filesystem is mounted to ‘/newmount’, and its successful mount is verified
Step 14
After mounting the new partition, the ‘lost+found’ directory should be present, and after
copying the hosts file to ‘/newmount’, both ‘lost+found’ and ‘hosts’ should be visible
10
CYB202 Linux
Lab-5 Administration
Step 19
The ‘df -h’ command confirms if the new filesystem is automatically mounted after reboot.
Step 20
The ‘umount /newmount’ command unmounts the filesystem, and the ‘df -hT’ command
Step 21
The ‘mount -a’ command remounts all filesystems listed in ‘/etc/fstab’, and the ‘df -hT’
command verifies that the new filesystem is mounted again to ‘/newmount’ because it
11
CYB202 Linux
Lab-5 Administration
Step 2
Use ‘parted’ followed by the storage device file (e.g., /dev/sda) to initiate the GNU Parted
utility and view available commands for partitioning and managing the device.
Step 3
12
CYB202 Linux
Lab-5 Administration
135 GB
Step 7
Use ‘parted’ to view the partition table on your storage device and note the device file
for the newly created 1 GB partition, along with its End value, to prepare for further
configuration in LVM.
13