Lab6 IS DP PDF
Lab6 IS DP PDF
Lab work 6
ASSESSMENT: Students are required to demonstrate and receive a grade for their lab
work during class.
1. Add 2 virtual hard disk to the virtual machine running the Linux operating system (this is
done in the virtual machine settings). VMWare OR VirtualBox.
2. Start a virtual machine running the Linux operating system.
3. Review the fdisk command and its capabilities in the help documentation.
4. For fist disk create a partition table (3 primary and 1 logical) using the fdisk command on
the added virtual disk (usually the /dev/sdb disk).
5. Write changes to disk
6. Check whether partitions have been created using the fdisk command. (You can also
check the creation of partitions using the command ls /dev/sd*)
7. Format the created partitions to the ext4 file system.
8. Review the mount and umount commands and their capabilities in the help
documentation.
9. Mount the created partitions and create arbitrary files there.
10. Install gdisk <sudo apt-get install gdisk>
11. For second disk Create a GPT partition table (5 primary partitions) using gdisk.
12. Format the created partitions to the ext3 file system.
13. Mount the created partitions and create arbitrary files there.
14. Unmount the partitions.
15. Identify the advantages and disadvantages of MBR and GPT partition tables.
Before you get started, learn about the LINUX file system.
Console commands:
fdisk <parameters> - Console program for managing disks (Works only with MBR).
gdisk<parameters> - a disk management utility. It allows us to create, manage, and delete
standard GPT partitions on Linux.
lsblk <parameters> - list block devices
dd <parameters> - Console program for copying data.
mkfs.<file system type> <disk partition> - A class of console commands for creating file
systems on partitions.
mount -t <file system type> <disk partition> <mount point> - Console program for
mounting hard disk partitions.
umount /path/to/mount/point - Unmounting a disk in Linux means disabling access to the
file system that resides on that disk.
More information:
How to Create Partitions in Linux
Create a Partition in Linux - A Step-by-Step Guide
Manage Linux Disk Partition with gdisk Command