In this post I am presenting here how to make partitions on a Linux installed System. The system first contains only one SCSI Hard Disk. It contains three partitions (sda1,sda2,sda5). These are default partitions when installing Linux on a system containing single hard disk.
Here I am adding 9 other SCSI Hard Disks to the system.After adding the disks I verified the system whether the system recognized these additional disks.By restarting the system and typing the command " #lsblk " in the terminal.
Fig (1) displaying Partitions on a Linux System
The above fig(1) show the partitions present in the Linux system. The figure shows ten Hard Disks ( sda - sdj ) .The initial disk sda contains 3 partitions.The remaining nine does not show any information and partition details.Here the disks are only added .It neither formatted nor contains partition table.So to make the disk usable it must be formatted.
so the following command " fdisk " is used to format the disks one by one.
Fig (2) formating the disk sdb using fdisk command in linux
the following command " #fdisk /dev/sdb " is used to format the disk "sdb" here the below figure 3 shows the partition table and detail options to use fdisk
figure (3) showing partition table by using fdisk command in linux
As it doesn't show any partition details , I used "fdisk " 'n' option to create a partition. It will ask weather it is a primary partition or an existing partition. By default it makes a primary partition and next asks for partition number, first sector and last sector for the partitions.Finally the configuration changes are written by using option 'w' .The following figure 4 shows the partition phenomenon
figure (4) showing configuration options of partitioning disk using fdisk
finally the next eight disks are partitioned using fdisk command and block devices are listed by the lsblk command .The following figure 5 & 6 shows the listed block devices in the system
Figure 5 showing and listing block devices in linux system
Figure 6 Showing block devices in the linux system
No comments:
Post a Comment