Problemas com a tabela de partições na unidade NTFS de 3 TB

3

Eu tenho um HDD de 3 TB que foi formatado com NTFS e colocado em um compartimento USB. Foi usado no Windows e no Linux, sem problemas por um ano. Recentemente, ele parou de ser montado no Linux e no Windows e, quando eu o conecto no Windows, aparece uma janela dizendo que o disco não está formatado e eu deveria formatá-lo antes de usá-lo.

Eu fiz algumas pesquisas e o problema parece com o que estava aqui:

link

Então eu segui o conselho lá e fiz "sudo gdisk" e "x" "e" "w", mas parece que ele não montou a unidade em nenhum sistema operacional, embora agora o gdisk não esteja exibindo a mensagem de erro . Alguém pode ajudar?

Além disso, faço backup de um arquivo de imagem de toda a unidade com o ddrescue para outra unidade antes de fazer isso, então, se for preciso, posso começar do zero ao inserir o arquivo de imagem na unidade original, certo? / p>

/ dev / sda é a unidade em questão, / dev / sdb é a minha unidade de sistema operacional.

Registro do que eu fiz e saída do gdisk abaixo

username@computername:~$ 
username@computername:~$ sudo gdisk
[sudo] password for username: 
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
GPT fdisk (gdisk) version 0.8.8

Type device filename, or press <Enter> to exit: /dev/sda
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Warning! Secondary partition table overlaps the last partition by
4294964337 blocks!
Try reducing the partition table size by 17179857348 entries.
(Use the 's' item on the experts' menu.)

Command (? for help): p
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): GUID redacted for internet
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1565565838
Partitions will be aligned on 8-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34          262177   128.0 MiB   0C01  Microsoft reserved part
   2          264192      5860530175   2.7 TiB     0700  Basic data partition

Command (? for help): 

Command (? for help): ?
b   back up GPT data to a file
c   change a partition's name
d   delete a partition
i   show detailed information on a partition
l   list known partition types
n   add a new partition
o   create a new empty GUID partition table (GPT)
p   print the partition table
q   quit without saving changes
r   recovery and transformation options (experts only)
s   sort partitions
t   change a partition's type code
v   verify disk
w   write table to disk and exit
x   extra functionality (experts only)
?   print this menu

Command (? for help): r

Recovery/transformation command (? for help): ?
b   use backup GPT header (rebuilding main)
c   load backup partition table from disk (rebuilding main)
d   use main GPT header (rebuilding backup)
e   load main partition table from disk (rebuilding backup)
f   load MBR and build fresh GPT from it
g   convert GPT into MBR and exit
h   make hybrid MBR
i   show detailed information on a partition
l   load partition data from a backup file
m   return to main menu
o   print protective MBR data
p   print the partition table
q   quit without saving changes
t   transform BSD disklabel partition
v   verify disk
w   write table to disk and exit
x   extra functionality (experts only)
?   print this menu

