Page 1 of 1

Error when writing to disk end

Posted: 28 Sep 2019 21:42
by Maël
hxddiskwriteerror.png
hxddiskwriteerror.png (274.35 KiB) Viewed 11146 times
Writing to the end of a 4 TiB disk causes a write errror (which might be normal), but the stream exception message dialog indicates at least another mistake.

The error message translates to:
Can't open the drive "\\.\PhysicalDrive0" for writing. System error. Code: 2.
Can't find a specific file.
Possible causes might be that writing to the end of the disk is disallowed by Windows or a driver.

Re: Error when writing to disk end

Posted: 28 Sep 2019 22:01
by pbies
I am the author of this screenshot.

I suspect also some variable-length problems when dealing with 4 TB disks. (Maybe sector is out of range etc.)
In this case it is SSD, exactly Samsung QVO 860.

The same error is on WD My Book 4 TB external drive.
I just checked right now.

However HxD version 1.7.7.0 does not have any problems writing at the end of these disks.

Re: Error when writing to disk end

Posted: 29 Sep 2019 00:05
by Maël
pbies wrote: 28 Sep 2019 22:01 However HxD version 1.7.7.0 does not have any problems writing at the end of these disks.
In that case it is probably an issue with unmounting logical drives on the physical disk.

A range problem is unlikely, since HxD works with 64 bit integers, and it works under 1.7.7.0.

Did it mention that unmounting partitions failed?

Are both disks EFI / GUID partitioned?

I have no disk that large currently to trigger this error though, so it might take a while to fix.

Re: Error when writing to disk end

Posted: 29 Sep 2019 09:54
by pbies
There were no messages about any unmounting. These are simple single full-disk size partitions.
Yes, the disks are GPT formatted but were opened as physical disks.