fdisk updates and GPT support (转)

*/-->

pre.src {background-color: Black; color: White;}

fdisk updates and GPT support (转)

原文: (被墙了, 直接复制粘 [nian?]) 贴过来) http://blog.stgolabs.net/2012/09/fdisk-updates-and-gpt-support.html

fdisk 已经支持 GPT (2012-09-27) 了, 但是你现在 (2015-05-02) 用百度搜索的时候还是会找到说不支持的博文. 国内的博客大部分都是 copy 来 copy 去, 这种没质量的 copy 应该收藏到 有道笔记 里面, 而不是老是拿出来害大家.

很多像我这样的小白 都是咽着 这些 "灰尘" 爬过来的

fdisk /dev/sda 进去之后按 m

Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table

明显是支持 GPT 分区的
http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=766d5156c43b784700d28d1c1141008b2bf35ed7

你也可以用 parted
The fdisk tool is perhaps the most recognized disk partitioner in the world

The fdisk tool is perhaps the most recognized disk partitioner in the world, as it has historically been present in Windows and all Unix flavors, among other OSs. While this tool has proven useful for its Linux variant, it as been subject to intense patching along its 20 years of existence, and it is a product of multiple authors, coding styles and concepts. Because of this, extending fdisk, to keep up with modern day computing and disk needs is hard, time consuming and error prone. To address this, a serious effort, initially sponsored by Google, was started to redesigned and update fdisk to fit the requirements of a modern disk partitioning program. Some include removing DOS compatibility mode, replacing the deprecated CHS addressing with LBA, GPT support, creating a generic a driver based API that can transparently handle different partition types and major code cleanups and refactoring, among others. While several things have been done, there is still a long ways to go.

I‘m pleased to announce that fdisk can now work with GPT based disks!!

GUID Partition Table (GPT) , developed by Intel in the late ‘90s, is a standard for laying out partitioning on hard disks, now forming part of the UEFI standard. Its increasing popularity is easily understandable, as it provides several benefits over the traditional PC master boot record (MBR) scheme. Furthermore, people using Intel based Apple products (like macbooks) will most likely be using GPT (with a hybrid MBR scheme). While the Internet is full of documents that go into the details of this format, there are a few benefits worth mentioning here:

GPT does not know anything about CHS addressing, and only uses LBA (64bit).
Because it uses 64bit LBAs, it can hold 2^{64}?1 sectors, typically 9.4 Zb with standard 512 byte sectors, way above the 2Tb limit offered by MBR.
GPT uses 32bit CRC checksums to validate data integrity for its headers and partition entries. It also adds redundancy to it‘s structures having them present twice, once at the start and again at the end of the disk. This, of course, helps protect the system against disk errors and allows better recovery.

Some considerations about the implementation:
We currently support probing, listing/adding/deleting/writing partitions, data integrity verification. Furthermore, fdisk can determine if there is a traditional protected, or hybrid MBR present.
For now, primary header corruption is not recoverable from he backup at the end of the disk.
Header checksums are updated upon every change (ie: add/delete partitions), this allows us to mathematically verify the changes on-the-fly, and not only when writing to disk, like most other related tools do.
When creating a new partition, all partition type GUIDs are available.

I‘d like to thank both Petr Uzel from SuSE and Karel Zak from Red Hat for their time reviewing, testing and answering any doubts I had.

Enjoy!

时间: 2024-10-12 19:50:41

fdisk updates and GPT support (转)的相关文章

关于硬盘分区管理mbr gpt

硬盘管理 一:硬盘基础概念 硬盘最基本的组成部分是由坚硬金属材料制成的涂以磁性介质的盘片,不同容量硬盘的盘片数不等.每个盘片有两面,都可记录信息.盘片被分成许多扇形的区 域,每个区域叫一个扇区,每个扇区可存储128×2的N次方(N=0.1.2.3)字节信息 盘片表 面上以盘片中心为圆心,不同半径的同心圆称为磁道.硬盘中,不同盘片相同半径的磁道所组成的圆柱称为柱面.磁道与柱面都是表示不同半径的圆,在许多场合, 磁道和柱面可以互换使用,我们知道,每个磁盘有两个面,每个面都有一个磁头,习惯用磁头号来区

支持 efi 的主板 双系统安装 ubuntu - 学习 EFI 和 gpt

