lost partition- resize screwup during mythbuntu install
Posted: 03 Sep 2025, 05:37
Hello. I recently screwed up a hard drive which I was using for data storage on my Ubuntu system, and now can not see anything that I had stored there. This 2TB drive had been configured just for storage with a single ext4 partition , and had about 1.2TB free, so I thought I could squeeze in a partition of about 1TB, where I wanted to install Mythbuntu. During the Mythbuntu install I was given the option to resize the drive's partition ( I thought ) and I screwed something up while doing that. Now I only see a 1TB partition with the new OS files, and I lost the 800GB of stored data. I was hoping that Testdisk could help but I am having problems, due to my limited understanding of partitions and Testdisk. I have tried my best but can't seem to get anywhere. Can I get back to nmy data using Testdisk, or should I go over to Photrec?
Seems like forum rules do not allow me to attach my testdisk.log here , so I cut/paste the results after "Analyse":
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
Partition Start End Size in sectors
P EFI System 40 409639 409600 [EFI System Partition] [EFI]
>P Linux filesys. data 1953904640 3907029127 1953124488
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
P=Primary D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
ext4 blocksize=4096 Large_file Sparse_SB, 999 GB / 931 GiB
At the start of the search, "Deeper Search" shows :
check_FAT: Unusual media descriptor (0xf0!=0xf8)
Warning: number of heads/cylinder mismatches 16 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 63 (HD)
EFI System 40 409639 409600 [EFI System Partition] [EFI]
check_FAT: Unusual media descriptor (0xf0!=0xf8)
Warning: number of heads/cylinder mismatches 16 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 63 (HD)
EFI System 46 409645 409600 [EFI System Partition] [EFI]
.and then upon completion of "Deeper Search" , displays:
..TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
The harddisk (2000 GB / 1863 GiB) seems too small! (< 4000 GB / 3725 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partitions can't be recovered:
Partition Start End Size in sectors
> Linux filesys. data 2926458910 4879583397 1953124488
Linux filesys. data 2926458912 4879583399 1953124488
Linux filesys. data 2926983190 4880107677 1953124488
Linux filesys. data 2926983192 4880107679 1953124488
Linux filesys. data 2927245328 4880369815 1953124488
Linux filesys. data 2927246432 4880370919 1953124488
Linux filesys. data 2927246568 4880371055 1953124488
Linux filesys. data 2927246688 4880371175 1953124488
Linux filesys. data 2927246752 4880371239 1953124488
Linux filesys. data 2927246816 4880371303 1953124488
[ Continue ]
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 999 GB / 931 GiB
The list of partitions which can't be recovered scrolls on forever-- I can't tell you how long this list is, but there are a number of Mac HFS partiotions that come up last on the list ( this hard drive saw a previous life in a Mac:
The following partitions can't be recovered:
Partition Start End Size in sectors
> Linux filesys. data 2927507280 4880631767 1953124488
Linux filesys. data 2927507416 4880631903 1953124488
Mac HFS 3038180068 6039618840 3001438773
Mac HFS 3841755268 4051470467 209715200
Mac HFS 3905759588 7811109539 3905349952
Mac HFS 3905770677 3907040212 1269536
Mac HFS 3905770877 3907040412 1269536
Mac HFS 3905771157 3907040692 1269536
Mac HFS 3905771437 3907040972 1269536
Mac HFS 3905771580 3907041115 1269536
I can use any suggestions as to my next step. My preference is to try and get the partition issue resolved, although I know I can get the data back (mostly images were stored here ) using PhotoRec.
Thank you for any suggestions. If there is a way to upload the testdisk.log file, please let me know how I can do this.
--Peter
Seems like forum rules do not allow me to attach my testdisk.log here , so I cut/paste the results after "Analyse":
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
Partition Start End Size in sectors
P EFI System 40 409639 409600 [EFI System Partition] [EFI]
>P Linux filesys. data 1953904640 3907029127 1953124488
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
P=Primary D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
ext4 blocksize=4096 Large_file Sparse_SB, 999 GB / 931 GiB
At the start of the search, "Deeper Search" shows :
check_FAT: Unusual media descriptor (0xf0!=0xf8)
Warning: number of heads/cylinder mismatches 16 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 63 (HD)
EFI System 40 409639 409600 [EFI System Partition] [EFI]
check_FAT: Unusual media descriptor (0xf0!=0xf8)
Warning: number of heads/cylinder mismatches 16 (FAT) != 255 (HD)
Warning: number of sectors per track mismatches 32 (FAT) != 63 (HD)
EFI System 46 409645 409600 [EFI System Partition] [EFI]
.and then upon completion of "Deeper Search" , displays:
..TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 2000 GB / 1863 GiB - CHS 243201 255 63
The harddisk (2000 GB / 1863 GiB) seems too small! (< 4000 GB / 3725 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partitions can't be recovered:
Partition Start End Size in sectors
> Linux filesys. data 2926458910 4879583397 1953124488
Linux filesys. data 2926458912 4879583399 1953124488
Linux filesys. data 2926983190 4880107677 1953124488
Linux filesys. data 2926983192 4880107679 1953124488
Linux filesys. data 2927245328 4880369815 1953124488
Linux filesys. data 2927246432 4880370919 1953124488
Linux filesys. data 2927246568 4880371055 1953124488
Linux filesys. data 2927246688 4880371175 1953124488
Linux filesys. data 2927246752 4880371239 1953124488
Linux filesys. data 2927246816 4880371303 1953124488
[ Continue ]
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 999 GB / 931 GiB
The list of partitions which can't be recovered scrolls on forever-- I can't tell you how long this list is, but there are a number of Mac HFS partiotions that come up last on the list ( this hard drive saw a previous life in a Mac:
The following partitions can't be recovered:
Partition Start End Size in sectors
> Linux filesys. data 2927507280 4880631767 1953124488
Linux filesys. data 2927507416 4880631903 1953124488
Mac HFS 3038180068 6039618840 3001438773
Mac HFS 3841755268 4051470467 209715200
Mac HFS 3905759588 7811109539 3905349952
Mac HFS 3905770677 3907040212 1269536
Mac HFS 3905770877 3907040412 1269536
Mac HFS 3905771157 3907040692 1269536
Mac HFS 3905771437 3907040972 1269536
Mac HFS 3905771580 3907041115 1269536
I can use any suggestions as to my next step. My preference is to try and get the partition issue resolved, although I know I can get the data back (mostly images were stored here ) using PhotoRec.
Thank you for any suggestions. If there is a way to upload the testdisk.log file, please let me know how I can do this.
--Peter