Hard disk seems too small Topic is solved

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
quadrapoole
Posts: 2
Joined: 23 Aug 2024, 18:52

Hard disk seems too small

#1 Post by quadrapoole »

Hi everyone,

I had an unclean shutdown of unraid and now my nvme drive can't be mounted.

I used test disk and it found the partition I want to recover when I used deeper search and it says that the hard disk seems too small!!

Image

I'm pretty sure I need to adjust the cylinder in the geometry tab.

Can someone please help let me know what I should set the cylinder at to make it work?

My wife is so mad at me rn. :(

Below is the log

Fri Aug 23 11:46:55 2024
Command line: TestDisk

TestDisk 7.2, Data Recovery Utility, February 2024
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 11.2, Cygwin 3001.4
ext2fs lib: 1.45.3, ntfs lib: available, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=4096805658624
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=61530439680
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=1998011236352
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=4096787480576
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=0
Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=61528342528
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=0
Warning: can't get size for \\.\G:
Hard disk list
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - WD_BLACK SN850X 2000GB, S/N:E823_8FA6_BF53_0001_001B_448B_4BDE_F46C., FW:620281WD
Disk \\.\PhysicalDrive1 - 4096 GB / 3815 GiB - CHS 498074 255 63, sector size=512 - TEAM TM8FPW004T, S/N:0000_0000_0000_0000_0C82_D500_8050_0005., FW:H231217a
Disk \\.\PhysicalDrive2 - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - WD_BLACK SN850X 2000GB, S/N:E823_8FA6_BF53_0001_001B_448B_4A53_E3B8., FW:620361WD
Disk \\.\PhysicalDrive3 - 61 GB / 57 GiB - CHS 7480 255 63, sector size=512 - USB SanDisk 3.2Gen1, S/N:0901a19ebefbdb9f3812, FW:1.00

Partition table type (auto): EFI GPT
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - WD_BLACK SN850X 2000GB
Partition table type: EFI GPT

Analyse Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=3907029167 (expected 3907029167)
hdr_lba_start=34
hdr_lba_end=3907029134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
1 P Linux filesys. data 2048 3907029167 3907027120

search_part()
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_btrfs: part_size 3907027120
Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

Results
P Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

interface_write()
1 P Linux filesys. data 2048 3907029167 3907027120

search_part()
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_btrfs: part_size 3907027120
Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

recover_btrfs: part_size 3907027120
Linux filesys. data 132992 3907160111 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB
This partition ends after the disk limits. (start=132992, size=3907027120, end=3907160111, disk end=3907029168)
Search for partition aborted
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63
Check the hard disk size: HD jumper settings, BIOS detection...
The hard disk (2000 GB / 1863 GiB) seems too small! (< 2000 GB / 1863 GiB)
The following partition can't be recovered:
Linux filesys. data 132992 3907160111 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

Results
P Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

interface_write()
1 P Linux filesys. data 2048 3907029167 3907027120
simulate write!

Analyse Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=3907029167 (expected 3907029167)
hdr_lba_start=34
hdr_lba_end=3907029134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
1 P Linux filesys. data 2048 3907029167 3907027120

search_part()
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_btrfs: part_size 3907027120
Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

Results
P Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

interface_write()
1 P Linux filesys. data 2048 3907029167 3907027120

search_part()
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_btrfs: part_size 3907027120
Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

recover_btrfs: part_size 3907027120
Linux filesys. data 132992 3907160111 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB
This partition ends after the disk limits. (start=132992, size=3907027120, end=3907160111, disk end=3907029168)
Search for partition aborted
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63
Check the hard disk size: HD jumper settings, BIOS detection...
The hard disk (2000 GB / 1863 GiB) seems too small! (< 2000 GB / 1863 GiB)
The following partition can't be recovered:
Linux filesys. data 132992 3907160111 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

Results
P Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

interface_write()
1 P Linux filesys. data 2048 3907029167 3907027120
simulate write!

Analyse Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=3907029167 (expected 3907029167)
hdr_lba_start=34
hdr_lba_end=3907029134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
1 P Linux filesys. data 2048 3907029167 3907027120

search_part()
Disk \\.\PhysicalDrive0 - 2000 GB / 1863 GiB - CHS 243201 255 63

recover_btrfs: part_size 3907027120
Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

Results
P Linux filesys. data 2048 3907029167 3907027120
btrfs blocksize=4096 Backup superblock, 2000 GB / 1863 GiB

interface_write()
1 P Linux filesys. data 2048 3907029167 3907027120
quadrapoole
Posts: 2
Joined: 23 Aug 2024, 18:52

Re: Hard disk seems too small

#2 Post by quadrapoole »

I fixed it by just plugging the disk into unraid and unassigned it as a cache drive.

Turns out unassigned devices can read the drive.

I think it was unraid that messed up the file system. I tried to format it as XFS but it didn't do it properly and was still btrfs.
Locked