[Coco] toolshed beta release
ooogalapasooo at aol.com
Sun Mar 20 13:59:54 EDT 2016
Tormod. The problem is that you're so intent on questioning the validity of the current method of booting OS9 from hdbdos, that you missed the whole point of the question.
First, the toolshed decb command WILL produce an RSDOS muti-disk image. No, not the "hacked" (as you call it) dual partition image that almost EVERY nitros9 user still currently using nitros9 is using to boot nitros9, though it will produce this as well, but that's another story for another time.
It produces an RSDOS disk that contains mutiple disk images in one disk image file. The command is:
decb dskini yourdisk.vhd -h256
This command produces a 256 disk image formatted for rsdos (no magic os9 offset, just rsdos).
The question was... how hard would it be to add a backup command to toolshed's decb that would allow the user to copy an entire disk, sector by sector, to one of these disk images. This cannot be done with current toolshed tools. Yes, you can copy it file by file, but that would miss any hidden sectors or in my original intent, the os9 boot track. And toolshed's os9 command will not copy to one of these images.
For example... If I had a 35trk nitros9 bootdisk that I wanted on virtual disk 255 (created by the above command), there is no way to do this in toolshed.
As you said, the capability is there in the core code. There's just not a backup command to allow the user to accomplish this.
All I try to do is to try and make things simpler for those who want to actually use rsdos & nitros9... not just develope it. But I guess I'm just stupid or something...
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull
My Music from the Tandy/Radio Shack Color Computer 2 & 3
Co-Contributor, Co-Editor for CocoPedia
Global Moderator for TRS-80/Tandy Color Computer Forums
E-Mail: ooogalapasooo at aol.com
From: Tormod Volden <lists.tormod at gmail.com>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Sun, Mar 20, 2016 9:55 am
Subject: Re: [Coco] toolshed beta release
On Sun, Mar 20, 2016 at 11:10 AM, Tormod Volden wrote:> Are you talking about this "hybrid" disk image hack where a DECB disk> image is concatenated to a OS-9 disk image, and HDB-DOS adds a magic> offset for every disk access? To emulate this HDB-DOS feature would be> possible in Toolshed decb, but it would involve for instance adding> this magic offset to all seek() calls (and any implicit seeks) in the> tools and libraries. It might get complicated where for instance the> library functions open a given file to see what kind of image/file it> is, and any such offset adjustment only applies to some of the> files/images involved. BTW, the same auto-detection allows you to use> the "os9" command to copy into "decb" images because they use the same> library functions for copying... So adding a DECB file offset will> require a careful design.Oh, actually somebody added such functionality to Toolshed:https://sourceforge.net/p/toolshed/code/ci/default/tree/libdecb/libdecbopen.c#l83https://sourceforge.net/p/toolshed/code/ci/default/tree/libdecb/libdecbopen.c#l489It looks like something like this is meant to work (don't know howwell it works): decb copy a_file an_image,:5+0x5A000(for HDBDOS "partition" number 5)The destination above is probably a file system, don't know if it canwrite to the "raw partition".Tormod-- Coco mailing listCoco at maltedmedia.comhttps://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco