Drive - Partition (Logical Disk)
Table of Contents
1 - About
Drive can be divided with the help of an Operating systems into one or more logical disks called partition. This division is described in the partition table found in sector 0 (in the Master Boot Record) of the disk.
To an application, a partition appears as an independent disk, even though that is not the case. The operating system provides a command for managing the size and locations of partitions on a disk. This command writes a partition map onto the disk in an area that is not visible to the application program.
A partition editor program can be used to create, delete or modify these partitions such as Gparted
The way that space management, access permissions and directory searching are implemented depends upon the type of file system installed on a partition.
2 - Articles Related
3 - Partition Types
Depending on type of system and what operating system is being used there are many different types of partitions.
3.1 - Primary Partition
A partition that is used to start an operating system, although you can use primary partitions that don't contain the operating system.
There can be up to a maximum of four primary partitions on a single basic disk.
3.2 - Extended Partition
A partition that can be sub-divided into logical drives. An extended partition is not formatted or assigned a drive letter. It's essentially a container for logical drives that are formatted and assigned drive letters.
You can get this information on linux with parted
[[email protected] ~]# parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: VMware, VMware Virtual S (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 21.5GB 21.5GB extended
3.3 - Logical Drive / Logical Volume
A logical drive is created within an extended partition. An “unlimited” number of logical drives may be created in an extended partition, formatted.
3.4 - Boot partition
A boot partition is defined as the partition containing the system files. For Windows NT, this is the partition containing the %SystemRoot%\System32 folder.
3.5 - System partition
The system partition is defined as the partition containing the files needed for the initial system startup. For Windows NT, the files are Ntdetect.com, NTLDR, Boot.ini, and sometimes Ntbootdd.sys.
The system partition and boot partition can be on the same partition or on different partitions. Because there can be multiple operating systems installed on a single computer, a computer can have multiple boot partitions, but a computer has only a single system partition.
4 - Quiz
Where should the Linux and Windows swap partition be located to provide the best performance?
- a. at the end of the drive
- b. in the middle of the drive
- c. at the beginning of the drive
- d. do not use a swap partition; use a swap file instead