You are not logged in.

#1 2011-10-13 20:56:36

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

GPT partition recovery

Hi guys,
I've got a hdd using GPT. There was a power failure while I was moving and resizing a NTFS partition at the end of the drive. Now my partition table is messed up and I can't restore it with gdisk. My question is, If I create a new bigger partition containing the old one, and mkntfs it without zeroing data, will a windows chkdsk restore all my files (I really need them)? BTW, testdisk does not detect it either.
Thx in advance.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#2 2011-10-13 21:40:27

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: GPT partition recovery

Normally GPT should have a backup partition table, at the 'end' of the disk. Are you able to use that?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2011-10-13 21:48:00

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

Unfortunately no, when I tried to use it there wasn't any. I forgot to mention that GParted was only at the read only step of the process, so it didn't actually move any data.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#4 2011-10-13 23:58:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: GPT partition recovery

Can you repair with gdisk?

Offline

#5 2011-10-14 07:20:43

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

Nope, I tried loading the backup with gdisk, but it didn't work. And I don't know the starting cylinder either, so I can't recreate it manually.

Last edited by Alucryd (2011-10-14 07:21:36)


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#6 2011-10-14 07:55:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: GPT partition recovery

Gparted + no UPS + power failure = data loss sad

As the Irish say, "I think yer foooked lad!"

Last edited by graysky (2011-10-14 18:02:28)

Offline

#7 2011-10-14 08:14:12

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

I'm afraid you're right. Still I'll try to recreate a partition and format without zeroing, see what testdisk can do about it before I try chkdsk.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#8 2011-10-14 09:50:17

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: GPT partition recovery

Gpart is an optdepend of GParted. Then there's fixparts which comes with gptfdisk. Try those two.

Offline

#9 2011-10-14 12:32:00

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

Right now I only have a GParted bootable flash (which includes gpart) and a mint 11 one, but neither of them contains fixparts (fixparts is not even in the mint repos, don't know about debian). I had removed Arch and Windows to migrate from bios-mbr to uefi-gpt (and my internet connection is down until at least next week). I'll download fixparts from sourceforge and see if it can help. Thx for all the answers.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#10 2011-10-14 13:03:58

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: GPT partition recovery

Parted Magic has fixparts. Like I said, it's not a standalone package, it's part of gptfdisk.

Last edited by Gusar (2011-10-14 13:04:29)

Offline

#11 2011-10-14 13:10:13

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

Thx for the link. I know fixparts is part of gptfdisk, I read the documentation yesterday. But you will still find seperate binaries (rpms and debs) on the sourceforge page since it's not included in gdisk on rpm or deb distros.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

#12 2011-10-14 13:15:46

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: GPT partition recovery

fixparts is for repairing MBR disks, do not use it for GPT disks.

@Alucryd: Post the output of gdisk. BTW did you try testdisk?

Offline

#13 2011-10-14 14:48:44

Alucryd
Developer
From: France
Registered: 2011-05-07
Posts: 110
Website

Re: GPT partition recovery

@the.ridikulus.rat : Thx for the heads up, seems I would have made things worse. I don't have my laptop right now, but gdisk throws no error whatsoever, protective mbr and gpt partition tables are fine (it shows the efi sys, my arch btrfs partition, end the windows ntfs partitions, which are all empty right now, but the data ntfs partition simply vanished, apparently, even in read only mode, parted simply erased the entry in the partition table). I tried to have testdisk detect the lost partition yesterday but to no avail. I'll try to see if it can see the files on the partition if I recreate one without zeroing this evening.
And if not, well I'll just give up, fortunately I had a backup of the most critical files.


The bird of Hermes is my name, eating my wings to make me tame.

Offline

Board footer

Powered by FluxBB