Recovery/transformation command (? for help): i
Partition number (1-2): 1
Partition GUID code: E3C9E316-0B5C-4DB8-817D-F92DF00215AE (Microsoft reserved)
Partition unique GUID: 65C662F3-DDA4-4CF3-B223-228B3E203AAF
First sector: 34 (at 17.0 KiB)
Last sector: 262177 (at 128.0 MiB)
Partition size: 262144 sectors (128.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'Microsoft reserved partition'

Recovery/transformation command (? for help): i
Partition number (1-2): 2
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
Partition unique GUID: 591D05F1-E277-4AD9-99E3-3F5834DB601E
First sector: 264192 (at 129.0 MiB)
Last sector: 5860530175 (at 2.7 TiB)
Partition size: 5860265984 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Basic data partition'

Recovery/transformation command (? for help): 

Recovery/transformation command (? for help): v

Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

Warning! Secondary partition table overlaps the last partition by
4294964337 blocks!
Try reducing the partition table size by 17179857348 entries.
(Use the 's' item on the experts' menu.)

Caution: Partition 1 doesn't begin on a 8-sector boundary. This may
result in degraded performance on some modern (2009 and later) hard disks.

Consult http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/
for information on disk alignment.

Identified 2 problems!

Recovery/transformation command (? for help): 





username@computername:~$ sudo gdisk
[sudo] password for username: 
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
GPT fdisk (gdisk) version 0.8.8

Type device filename, or press <Enter> to exit: /dev/sda
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Warning! Secondary partition table overlaps the last partition by
4294964337 blocks!
Try reducing the partition table size by 17179857348 entries.
(Use the 's' item on the experts' menu.)

Command (? for help): p
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): GUID redacted for internet
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1565565838
Partitions will be aligned on 8-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34          262177   128.0 MiB   0C01  Microsoft reserved part
   2          264192      5860530175   2.7 TiB     0700  Basic data partition

Command (? for help): v

Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

Warning! Secondary partition table overlaps the last partition by
4294964337 blocks!
Try reducing the partition table size by 17179857348 entries.
(Use the 's' item on the experts' menu.)

Caution: Partition 1 doesn't begin on a 8-sector boundary. This may
result in degraded performance on some modern (2009 and later) hard disks.

Consult http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/
for information on disk alignment.

Identified 2 problems!

Command (? for help): x

Expert command (? for help): ?
a   set attributes
c   change partition GUID
d   display the sector alignment value
e   relocate backup data structures to the end of the disk
g   change disk GUID
h   recompute CHS values in protective/hybrid MBR
i   show detailed information on a partition
l   set the sector alignment value
m   return to main menu
n   create a new protective MBR
o   print protective MBR data
p   print the partition table
q   quit without saving changes
r   recovery and transformation options (experts only)
s   resize partition table
t   transpose two partition table entries
u   Replicate partition table on new device
v   verify disk
w   write table to disk and exit
z   zap (destroy) GPT data structures and exit
?   print this menu

Expert command (? for help): e
Relocating backup data structures to the end of the disk

Expert 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.
username@computername:~$ 

EDIT: Eu já fiz o seguinte:

sudo gdisk x e - mova a tabela de backup para a parte de trás do disco w

Não corrigiu problemas. Então eu fiz

sudo gdisk r d use main GPT header (rebuilding backup) w

Também não corrigiu problemas. Então eu fiz

sudo gdisk u Replicate partition table on new device w

Isso também não resolveu os problemas, então eu fiz

sudo gdisk o create a new empty GUID partition table (GPT) w

seguido de reinicialização

sudo gdisk n add a new partition partição 1 com início setor 32, fim 262177, tipo 0c01. Partição 2 com setor inicial 264192, final 1565565838, tipo 0700. w para gravar no disco.

Eu então percebi que tinha cometido um erro na última etapa, eu tinha feito a nova partição 2 terminar em 746GiB porque era isso que o drive estava mostrando sob o antigo GPT quebrado. Então eu voltei e refiz, para fazer a segunda partição formatada para 2.7GiB.

sudo gdisk o create a new empty GUID partition table (GPT) w

sudo gdisk n add a new partition partição 1 igual a anterior, partição 2 início 264192, final 56860533134, tipo 0700.

No entanto, quando o coloco na caixa do Windows 7 ou caixa xubuntu com o gabinete USB, parece que ainda acho que o HDD é fisicamente uma unidade 746GiB, e as novas partições em 2.7TiB são errôneas, e o gdisk me aconselhou a reparar tabela de partições. Pode ser um problema com o gabinete USB, então vou colocá-lo de volta na caixa com SATA e usar o SystemRescueCD nele novamente.

    
por ID-ZERO 13.06.2015 / 09:29

1 resposta

2

Sua tabela de partições afirma que o tamanho do disco é de apenas 0.7 tb, apesar do fato de ser realmente 2.7 e ter uma partição usando tanto espaço. Use gdisk para criar uma nova tabela de partições vazia e, em seguida, recrie essas duas partições com exatamente os mesmos setores inicial e final e digite os códigos, e isso deve corrigir isso.

    
por 14.06.2015 / 04:59