[Coco] OS-9/68K raw disk access syntax
Joel Ewy
jcewy at swbell.net
Fri Jan 1 19:23:18 EST 2016
On 01/01/2016 06:02 PM, Bob Devries wrote:
> Off the top of my head, I used BASIC to read the disks something like
> this:
>
> open #inpath, "/d0@", READ
> open # outpath, "diskimage.dsk", WRITE
>
> You need to either get the disk size from LSN0, or just hardcopy it in
> from the dmode output, then just read the sectors from 0 to maxsector-1
>
Thanks, Bob. I may do that eventually. Whether the image files will
compress enough to fit on a FAT floppy is another question. If not I
might have to hook up a serial connection and use zmodem. But I'm also
still trying to use 'dd' on a PC running Linux.
JCE
> It worked for me... YMMV
>
> Regards, Bob Devries
> Dalby, QLD, Australia
>
>
> On 2016-01-02 2:43 AM, Joel Ewy wrote:
>> So, as another attempt to make a disk image file on the MM/1, I thought
>> I would write the floppy image to a ramdisk (since I don't have a
>> working hard drive on the MM/1 at the moment), then compress it, and see
>> if I could squeeze it back on a FAT formatted floppy disk. I thought I
>> might be able to do this like so:
>>
>> copy /d1@ /r0/image.dsk
>>
>> Copy complains: "can't get file descriptor. Error #000:214". errmsg
>> says "The file was found, but is inaccessible in the requested mode.
>> Check the file's owner ID and access attributes."
>>
>> The OS-9 manual mentions that you need to be superuser to use raw disk
>> access, and it sounds like maybe that is tripping me up here. But there
>> are no user accounts set up on this boot floppy, as far as I can tell.
>> Wouldn't superuser be the default, or is there some 'su' equivalent I'm
>> forgetting about? Or do I just have the syntax wrong?
>>
>> JCE
>>
>
More information about the Coco
mailing list