Can't write

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
fatturi
Posts: 1
Joined: 17 Dec 2019, 09:35

Can't write

#1 Post by fatturi »

hi,

i'm not an expert, not mothertongue.

I have a problem, 2 warning about incorrect number of heads and sectors

I go to the "geometry" and I put the correct numbers, then I go to the "write" and confirm with Y. the program says to reboot the machine.

after that reboot, nothing happens, like I can't write the new numbers.

this is the log:


Tue Dec 17 13:36:38 2019
Command line: TestDisk

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 6.4, Cygwin32 2009.0
ext2fs lib: 1.43.1, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.0
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=1000097185792
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=268419072
Hard disk list
Disk /dev/sda - 1000 GB / 931 GiB - CHS 459004 224 19, sector size=512 - ST1000DM010-2EP102, S/N:2020202020202020202020204e5a373144543453, FW:CC43
Drive D: - 268 MB / 255 MiB - CHS 63 64 32, sector size=2048 - HL-DT-ST DVDRAM GH22NS40, FW:NL01

Partition table type (auto): Intel
Disk /dev/sda - 1000 GB / 931 GiB - ST1000DM010-2EP102
Partition table type: Intel

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 459004 224 19
Geometry from i386 MBR: head=255 sector=63
BAD_RS LBA=2048 640
NTFS at 0/107/16
heads/cylinder 255 (NTFS) != 224 (HD)
sect/track 63 (NTFS) != 19 (HD)
BAD_RS LBA=206848 55328
NTFS at 48/134/15
heads/cylinder 255 (NTFS) != 224 (HD)
sect/track 63 (NTFS) != 19 (HD)
Current partition structure:
Warning: number of heads/cylinder mismatches 255 (NTFS) != 224 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 19 (HD)
1 * HPFS - NTFS 0 107 16 48 134 14 204800 [Riservato per il sistema]

Warning: Bad starting sector (CHS and LBA don't match)
Warning: number of heads/cylinder mismatches 255 (NTFS) != 224 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 19 (HD)
2 P HPFS - NTFS 48 134 15 459004 33 13 1953314816

Warning: Bad starting sector (CHS and LBA don't match)

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 459004 224 19
NTFS at 0/107/16
heads/cylinder 255 (NTFS) != 224 (HD)
sect/track 63 (NTFS) != 19 (HD)
filesystem size 204800
sectors_per_cluster 8
mft_lcn 8533
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 107 16 48 134 14 204800 [Riservato per il sistema]
NTFS, blocksize=4096, 104 MB / 100 MiB
NTFS at 48/134/15
heads/cylinder 255 (NTFS) != 224 (HD)
sect/track 63 (NTFS) != 19 (HD)
filesystem size 1953314816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 48 134 15 459004 33 13 1953314816
NTFS, blocksize=4096, 1000 GB / 931 GiB
file_pread(4,2,buffer,1953525759(459005/25/5)) lseek err Invalid argument
file_pread(4,1,buffer,1953525759(459005/25/5)) lseek err Invalid argument
file_pread(4,2,buffer,1953525760(459005/25/6)) lseek err Invalid argument
file_pread(4,8,buffer,1953525248(459004/222/7)) lseek err Invalid argument
file_pread(4,1,buffer,1953525248(459004/222/7)) lseek err Invalid argument
Warning: the current number of heads per cylinder is 224 but the correct value may be 255.

Results
* HPFS - NTFS 0 107 16 48 134 14 204800 [Riservato per il sistema]
NTFS, blocksize=4096, 104 MB / 100 MiB
P HPFS - NTFS 48 134 15 459004 33 13 1953314816
NTFS, blocksize=4096, 1000 GB / 931 GiB

interface_write()
1 * HPFS - NTFS 0 107 16 48 134 14 204800 [Riservato per il sistema]
2 P HPFS - NTFS 48 134 15 459004 33 13 1953314816
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
New geometry
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63 sector_size=512

Analyse Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
NTFS at 12/223/20
Current partition structure:
1 * HPFS - NTFS 0 32 33 12 223 19 204800 [Riservato per il sistema]
2 P HPFS - NTFS 12 223 20 121601 25 24 1953314816

search_part()
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121602 255 63
NTFS at 0/32/33
filesystem size 204800
sectors_per_cluster 8
mft_lcn 8533
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 32 33 12 223 19 204800 [Riservato per il sistema]
NTFS, blocksize=4096, 104 MB / 100 MiB
NTFS at 12/223/20
filesystem size 1953314816
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 12 223 20 121601 25 24 1953314816
NTFS, blocksize=4096, 1000 GB / 931 GiB
file_pread(4,2,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,1,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,1,buffer,1953525248(121601/82/18)) lseek err Invalid argument
file_pread(4,8,buffer,1953525376(121601/84/20)) lseek err Invalid argument
file_pread(4,8,buffer,1953525504(121601/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,1953525632(121601/88/24)) lseek err Invalid argument
file_pread(4,7,buffer,1953525761(121601/90/27)) lseek err Invalid argument
file_pread(4,2,buffer,1953525760(121601/90/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525768(121601/90/34)) lseek err Invalid argument
file_pread(4,3,buffer,1953525776(121601/90/42)) lseek err Invalid argument
file_pread(4,3,buffer,1953525823(121601/91/26)) lseek err Invalid argument
file_pread(4,8,buffer,1953525839(121601/91/42)) lseek err Invalid argument
file_pread(4,11,buffer,1953525886(121601/92/26)) lseek err Invalid argument
file_pread(4,2,buffer,1953527808(121601/122/58)) lseek err Invalid argument

Results
* HPFS - NTFS 0 32 33 12 223 19 204800 [Riservato per il sistema]
NTFS, blocksize=4096, 104 MB / 100 MiB
P HPFS - NTFS 12 223 20 121601 25 24 1953314816
NTFS, blocksize=4096, 1000 GB / 931 GiB

interface_write()
1 * HPFS - NTFS 0 32 33 12 223 19 204800 [Riservato per il sistema]
2 P HPFS - NTFS 12 223 20 121601 25 24 1953314816

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Can't write

#2 Post by cgrenier »

You can ignore the warnings, they are only warnings, not error messages.
Otherwise the partition table looks OK, two partitions are listed.

Locked