Error when writing to disk end

Bug reports concerning HxD.
Post Reply
Maël
Site Admin
Posts: 1137
Joined: 12 Mar 2005 14:15

Error when writing to disk end

Post by Maël » 28 Sep 2019 21:42

hxddiskwriteerror.png
hxddiskwriteerror.png (274.35 KiB) Viewed 298 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.

pbies
Posts: 2
Joined: 28 Sep 2019 21:56

Re: Error when writing to disk end

Post by pbies » 28 Sep 2019 22:01

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.

Maël
Site Admin
Posts: 1137
Joined: 12 Mar 2005 14:15

Re: Error when writing to disk end

Post by Maël » 29 Sep 2019 00:05

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.

pbies
Posts: 2
Joined: 28 Sep 2019 21:56

Re: Error when writing to disk end

Post by pbies » 29 Sep 2019 09:54

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.

Post Reply