Reset disk geometry in MBR not working
Posted: 11 Jul 2023, 12:04
I have a old Maxtor 120 GB disk that I am trying to use. Somehow, I've managed to set the disk size to be 10MB. This means the largest partition I can create is 9MB and not very useful! I think I can use TestDisk to change the disk size in the MBR. The number of cylinders is showing as 1. (heads are 16, 63 sectors per track and 512 sector size). I've tried changing it to 12,000 and the size increases to 98 GB. I write the mbr and then shutdown the pc and reboot. The size of the disk is unchanged - still 10mb.
I'm on Windows 10, 64 Bit. I have tried the disk connected on an IDE port and also on usb via an adapter. I've tried version 7.2 and 7.0.
Should this work? Am I misunderstanding how to fix the problem?
Thanks for any help and advice
dpr
Here's the log file from 7.2:
(disks 6,7,8 and 9 are removable memory card drives)
Tue Jul 11 10:00:32 2023
Command line: TestDisk
TestDisk 7.2-WIP, Data Recovery Utility, February 2023
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: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=750156374016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive5)=1500301910016
filewin32_getfilesize(\\.\PhysicalDrive6) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive6) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive6
filewin32_getfilesize(\\.\PhysicalDrive7) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive7) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive7
filewin32_getfilesize(\\.\PhysicalDrive8) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive8) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive8
filewin32_getfilesize(\\.\PhysicalDrive9) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive9) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive9
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive10)=10240000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=107374182400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=1500299265024
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=85899345920
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\L:)=0
Warning: can't get size for \\.\L:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\M:)=0
Warning: can't get size for \\.\M:
filewin32_getfilesize(\\.\N:) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\N:) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\N:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\P:)=0
Warning: can't get size for \\.\P:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\Q:)=0
Warning: can't get size for \\.\Q:
Hard disk list
Disk \\.\PhysicalDrive0 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:6QG1FVNJ, FW:3.AAK
Disk \\.\PhysicalDrive1 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:5QG0XNSC, FW:3.AAK
Disk \\.\PhysicalDrive2 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:5QG0WKN6, FW:3.AAE
Disk \\.\PhysicalDrive3 - 750 GB / 698 GiB - CHS 91201 255 63, sector size=512 - SAMSUNG HD753LJ, S/N:S13UJ1MPC12571, FW:1AA01107
Disk \\.\PhysicalDrive4 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:6QG1FZRT, FW:3.AAK
Disk \\.\PhysicalDrive5 - 1500 GB / 1397 GiB - CHS 182401 255 63, sector size=512 - ST31500541AS, S/N:6XW04SNE, FW:CC32
Disk \\.\PhysicalDrive10 - 10240 KB / 10000 KiB - CHS 1 255 63, sector size=512 - Maxtor 6 Y120P0, S/N:9321638E2222, FW:1BW0
Partition table type (auto): Intel
Disk \\.\PhysicalDrive10 - 10240 KB / 10000 KiB - Maxtor 6 Y120P0
Partition table type: Intel
New geometry
Disk \\.\PhysicalDrive10 - 98 GB / 91 GiB - CHS 12000 255 63 sector_size=512
A new copy of MBR code has been written.
You have to reboot for the change to take effect.
TestDisk exited normally.
I'm on Windows 10, 64 Bit. I have tried the disk connected on an IDE port and also on usb via an adapter. I've tried version 7.2 and 7.0.
Should this work? Am I misunderstanding how to fix the problem?
Thanks for any help and advice
dpr
Here's the log file from 7.2:
(disks 6,7,8 and 9 are removable memory card drives)
Tue Jul 11 10:00:32 2023
Command line: TestDisk
TestDisk 7.2-WIP, Data Recovery Utility, February 2023
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: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=750156374016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive5)=1500301910016
filewin32_getfilesize(\\.\PhysicalDrive6) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive6) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive6
filewin32_getfilesize(\\.\PhysicalDrive7) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive7) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive7
filewin32_getfilesize(\\.\PhysicalDrive8) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive8) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive8
filewin32_getfilesize(\\.\PhysicalDrive9) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive9) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive9
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive10)=10240000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=107374182400
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=1500299265024
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=500096991744
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=85899345920
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\L:)=0
Warning: can't get size for \\.\L:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\M:)=0
Warning: can't get size for \\.\M:
filewin32_getfilesize(\\.\N:) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\N:) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\N:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\P:)=0
Warning: can't get size for \\.\P:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\Q:)=0
Warning: can't get size for \\.\Q:
Hard disk list
Disk \\.\PhysicalDrive0 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:6QG1FVNJ, FW:3.AAK
Disk \\.\PhysicalDrive1 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:5QG0XNSC, FW:3.AAK
Disk \\.\PhysicalDrive2 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:5QG0WKN6, FW:3.AAE
Disk \\.\PhysicalDrive3 - 750 GB / 698 GiB - CHS 91201 255 63, sector size=512 - SAMSUNG HD753LJ, S/N:S13UJ1MPC12571, FW:1AA01107
Disk \\.\PhysicalDrive4 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST3500630AS, S/N:6QG1FZRT, FW:3.AAK
Disk \\.\PhysicalDrive5 - 1500 GB / 1397 GiB - CHS 182401 255 63, sector size=512 - ST31500541AS, S/N:6XW04SNE, FW:CC32
Disk \\.\PhysicalDrive10 - 10240 KB / 10000 KiB - CHS 1 255 63, sector size=512 - Maxtor 6 Y120P0, S/N:9321638E2222, FW:1BW0
Partition table type (auto): Intel
Disk \\.\PhysicalDrive10 - 10240 KB / 10000 KiB - Maxtor 6 Y120P0
Partition table type: Intel
New geometry
Disk \\.\PhysicalDrive10 - 98 GB / 91 GiB - CHS 12000 255 63 sector_size=512
A new copy of MBR code has been written.
You have to reboot for the change to take effect.
TestDisk exited normally.