https://github.com/asivery/simple-dos-hdd-imager
A simple tool for imaging vintage DOS PCs' HDDs using BIOS calls.
https://github.com/asivery/simple-dos-hdd-imager
Last synced: about 2 months ago
JSON representation
A simple tool for imaging vintage DOS PCs' HDDs using BIOS calls.
- Host: GitHub
- URL: https://github.com/asivery/simple-dos-hdd-imager
- Owner: asivery
- License: gpl-3.0
- Created: 2024-11-12T01:03:27.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-12T01:57:08.000Z (over 1 year ago)
- Last Synced: 2026-01-01T20:19:49.998Z (6 months ago)
- Language: Assembly
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Simple DOS HDD imager
This tool simply sends the contents of the hard drive over serial (COM1).
It fetches the drive geometry using AH=0x08 INT 13H, then reads it sector-by-sector using AH=0x02 INT 13H (CHS mode), and transmits it over COM1.
### Defaults:
Sector Size: 512 bytes
Baud: 115.2 kb/s
Comport: COM1 (0x3f8)
Drive to image: 0 (C:) (DL = 0x80)
##### Defaults can be changed in `imager.asm`
### To compile:
```
nasm -f bin -o imager.com imager.asm
```
### To receive the image on a modern PC:
Configure the port:
```
stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -ixon -ixoff -icrnl -onlcr -opost raw
```
Copy the incoming data into an image file:
```
cat /dev/ttyUSB0 > image.img
```