MBR TO GPT: различия между версиями
Материал из noname.com.ua
Перейти к навигацииПерейти к поискуSirmax (обсуждение | вклад) (Новая страница: «Категория:Linux Категория:MBR Категория:GPT Категория:File System Категория:Block Device =MBR to...») |
Sirmax (обсуждение | вклад) (→1) |
||
Строка 19: | Строка 19: | ||
= 1= |
= 1= |
||
+ | <PRE> |
||
+ | gdisk -l /dev/nvme2n1 |
||
+ | GPT fdisk (gdisk) version 1.0.5 |
||
+ | |||
+ | Partition table scan: |
||
+ | MBR: MBR only |
||
+ | BSD: not present |
||
+ | APM: not present |
||
+ | GPT: not present |
||
+ | |||
+ | |||
+ | *************************************************************** |
||
+ | Found invalid GPT and valid MBR; converting MBR to GPT format |
||
+ | in memory. |
||
+ | *************************************************************** |
||
+ | |||
+ | Disk /dev/nvme2n1: 4613734400 sectors, 2.1 TiB |
||
+ | Model: Amazon Elastic Block Store |
||
+ | Sector size (logical/physical): 512/512 bytes |
||
+ | Disk identifier (GUID): 9BF40982-9625-4B6C-899E-53B15E99EB20 |
||
+ | Partition table holds up to 128 entries |
||
+ | Main partition table begins at sector 2 and ends at sector 33 |
||
+ | First usable sector is 34, last usable sector is 4613734366 |
||
+ | Partitions will be aligned on 2048-sector boundaries |
||
+ | Total free space is 318769085 sectors (152.0 GiB) |
||
+ | |||
+ | Number Start (sector) End (sector) Size Code Name |
||
+ | 1 2048 4294967295 2.0 TiB 8300 Linux filesystem |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | |||
+ | = 2 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 3 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 4 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 5 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 67 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 7 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 8 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 9 = |
||
+ | <PRE> |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | = 10 = |
||
+ | <PRE> |
||
+ | </PRE> |
Версия 16:55, 23 декабря 2023
MBR to GPT
Это заметка о том как сконвертить MBR в GPT, что бы долго не искать. Нужно бывает не часто, просто запишу что бы не забыть
Проверить размеры дисков и партиций lsblk -f
lsblk -f NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT nvme0n1 └─nvme0n1p1 ext4 cloudimg-rootfs e8070c31-bfee-4314-a151-d1332dc23486 1.1G 94% / nvme2n1 └─nvme2n1p1 ext4 2706eb45-cde8-44e0-ac6b-6a228c99dd06 62.8G 93% /mnt
1
gdisk -l /dev/nvme2n1 GPT fdisk (gdisk) version 1.0.5 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Disk /dev/nvme2n1: 4613734400 sectors, 2.1 TiB Model: Amazon Elastic Block Store Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): 9BF40982-9625-4B6C-899E-53B15E99EB20 Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 34, last usable sector is 4613734366 Partitions will be aligned on 2048-sector boundaries Total free space is 318769085 sectors (152.0 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 4294967295 2.0 TiB 8300 Linux filesystem
2
3
4
5
67
7
8
9