Error when writing to disk end

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

Error when writing to disk end

Post by Maël »

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

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: 1454
Joined: 12 Mar 2005 14:15

Re: Error when writing to disk end

Post 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.
pbies
Posts: 2
Joined: 28 Sep 2019 21:56

Re: Error when writing to disk end

Post 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.
Post Reply