本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版上一修订版两侧同时换到之后的修订记录 | ||
linux:liunxbasics:computerfundamentals:partition [2016/06/08 07:25] – haregy | linux:liunxbasics:computerfundamentals:partition [2021/11/11 08:07] – codinghare | ||
---|---|---|---|
行 1: | 行 1: | ||
====Partition in Liunx==== | ====Partition in Liunx==== | ||
- | ===== ===== | + | ---- |
===Hardrive format in Linux=== | ===Hardrive format in Linux=== | ||
For SATA, USB, SAS, these type of devices are showing in Linux like: | For SATA, USB, SAS, these type of devices are showing in Linux like: | ||
行 47: | 行 47: | ||
</ | </ | ||
+ | ===GPT=== | ||
+ | GPT: GUID partition table\\ | ||
+ | GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical hard disk, using globally unique identifiers (GUID). Although it forms a part of the Unified Extensible Firmware Interface (UEFI) standard (Unified EFI Forum proposed replacement for the PC BIOS), it is also used on some BIOS systems because of the limitations of master boot record (MBR) partition tables, which use 32 bits for storing logical block addresses (LBA) and size information on a traditionally 512 byte disk sector. | ||
+ | {{ : | ||
+ | ==LBA0== | ||
+ | Traditionally, | ||
+ | ==LBA1: | ||
+ | The partition table header defines the usable blocks on the disk. It also defines the number and size of the partition entries that make up the partition table. | ||
+ | The header contains the disk globally unique identifier (GUID). It records its own size and location (always LBA 1) and the size and location of the secondary GPT header and table (always the last sectors on the disk). Importantly, | ||
+ | ==LBA2-33== | ||
+ | This area is used for recording partitions informations. Each LBA has 4 records, total equal to 4 by 32 = 128. Every LBA has 64Bytes space to store number of start / end sectors, Thus, GPT could provide 264 512Bytes = 263 1KBytes = 233TB = 8 ZB space. | ||
+ | ===Advantages of GPT=== | ||
+ | |||
+ | * Unordered List ItemUses GUIDs (UUIDs) to identify partition types - No collisions. | ||
+ | * Provides a unique disk GUID and unique partition GUID for each partition - A good filesystem-independent way of referencing partitions and disks. | ||
+ | * Arbitrary number of partitions - depends on space allocated for the partition table - No need for extended and logical partitions. By default the GPT table contains space for defining 128 partitions. However if the user wants to define more partitions, he/she can allocate more space to the partition table (currently only gdisk is known to support this feature). | ||
+ | * Uses 64-bit LBA for storing Sector numbers - maximum addressable disk size is 2 ZiB. MBR is limited to addressing 2 TiB of space per drive. | ||
+ | * Stores a backup header and partition table at the end of the disk that aids in recovery in case the primary ones are damaged. | ||
+ | * CRC32 checksums to detect errors and corruption of the header and partition table. | ||
+ | \\ | ||
+ | {{ : | ||
+ | <WRAP center round info 100%> | ||
+ | Fdisk is not support GPT. | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 100%> | ||
+ | Warning: For Windows, there is no support for booting from a BIOS/GPT partitioning scheme. If you have already installed Windows with a BIOS/MBR partitioning scheme do not convert the drive to GPT! Windows will fail to boot if this is done - irrespective of the bootloader used to chainload Windows. One can either install Windows in UEFI mode and use an UEFI bootloader (which uses GPT), or possibly restore/ | ||
+ | </ | ||
+ | ===BIOS / UEFI=== | ||
+ | BIOS(basic input/ | ||
+ | UEFI (Unified Extensible Firmware Interface) is a standard firmware interface for PCs, designed to replace BIOS (basic input/ | ||
+ | The interface defined by the EFI specification includes data tables that contain platform information, | ||
+ | * Ability to boot from large disks (over 2 TB) with a GUID Partition Table (GPT) | ||
+ | * CPU-independent architecture | ||
+ | * CPU-independent drivers | ||
+ | * Flexible pre-OS environment, | ||
+ | * Modular design | ||
+ | |||
+ | ==BIOS + MBR / GPT == | ||
+ | {{ : | ||
+ | Because GPT also have boot loader in LBA0(MBR compatible), | ||
+ | ==UEFI Booting== | ||
+ | UEFI is designed to support GPT boot and replace BIOS. It developed by C language, so it can be easily supported by 3rd party software. Moreover, it has better user interface compare with BIOS, and could load driver before starting OS. | ||
+ | {{ : | ||
+ | <WRAP center round info 100%> | ||
+ | Seurty boot in UEFI will cause unbootable. Try to turn this function of if you can not boot normally. | ||
+ | </ | ||