这次 在有两块硬盘的 机器上 双系统安装 ubuntu, 遇到了一些 以前没有的情况 了解到 两个以前没听过的名词 EFI  vs  BIOS gpt  vs  mbr   两种分区表 参考链接 二里 还提到了  快速启动  安全启动过 详细介绍了 MBR+ BIOS 启动  以及 GPTF分区的格式 http://www.iruanmi.com/what-is-gpt-and-what-is-uefi/ http://tieba.baidu.com/p/3754146793 这篇文章介绍了 u

Linux4.3 parted分区GPT格式

fdisk分区工具,它的分区格式为MBR,特点是,最多分4个主分区,磁盘大小不能超过2T.而GPT分区格式,突破了这些限制,它没有主分区.扩展分区.逻辑分区之分,在一块磁盘上最多可以分128个分区出来,支持大于2T的分区,最大卷可达18EB. parted 工具常用功能: 当在命令行输入parted后,进入parted命令的交互模式.输入help会显示帮助信息.下面就简单介绍一下常用的功能 1.check 简单检查文件系统.建议用其他命令检查文件系统,比如fsck 2.help 显示帮助信息 3

RHEL7.X系列及周边Linux发行版中,关于MBR与GPT的选择一些思考与建议

一.引言 存储的选型.规划与管理等工作一直以来都是日常系统运维工作中的重点.MBR与GPT两种类型的分区表的选择与使用则是在磁盘管理中需要根据应用场景来注或考虑的要点.结合笔者多年的运维工作经验,引发了对这些问题的一些思考,借此文进行一些分享. 二.相关知识点 2.1 MBR 主引导记录(Master Boot Record,缩写:MBR),又叫做主引导扇区,是计算机开机后访问硬盘时所必须要读取的首个扇区,它在硬盘上的三维地址为(柱面,磁头,扇区)=(0,0,1).在深入讨论主引导扇区内部结构的

Linux磁盘分区--GPT分区

MBR分区表有一定的局限性,最大支持2.1tb硬盘,单块硬盘最多4个主分区. 这里就要引入GPT分区表,可以支持最大18EB的卷,最多支持128个主分区,所以如果使用大于2tb的卷,就必须使用GTP分区. 对/dev/sdb进行分区 parted /dev/sdb 进入交互模式: (parted) 交互模式下常用命令: print  [free|all | NUMBER] 查看分区状态信息 mkpart PART-TYPE START END 创建新分区, PART-TYPE: primary

linux分区之ext2,ext3,ext4,gpt

2013-07-10 12:00:24 标签:ext3 gpt 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://wushank.blog.51cto.com/3489095/1244191 一.各分区简单介绍: 1.EXT是Linux系统下的一种磁盘分区格式,等同于XP下的FAT/FAT16/FAT32,大家知道安卓是基于Linux系统开发的手机系统,那么同样的就有这些分区格式,平时我们所说的开启a2sd功能,就是在SD卡中分

linux分区之gpt(大于2T的分区)

1.文件系统限制: ext3块尺寸 最大文件尺寸 最大文件系统尺寸1KiB  16GiB  2TiB2KiB  256GiB  8TiB4KiB  2TiB  16TiB8KiB  16TiB  32TiB ext4Extentsext4引进了Extent档案储存方式,以取代ext2/3使用的block mapping方式.Extent指的是一连串的连续实体block,这种方式可以增加大型档案的效率并减少分裂档案.ext4支援的单一Extent, 在单一block为4KB的系统中最高可达128M

fdisk分区命令

fdisk是Linux系统中最常用的分区工具,通过这个命令也可以查看系统中所有可用的分区,但是这个命令只支持MBR的分区表(这句话应该只对某些系统,CentOS7-1810适用,Debian9.5和openSUSE15应该已经支持GPT分区表,下面对fdisk的操作都是在Debian9.5下操作),所以这个命令不能对大于2T的硬盘进行分区,大于2T的硬盘我们需要用GPT分区表来进行分区,GPT分区我们就要用gdisk或parted分区工具来进行分区. Linux 内核是如何理解硬盘的?作为人类,

HP D6000 盘柜配置

基础设施 HP DL380 Gen8 服务器 System:Centos_6.3 HP Smart Array P431/2G Controller HP D6000 盘柜 P431卡插入服务器PCI-E插槽,通过 SAS线 把盘柜与服务器连接 配置RAID6 重启服务器,按F5进入P431卡配置界面 开始配置,配置RAID6 缓存配置10%:90% 读写 服务器配置 下载驱动 http://h20566.www2.hpe.com/hpsc/swd/public/readIndex?sp4ts.