Windows: Partition - Partitioning a hard drive

The partitioning of a hard drive occurs after the drive has been physically formatted but before it is logically formatted. It involves creating areas on the disk where data will not be mixed. It can be used, for example, to install different operating systems that do not use the same file system. There will therefore be at least as many partitions as there are operating systems using different file systems. If you are using just one operating system, a single partition the full size of the disk is sufficient, unless you want create several partitions so as to have, for example, several drives on which data are kept separate.
There are three types of partitions: primary partitions, extended partitions and logical drives. A disk may contain up to four primary partitions (only one of which can be active), or three primary partitions and one extended partition. In the extended partition, the user can create logical drives (i.e. "simulate" several smaller-sized hard drives).
Let's look at an example where the disk contains one primary partition and one extended partition made up of three logical drives (later we will look at multiple primary partitions):
For DOS systems (DOS, Windows 9x), only the primary partition is bootable, and is therefore the only one on which the operating system can be started.
Partitioning is the process of writing the sectors that will make up the partition table (which contains information on the partition: size in sectors, position with respect to the primary partition, types of partitions present, operating systems installed,...).
When a partition is created, it is given a volume name which allows it to be easily identified.

Master Boot Record
The boot sector (called the Master Boot Record or MBR) is the first sector of a hard drive ( cylinder 0, head 0, sector 1), it contains the main partition table and the code, called the boot loader, which, when loaded into memory, will allow the system to boot up.
After it is loaded into memory, this programme will determine from which system partition to boot, and will start the programme (called the bootstrap) which will start up the operating system present on that partition.
This disk sector also contains all information concerning the hard drive (manufacturer, serial number, number of bytes per sector, number of sectors per cluster, number of sectors,...). Thissector is therefore the most important one on the hard drive and is also used by the BIOS setup to recognize the hard drive. In other words, without it your hard drive is useless, which makes it a favourite target for viruses.

File systems
In this section, it is important to differentiate between the FAT file system and the file allocation table (FAT).
FAT is the name of the file system used by DOS operating systems (DOS and Windows 95, as well as Windows NT and OS/2 which support it).

Operating system      Associated file system
DOS                                   FAT16 
Windows XP                    NTFS 
Windows 98                    FAT32 
Windows 95                    FAT16 - FAT32 NTFS 
Windows NT                    NTFS
OS/2                                 HPFS
Linux                                 Linux Ext2, Linux Ext3


FAT file systems are characterised by the use of a file allocation table and clusters (or blocks).
Clusters are the smallest unit of storage in a FAT file system. A cluster actually represents a fixed number of disk sectors.
The FAT (File Allocation Table) is the heart of the file system. It is located in sector 2 of cylinder 0, head 1 (and is duplicated in another sector as a precaution in the event of an accident ). This table records the numbers of the clusters that are used, and where the files are located in the clusters.
The FAT file system supports disks or partitions up to a maximum size of 2 GB, but only allows at most 65536 clusters. So, whatever the size of the partition or disk, there must be enough sectors per cluster so that the entire disk space can be contained in these 65525 clusters. As a result, the larger the disk (or partition), the greater the number of sectors per cluster.

The FAT file system uses a root directory (represented on the operating systems that use this type of file system by the symbol C:\ ) , which must be located at a specific location on the hard drive. This root directory stores information on the sub-directories and files that it contains.
For a file, it will store: 
the file name 
the file size
the date and time the file was last modified
the file attributes 
the cluster number at which the file starts

Using multiple partitions
As mentioned earlier, there are three types of partitions: primary partitions, extended partitions and logical drives. A disk may contain up to four primary partitions (only one of which can be active), or three primary partitions and one extended partition. In the extended partition, the user can create logical drives (i.e. create the impression that there are several smaller-sized hard drives).

Primary partition
A primary partition must be logically formatted and have a file system appropriate to the operating system installed on it.
If you have several primary partitions on your disk, only one will be active and visible at a time, depending on the operating system with which you started the computer. By choosing which operating to load at start-up, you determine which partition will be visible. The active partition is the partition from which one of the operating systems was loaded when the computer was started up. The partitions other than the one from which you started will then be hidden, which will prevent their data from being accessible. The data on a primary partition are therefore only accessible from the operating system installed on that partition.

Extended partition
Extended partitions were developed to overcome the limit of four primary partitions, as you can create as many logical drives as you want in them. At least one logical drive is required in an extended partition, as you cannot stored data in them directly.
Many machines are formatted with one large partition using up all available space on the drive. This is not, however, the most advantageous solution in terms of performance and capacity. 

The solution is to create several partitions, which will allow you to:
install several operating systems on your disk save disk space
increase file security 
organise your data more easily 

Let's have a look at what a system containing several operating systems looks like:
Name

Azure Backup Database Clustering Crash Dumps DBCC Deadlock Link Server Log Shipping Maintenance Migration Mirroring Monitoring Performance Tuning Permissions Post Installations Prerequisites Replication Restore Database SQL Installations SQL on Linux SQL Uninstallations SSIS T-SQL Windows Server
false
ltr
item
hybriddba.blogspot.com: Windows: Partition - Partitioning a hard drive
Windows: Partition - Partitioning a hard drive
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfoJDUR_j05h-LkCxo8tm7WmfdeKjXqMtMGslqvghO12to8CkC6GBoCKqFfXRiuoVmXa9U7duYnyqI80bvUZSiOpHaLfuyZ6FFxubOGmdn6S0GLuKb0If40eWyjEajO512Y6bw6yelyYy5/s1600/1577958285046919-0.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfoJDUR_j05h-LkCxo8tm7WmfdeKjXqMtMGslqvghO12to8CkC6GBoCKqFfXRiuoVmXa9U7duYnyqI80bvUZSiOpHaLfuyZ6FFxubOGmdn6S0GLuKb0If40eWyjEajO512Y6bw6yelyYy5/s72-c/1577958285046919-0.png
hybriddba.blogspot.com
https://hybriddba.blogspot.com/2019/02/windows-partition-partitioning-hard.html
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/
https://hybriddba.blogspot.com/2019/02/windows-partition-partitioning-hard.html
true
7679493960263860249
UTF-8
Not found any posts Not found any related posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU Tag ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Contents See also related Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy