Worksheet No.
- 2
Student Name: Harmandeep Singh UID: 24MCA20491
Branch: UIC Section/Group:24MCA-7B
Semester: 1st Date of Performance:16 Sept, 24
Subject Name: Linux Administration Lab Subject Code:24CAP-607
Aim/Overview of the practical: Create, remove, and resize various types of partitions through GUI
and command line using fdisk,gdisk, mkfs, mount.
Objective:The objective of the practical is to create, remove and resize various types of partitions using
gdisk, mkfs, mount.
Steps:
1.
Lists all available block devices (disks and partitions) to identify the device you want to work on.
Purpose: To view the disk structure.
2.
Opens the fdisk utility for managing partitions on the /dev/sda3 disk.
Purpose: To create or modify partitions on the disk.
3.
Displays a help menu with available fdisk commands. Purpose: To see what options are available for
disk partitioning.
4.
Displays the partition table for /dev/sda3. Purpose: To check the existing partitions on the disk.
5.
Creates a new partition. Purpose: To add a new partition to the disk.
6. Accept the default partition number:
Automatically assigns a partition number to the new partition. Purpose: To quickly create a partition
without manually setting the number.
7. Accept the default first sector:
Sets the starting point of the partition. Purpose: To place the partition where there is free space on the
disk.
8.
Allocates 1 GB for the new partition. Purpose: To specify how much space the partition should take.
9. Writes the partition changes to the disk and exits fdisk. Purpose: To save
the changes made to the partition table.
10. Formats the new partition with the ext4 filesystem.
Purpose: To prepare the partition for storing data.
11.
Creates a directory where the new partition will be mounted. Purpose: To establish a mount point for
accessing the partition.
12. Mounts the formatted partition to
the /mnt/jxshan directory. Purpose: To attach the partition so it can be accessed from the file system.
13. lsblk: Rechecks the block devices to confirm the partition is mounted. Purpose: To verify that the
partition is correctly mounted and accessible.
Learning outcomes (What I have learnt):
1. I learned how to list, partition, and format a disk using Linux commands like lsblk, fdisk, and mkfs.
2. I understood how to create and mount a new partition, making it accessible through the file system.
3. I gained practical experience in managing storage devices and performing disk operations in Linux.
Evaluation Grid:
Sr. No. Parameters Marks Obtained Maximum Marks
1. Demonstration and Performance 12
2. Worksheet 8
3. Viva 10