This document describes one specific method of how to copy files to an old computer running MS-DOS from a modern computer running Linux via a COM (Serial) port using a null modem cable.
This is useful if you want to avoid having to use physical media but also don't have a network card for the MS-DOS computer or don't want to use a network card either.
- A USB to RS-232 adapter (e.g. https://amzn.eu/d/eIfenWQ), if your main computer doesn't have a built-in COM (Serial) port.
- A null modem cable (e.g.https://amzn.eu/d/d7jq5K8).
- A copy of TXZM for the MS-DOS computer: https://archive.org/details/txzm241
- A floppy disk or some other means to initially copy the TXZM software to the MS-DOS computer.
- Copy the TXZM software onto the MS-DOS computer using whatever means you have available, e.g. using a floppy disk.
- Run
EDITto create a filerecv.batwith the following content, substitutingcomXwith the COM port you are going to use on the MS-DOS computer:
@txzm com2 -b115200 -w128 -i -p -h -r download- Install
minicom. - Plug in the USB to RS-232 adapter if your computer doesn't have a built-in COM (Serial) port.
- Run
sudo minicom. - Press Ctrl+A, O; go to 'Serial port setup' and select
/dev/ttyUSB0as 'Serial Device' if using the USB adapter, or one of the/dev/ttyS*if using the built-in COM port. - In 'Serial port setup', also configure 'Bps/Par/Bits' to be '115200 8E1'.
- In 'Serial port setup', also enable 'Hardware Flow Control' and 'Software Flow Control'.
- Press Ctrl+A, O; go to 'File transfer protocols', modify 'zmodem' 'Program' to be
sz -vv -b -l 1024 -w 1024. These are the settings that I found to yield the highest bitrate with no errors, but you can experiment with them by readingman sz. - Press Ctrl+A, O; select 'Save setup as dfl', so you don't have to configure all of this every time you start
minicom.
- On MS-DOS computer, run the
recv.batyou created earlier. - On Linux computer, run
sudo minicom, then press Ctrl+A, S; select 'zmodem', use minicom's interface to navigate the filesystem, select the files and initiate the transfer. - Once the transfer is complete, you should see the files on the MS-DOS computer in the 'DOWNLOAD' directory.