Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MBR originally only supported up to 4 partitions. Later on, extended and logical partitions
were introduced to get around this limitation.
Primary
Extended
o Logical
Primary partitions can be bootable and are limited to four partitions per disk or RAID
volume. If a partitioning scheme requires more than four partitions, an extended partition
containing logical partitions is used. Extended partitions can be thought of as containers for
logical partitions. A hard disk can contain no more than one extended partition. The extended
partition is also counted as a primary partition so if the disk has an extended partition, only
three additional primary partitions are possible (i.e. three primary partitions and one extended
partition). The number of logical partitions residing in an extended partition is unlimited. A
system that dual boots with Windows will require that Windows reside in a primary partition.
The customary numbering scheme is to create primary partitions sda1 through sda3 followed
by an extended partition sda4. The logical partitions on sda4 are numbered sda5, sda6, etc.
fdisk command can display only 60 partitions
Fdisk -l
Step 2: Once you finalize in which disk you want to make partitions then execute below command
with respect disk name(sda, sdb, sdc) here a , b & c are disk count.
Fdisk /dev/sdb
Step 3: After enter into disk normal (system) commands will work. Only below options will work for
make disk changes.
Command action
a toggle a bootable flag
d delete a partition
# Partprobe /dev/sdb
Or
# mkfs.ext3 /dev/sdb1
Step 6: select or create New directory for map your partition to local directory (Interpreter) .After
mount the data will save in /dev/sdb1 partition not in this mapped directory(eg: /data1)
# mkdir /data1
:wq
# df h
#df T
Or mount
Below command is for mount all partitions which are added in /etc/fstab
# mount -a
LAB:
Syncing disks.
switch off the mode (command 'c') and change display units to
Command action
l logical (5 or over)
Command action
l logical (5 or over)
Command action
l logical (5 or over)
Command action
l logical (5 or over)
Command action
l logical (5 or over)
Maximum you can create 1 to 4 primary partitions In this if you want to create more partitions.
You have to select must and should in this 4 even one partition as extended and then you can get
chance to create up to 59 partitions inside that extended partition.
LAB:
You must delete some partition and add an extended partition first
Command action
e extended
Selected partition 4
#Blkid
Step 1:
Fdisk /dev/sdb
Step 2:
Vi /etc/fstab