home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
SRC
/
msdos_diskaccess.lzh
/
MS_DISK_ACCESS
/
README.osk
< prev
next >
Wrap
Text File
|
1991-10-20
|
2KB
|
34 lines
This are tools for accessing MSDOS-Disks from OSK.
The Sources are ported for Atari ST computers running Cumana OSK, but the
changes for other systems are simple.
There are two modes of Operation for this program. The first is the normal
diskaccess mode. If you have a device driver, which is able to handle
MSDOS-Disk change the name tos0 in the sources to this name.
The second mode is taken, if you set the environment variable FLOPPY.
The the value of that variable is taken as the access path. It may be an
alternative device, but an ordinary file is possible. The only thing you have
to do is:
read the physical data of the msdos disk by any tricky program into a
diskfile. I called my program mstohd.
Than setenv FLOPPY to that filename.
And voila msdir, msread, mswrite, ... anything works.
If you want to transfer it back take your tricky image writer. Mine is
called hdtoms.
I prefer to read the whole disk and work on HD, since my floppydriver can
read MSDOS-Disks, but it is awfully slow. The mstohd reads a disk in 70
seconds, and on the Harddisk the access is fast.
mstohd uses the fact, that the WD 177x cannot detect the length of a sector.
it just reads it in. Therefore i calculate the LSN for my track/sector-number
and use the normal diskaccess. THIS WORKS, BUT MAY DAMAGE INTERNAL DATA
STRUCTURES OF THE DRIVER. DON'T TRY IT ON A MULTIUSER SYSTEM UNLESS YOU ARE
SECURE THE DRIVER CAN HANDLE THIS. The driver should handle this, because
otherwise a wrong disk could stop the whole system, but as i inserted a VAX
Disk into a MAC, the MAC crashed awfully. Only reset helped. SO TRY IT ON
A NOT CROWDED SYSTEM.
Knut Grunwald, Maximilianstr. 25, 6729 Jockgrim, BRD