Worksheet (Experiment 2)
Student Name: Shudhanshu UID: 20MCA20272
Branch: MCA Sec on/Group: 5/A
Semester: 1 Date of Performance: 29/08/2024
Subject Name: Linux Administra on Lab Subject Code: 24CAP-607
AIM: Disk Par on
1. First, we need to create a virtual hard disk drive. Right click on RedHat virtual machine and
choose storage. Select controller and select below side + op on and choose Hard disk.
2. Then select Create op on and create a hard disk.
3. A er crea on choose that hard disk.
4. Then start the Virtual machine.
5. Open Terminal and Run su command.
6. First run df -h command or lsblk command to check disk par on.
7. To create par on type fdisk /dev/sdb command.
8. There are two op on p and e. p for primary and e for extended. It will ask for (command m)
press n for crea ng new par on.
9. In MBR we can create 4 par ons (4 primary or 3 primary and one extended par on). Select
par on 1 and first sector default and at last sector write size of par on. A er crea ng
par on type p and check if par on is visible or not.
10. A er that type w to write to disk.
11. Check with command df -hT or lsblk.
12. To create par on type gdisk /dev/sdb command.
13. Press n for crea ng new par on. Select par on 1 and first sector default and at last sector
write size of par on.A er that type w to write to disk.
14. A er that type w to write to disk. Then check with the command lslbk or df -hT.
Learning outcomes (What I have learnt):
Par on Tables: Learn about par on tables (MBR and GPT) and their func ons.
fdisk: Master the fdisk command for crea ng, dele ng, and modifying par ons.
parted: Explore the parted tool for advanced par oning tasks.
gdisk: Learn to use gdisk for GPT par on tables.
Par on Size: Determine op mal par on sizes based on system requirements.