An open API service indexing awesome lists of open source software.

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.

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
```