How can I limit a hard drive to only 8.4 GB?

the_baron

Commendable
Dec 29, 2016
2
0
1,510
I'm working with a legacy system that is running DOS 6.22. This has an upper limit of 8.4 GB on hard disk capacity. I haven't been able to get my hands on any 8.4 GB or smaller drives for a reasonable price but I do have access to a large number of 9.5 GB drives. I was wondering if there was a way to limit the drives so that DOS 6.22 would work with them. I cannot change the BIOS version and I cannot use a different version of DOS. I was hoping you guys would know if if was possible to edit the hard disk firmware or maybe turn off a read head. Any suggestions?
 
Solution
You need to set the HPA to 8.4GB. Assuming that the firmware isn't locked down by the particular model of drive you are using, you should be able to do it with the Linux program, "hdparm".

Assuming that the number of sectors you want the drive to contain is 16,406,250 (~8.4GB), you would use the following command, where XYZ is the specific device for your drive in Linux. You will likely have to do this on a system that can communicate with the full capacity of the drive.

> hdparm -N p16406250 /dev/XYZ

DR_Luke

Honorable
Dec 1, 2016
363
0
11,160
You need to set the HPA to 8.4GB. Assuming that the firmware isn't locked down by the particular model of drive you are using, you should be able to do it with the Linux program, "hdparm".

Assuming that the number of sectors you want the drive to contain is 16,406,250 (~8.4GB), you would use the following command, where XYZ is the specific device for your drive in Linux. You will likely have to do this on a system that can communicate with the full capacity of the drive.

> hdparm -N p16406250 /dev/XYZ
 
Solution

the_baron

Commendable
Dec 29, 2016
2
0
1,510


Thanks for the advice, I'll try that.