首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
WHY42
搜索
用户菜单
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁Gentoo:使用Gdisk分区”︁的源代码
←
Gentoo:使用Gdisk分区
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
fdisk不支持gpt分区,如果需要对GPT格式磁盘进行修改,可以使用gdisk(sys-apps/gptfdisk)。 <pre> gdisk /dev/sda GPT fdisk (gdisk) version 0.8.6 </pre> <pre> Partition table scan: MBR: protective BSD: not present APM: not present GPT: present </pre> <pre> Found valid GPT with protective MBR; using GPT. Command (? for help): p Disk /dev/sda: 500118192 sectors, 238.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): C72786B7-C1FB-4A60-8F5F-216FA9097A98 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 500118158 Partitions will be aligned on 2048-sector boundaries Total free space is 123357805 sectors (58.8 GiB) </pre> <pre> Number Start (sector) End (sector) Size Code Name 1 2048 616447 300.0 MiB 2700 Basic data partition 2 616448 821247 100.0 MiB EF00 EFI system partition 3 821248 1083391 128.0 MiB 0C01 Microsoft reserved part 4 1083392 376762367 179.1 GiB 0700 Basic data partition </pre> <pre> Command (? for help): n Partition number (5-128, default 5): First sector (34-500118158, default = 376762368) or {+-}size{KMGTP}: Last sector (376762368-500118158, default = 500118158) or {+-}size{KMGTP}: +100M Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem' Entering GPTPart::SetName(const UnicodeString...) </pre> <pre> Command (? for help): n Partition number (6-128, default 6): First sector (34-500118158, default = 376967168) or {+-}size{KMGTP}: Last sector (376967168-500118158, default = 500118158) or {+-}size{KMGTP}: +1G Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): 8200 Changed type of partition to 'Linux swap' Entering GPTPart::SetName(const UnicodeString...) </pre> <pre> Command (? for help): n Partition number (7-128, default 7): First sector (34-500118158, default = 379064320) or {+-}size{KMGTP}: Last sector (379064320-500118158, default = 500118158) or {+-}size{KMGTP}: Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem' Entering GPTPart::SetName(const UnicodeString...) </pre> <pre> Command (? for help): p Disk /dev/sda: 500118192 sectors, 238.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): C72786B7-C1FB-4A60-8F5F-216FA9097A98 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 500118158 Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB) </pre> <pre> Number Start (sector) End (sector) Size Code Name 1 2048 616447 300.0 MiB 2700 Basic data partition 2 616448 821247 100.0 MiB EF00 EFI system partition 3 821248 1083391 128.0 MiB 0C01 Microsoft reserved part 4 1083392 376762367 179.1 GiB 0700 Basic data partition 5 376762368 376967167 100.0 MiB 8300 Linux filesystem 6 376967168 379064319 1024.0 MiB 8200 Linux swap 7 379064320 500118158 57.7 GiB 8300 Linux filesystem </pre> <pre> Command (? for help): w Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to /dev/sda. The operation has completed successfully. </pre> [[Category:Linux/Unix]]
返回
Gentoo:使用Gdisk分区
。