Kerala diploma 2021 revision DOC-20240525-WA0083..pptx

catanonymous47 9 views 10 slides Jun 13, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

Kerala diploma 2021 revision DOC-20240525-WA0083..pptx


Slide Content

Familiarize partitioning o f Hard Disk using gdisk command in Linux Server. Experiment N o : 05

1 . To list available hard disk and partitions Open Linux sever and enter a command and enter ls blk command

2 . To create partitions in a particular hard disk , start gdisk comma nd and select hard disk # sudo gdisk / dev / sdc

4 . Then enter command to print partition information . In the beginning the partition list will be empty 3. To see available option in gdis k, type ? .

5 . To create a new partition type n . In gdiskgptc partition table is created . 6. Add three partition s ,one isswap • First create partition of size +1G. hex co de or GUID is default (8200) . • Second create partition of +1 G size . Hex code or GUID is default (8200) • Third swap w ith +2G size . hex code or GUID is (8300) .

8. Use default value partition numb er 9.Use default value for First sector 10 . Choose appropriate value for Last sector (Example +2G for 2GB partition) 11.Repeat steps 8-12 to create additional partitions 12. Type w to save the partition information . And enter y to procee d .

13. The next step to create fi le system kfs command is used for this purpose Use mkfs . ext 4 / dev / sdc 1 command to create fi le system in sdc 1 partition . Using the same command create fi le systems in other partition s also excluding swap .

14 . The next step is mouting the partition againt a mount point . Follow the steps below. Create a mount point for each partition using mk dir command (eg: mkdir / mnt / do wnloads) mount the directories against each partition using mount command (eg: mount /dev/sdc1 / mnt / downloads ) # sudo mount / dev / sdc 1 / mnt / ak 1

15. To automatically mount all the partitions during booting , modify f stab fi le and add all the mount points and corresponding partition . Follow the below steps

16 . Reboot the server and check whether the partitions are mounted or not . This completes the partitioning of hard disk using gdisk ut ility : Harddisk partition using gdisk is succe ssfully completed .
Tags