Page 1 of 1

Linux partition lost

Posted: 20 Mar 2018, 08:24
by JoeMcK
We had a partition that had this structure

Disk /dev/sdn: 32.8 TiB, 36002026487808 bytes, 70316457984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5DBAF6BE-3A6E-45F8-AA4A-B759B9A56976

Device Start End Sectors Size Type
/dev/sdn1 2048 70316455935 70316453888 32.8T Microsoft basic data

Testdisk sees it, it can see the data, and in fact we are recovering the data via testdisk.

However the Lun was extended to 48TB, from 32.8T. When we try to recover the partition table Testdisk seems to struggle with the start and end blocks.

Can you suggest how we work around this?


Re: Linux partition lost

Posted: 21 Mar 2018, 08:44
by cgrenier
To resize your filesystem, you had to resize the lun, resize the partition and resize the filesystem itself. Resizing the partition usually requires umounting the filesystem.
It's easier to avoid using a partition table, you only have to resize the lun and resize the filesystem. Both can be done online.

You are using a gpt partition table. Because you have resized the lun, the backup gpt (at the end of the disk) is now missing and need to be recreated.
What problem do you have with testdisk ? Do you have it with version 7.1-WIP ?

Re: Linux partition lost

Posted: 23 Mar 2018, 00:15
by JoeMcK
Thanks all good with the new version for my situation.

We recovered the lun and all is happy. We did take a while to do it, as when we could see the data, we decided to copy it off before doing any more changes to partition tables, just in case something went wrong. In the end it worked perfectly, no loss of data.....just a few more grey hairs for me and my peers.

Re: Linux partition lost

Posted: 23 Mar 2018, 06:54
by cgrenier
Perfect! I hope the downtime has been limited.