Alain Knaff wrote:
On Thursday 30 June 2005 12:02, Simon Owen wrote:
cat > track_data 00 00 01 03 00 00 99 00 00 00 99 00 00 00 99 00 00 00 02 02 00 00 99 00 00 00 03 01 ^D
fdrawcmd format 0 2 7 0x2b 0xf6 track=0 < track_data
Just pointing out a minor error: fdrawcmd takes binary input, not ASCII. So your track data file would need to be filled with binary charachers, as follows (where echo is bash's or zsh's builtin echo command):
echo -ne '\x00\x00\x01\x03' >track_data echo -ne '\x00\x00\x99\x00' >>track_data echo -ne '\x00\x00\x99\x00' >>track_data echo -ne '\x00\x00\x99\x00' >>track_data echo -ne '\x00\x00\x02\x02' >>track_data echo -ne '\x00\x00\x99\x00' >>track_data echo -ne '\x00\x00\x03\x01' >>track_data
fdrawcmd format 0 2 7 0x2b 0xf6 track=0 < track_data
Regards,
Alain
Hello Again,
First - thanks a lot for Alain and Owen for the replies. Next - an answer the obvious question of "why". Many Mirages including my own are now over 20 years old. The floppy disk drive is the thing that always fails, usually by refusing to format disks. Thus I have decided to write some public-domain utilities to format, read, and populate Mirage floppies on Linux.
There is one other thing that I did not mention, which is that the Mirage appears to need zero-based track and sector numbering.
I have taken your proposed solution, and expressed it in the form of the following 2 scripts:
#!/bin/bash
echo -ne '\x00\x00\x00\x03' > track_data echo -ne '\x00\x00\x99\x00' >> track_data echo -ne '\x00\x00\x01\x03' >> track_data echo -ne '\x00\x00\x99\x00' >> track_data echo -ne '\x00\x00\x02\x03' >> track_data echo -ne '\x00\x00\x99\x00' >> track_data echo -ne '\x00\x00\x03\x03' >> track_data echo -ne '\x00\x00\x99\x00' >> track_data echo -ne '\x00\x00\x04\x03' >> track_data echo -ne '\x00\x00\x99\x00' >> track_data echo -ne '\x00\x00\x05\x02' >> track_data
This creates the track data file, with zero-based (I hope) sector numbering. Then, the following one-liner does the formatting:
#!/bin/sh
for i in `seq 0 79` do fdrawcmd format 0 2 11 0x2b 0xf6 track=$i < track_data done
I believe that this is what you suggested, right Owen? The floppy appears to format, but the Mirage doesn't like it (I can't save to it).
So the next question is this: What kinds of things can I do using fdutils to compare this "new" format to a real Mirage format? What could I look at to begin to determine what is going wrong?
Please advise if possible.
Thanks a lot to all!! craig vanderborgh voxware incorporated
fdutils mailing list fdutils@tux.org http://www.tux.org/mailman/listinfo/fdutils
_______________________________________________ fdutils mailing list fdutils@tux.org http://www.tux.org/mailman/listinfo/fdutils