User`s guide

26
ACCESSING SD CARDS ON WINDOWS
If you must use Windows, then these ports of dd and cpmtools are useful.
I put dd.exe in a directory on the PATH, and I unzip cpmtools so that it ends up in the C:\cpmtools
directory.
The first thing to do is to determine which block device is your SD Card. You don't want to
accidentally write to your hard disk. Insert the SD Card and type :-
C:\ak\tmp>dd --filter=removable --list
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
NT Block Device Objects
\\?\Device\Harddisk2\Partition0
link to \\?\Device\Harddisk2\DR7
\\?\Device\Harddisk3\Partition0
link to \\?\Device\Harddisk3\DR8
\\?\Device\Harddisk4\Partition0
link to \\?\Device\Harddisk4\DR13
Removable media other than floppy. Block size = 512
size is 1015808000 bytes
The --filter=removable ensures the list returned only includes removable devices. You're looking for
the one around the right size. In this case, as I'm using a 1GB SD Card, its clearly
\\?\Device\Harddisk4\Partition0.
To read one of the partitions (0-7), use the following command. The partition number is the skip=
value, and partitions 0 to 7 correspond to CONFIG types 18 to 1F :-
C:\ak\tmp>dd if=\\?\Device\Harddisk4\Partition0 of=partition0.dat
bs=8M skip=0 count=1
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
1+0 records in
1+0 records out
The following command adds cpmtools to your PATH :-
C:\ak\tmp>\cpmtools\cpmtools
The diskdefs supplied with it doesn't understand Memotech disk formats. So save it away, and
replace with the file from my MFLOPPY package :-
C:\ak\tmp>copy \cpmtools\diskdefs \cpmtools\diskdefs.saved
1 file(s) copied.
C:\ak\tmp>copy \ak\mtx\mfloppy\diskdefs \cpmtools\diskdefs