To start of lets start with the most basic question
What is a partition?
What are the types of partitions?
Basically partition can be divided into two parts
- Primary Partition
- Extended partition
- Logical Partition
- Master Boot Record (MBR)
- GUID Partition Table (GPT)
Master Boot Record
- MBR is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives that holds the information on how the logical partitions, containing file systems, are organized on that medium.
- This MBR code is usually referred to as a boot loader.
- It is the first sector of the Hard Disk with a size of 512 bytes.
- The first 434 - 446 bytes are the primary boot loader, 64 bytes for partition table and 6 bytes for MBR validation timestamp.
- The Partition Table, located in the master boot record, contains 16-byte entries, each of which describes a partition.
- The organization of the partition table in the MBR limits the maximum addressable storage space of a disk to 2 TB (232 × 512 bytes)
- The total data storage space of a PC HDD can contain at most four primary partitions, or alternatively three primary partitions and an extended partition.
- Only one partition may be designated, at any given time, as active. That partition will be used for booting the system.
- All Windows operating systems from Windows 95 onwards can be located on (almost) any partition, but the boot files (io.sys, bootmgr, ntldr, etc.) must reside on a primary partition.
Extended PartitionWhat if you want to have more than 4 partitions in your machine?
- For these scenarios "Extended Partition" comes to the rescue. Now as explained with MBR scheme a maximum of 4 partitions can be created so we create 3 Primary partitions and one extended partition
- Within the partition table in reality takes the same amount of space as primary partitions.
- Now you can create multiple logical partition inside the extended partition.
- Since these extended partitions are not defined inside the main MBR, they are not primary partitions, and you typically cannot boot from them
- A logical partition is a a partition that has been created inside of an extended partition.
- By using an extended partition you can now have up to 15 logical partitions per disk.
- Supports maximum of 4 partitions
- Limitation of maximum disk size of 2TB
- It uses 32 bits for storing logical block addresses and size information
GUID Partition Table
- It is a standard for the layout of the partition table on a physical hard disk, using globally unique identifiers (GUID).
- GPT allocates 64 bits for logical block addresses, therefore allowing a maximum disk size of 264 sectors.
- For disks with 512-byte sectors, maximum size is 9.4 ZB (9.4 × 1021 bytes) or 8 ZiB
- The partition contains 2 "GPT headers" one at the top of the device and another at the bottom providing a redundancy so that in case any one of the GPT headers get corrupted the partition information could be collected from the secondary header.
- If the minimum size of 16,384 bytes is allocated for the partition entry array, and the default size of 128 bytes is used for each partition entry, then the maximum number of partitions is limited to 128.
What is the difference between ext3 and ext4 filesystem in Linux ?
What is the difference/comparison between Unix and Linux ?
RAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail
Follow the below links for more tutorials
How to change default login shell permanently in linux
How to install libraries manually in Linux
How to configure a caching only bind DNS server in Red Hat Linux
Iptables rules to allow/block ssh incoming/outgoing connection in Linux
Iptables rules to block/allow icmp ping request in Linux
How to configure Private Network in VMware Workstation
10 examples to help you understand top command usage in Unix/Linux
Script to take backup of any critical directory in Unix/Linux
How to secure Apache web server in Linux using password (.htaccess)
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
How to log iptables messages in different log file