The environment DOC-20240525-WA0077..pptx

catanonymous47 12 views 12 slides Oct 05, 2024
Slide 1
Slide 1 of 12
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
Slide 11
11
Slide 12
12

About This Presentation

The environment DOC-20240525-WA0077..pptx


Slide Content

: Familiarize partition ing of Hard Disk using fdisk command in Linux Server. : 1 ) Add additional Hard disks in Linux sever virtual machine . Experiment no :04 Date:

2 ) To list available hard disk and partitions Open Linux sever and enter a command and enter ls blk command

3 ) To create partitions in a parti cular hard disk, start Fdisk command and select hard disk

4 ) To see avail able option in fdisk, type m .

5 ) Then enter command to print partit ion information . In the beginning the partition li st will be empty 6 ) To create a new partition type n . Default partition table is MBR .

8 ) For Creating prim ary partition type p in partition type. 9 ) For creating ext ended partition type e in partition type. 10 ) Use default value partition number 11 ) Use default value for First sector 12 ) Choose appropriate value for Last sector ( ) 13 ) Repeat steps 8-12 to create additional partitions 14 ) Type w to save the partition information . 7 ) Add three primary partitions and one ex tended partition and create 3 logical partition s.

15 ) The next step to create file system. mkfs command is used for this purpose Use Mkfs.ext4 /dev/sdb1 command to create file system in sdb 1 partition . Using the same c ommand create file systems in other partitions also

16 ) The next step is mo uting the partition againt a mount point. Follow the below step s Create a mount point f or each partition using mkdir command (eg: ) mount the directories against each partition using mount comm and (eg: )

17 ) To automatical ly mount all the partitions during booting, modify f stab file and add allthe mount points a nd corresponding partition. Follow the below steps

18 ) Reboot the server and check whether the partitions are mounted or not . This completes the partitioning of har ddisk using fdisk utility . Hard disk partioning Using fdisk has been suc cessfully completed.
Tags