@betal

Случайно стер GPT разделы на работающей системе, как восстановить пока не перезагрузил?

Невнимательно прочитал мануалы к новым утилитам, случайно стер разделы GPT, хочется восстановить пока не перезагрузил, может есть идеи?

############################### gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 2930277168 sectors, 1.4 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): A5461408-36C1-4D62-897B-FF0851338577
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2930277134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2797 sectors (1.4 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          999423   487.0 MiB   EF00  
   2          999424       293967871   139.7 GiB   EF00  
   3       293967872       333029375   18.6 GiB    0700  
   4       333029376       625997823   139.7 GiB   0700  
   5       625997824      2930276351   1.1 TiB     0700  

############################### # gdisk -l /dev/sdf
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdf: 2930277168 sectors, 1.4 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 3E95168C-8B62-4A01-B836-301D6B6050A0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2930277134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2930277101 sectors (1.4 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

############################### # sgdisk -d /dev/sdd

############################### # sgdisk -R /dev/sdd

############################### # sgdisk -R /dev/sdd /dev/sdf 

Creating new GPT entries.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
root@forum:~# gdisk -l /dev/sdf
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdf: 2930277168 sectors, 1.4 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BB6D5B73-1A75-493A-982B-1488C973F579
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2930277134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2930277101 sectors (1.4 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

############################### # gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 2930277168 sectors, 1.4 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): CD553698-A13F-496E-A06F-2CAA3F9FD859
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 2930277134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2930277101 sectors (1.4 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
  • Вопрос задан
  • 1484 просмотра
Решения вопроса 1
@betal Автор вопроса
Сам себе отвечу:
### testdisk /dev/sdd

Или варианты gdisk /dev/sdd
r
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы