[Coco] .DSK Partition extract/inject tool?
Luis Antoniosi (CoCoDemus)
retrocanada76 at gmail.com
Tue Sep 24 23:59:17 EDT 2013
Here is my tool. It can work directly with superIDE CF images in linux or
using CygWin.
Compile it as: g++ side.cpp -o side
It is pre-set for use with a 256mb (245mb nominal) superIDE card. To use
with any other image you need to provide some options:
-dw : DW images (256-byte sectors)
-s <sector-count> : number of sectors in your disk image. Multiply the
number of .DSK x 630 + the number of sectors of any existing OS-9 partition
on it.
Complicated ?
For use with a drivewire.dsk image of 10 concatenated disks without an OS9
partition the sintax is:
extract:
side get disk5.dsk 5 dwimage.dsk -dw -s 6300
insert:
side put disk4.dsk 4 dwimage.dsk -dw -s 6300
Well you can change it the way you want, if you only work with DW images
you can make it default and also deduce de number of sectors by the image
file size. I didn't do it because when using a CF card as image I don't get
a file size and this size varies from CF to CF.
On Tue, Sep 24, 2013 at 8:24 PM, Chad H <chadbh74 at hotmail.com> wrote:
> Well Aaron pointed out that I don't have to specify "Sectoroffset", I can
> choose "DriveOffset" instead. This saves some time and heartache if I
> miscalculated and more or less lets the CoCo handle the
> extracting/injecting
> into the DW4 server files.
>
> -----Original Message-----
> From: coco-bounces at maltedmedia.com [mailto:coco-bounces at maltedmedia.com]
> On
> Behalf Of Retro Canada
> Sent: Tuesday, September 24, 2013 7:00 PM
> To: CoCoList for Color Computer Enthusiasts
> Cc: CoCoList for Color Computer Enthusiasts
> Subject: Re: [Coco] .DSK Partition extract/inject tool?
>
> i have .c program that i use for my superide images you just neet to adjust
> the sector size to 256 and the offset of course. send it to you later. you
> can put and get any dsk between 255 ones.
>
> On 2013-09-24, at 7:25 PM, Chad H <chadbh74 at hotmail.com> wrote:
>
> What you call ".vhd" I'm already using as .DSK files, but same thing. They
> have 0-255 drive in one file. I understand what your saying that you can
> adjust the offset in DW4 thereby specifying which disk within the image to
> use for that drive, but that's extra work. I still don't understand why
> the
> decision was made to use "OffSets" in multiples of 630 sectors. DW4 is set
> for ALL of the 0-255 disks to be 630 sectors as a standard right? Then why
> not make it so DW4 lets you choose a 0-255 disk to mount as a offset
> instead? Just a thought.
>
> If I had a PC side utility that I could select one .VHD, and a specific
> 0-255 disk, then select a second .VHD with another 0-255 disk and instantly
> transfer it over...that would be bypassing a lot of steps and calculations
> too.
>
> -----Original Message-----
> From: coco-bounces at maltedmedia.com [mailto:coco-bounces at maltedmedia.com]
> On
> Behalf Of Robert Gault
> Sent: Monday, September 23, 2013 10:30 PM
> To: CoCoList for Color Computer Enthusiasts
> Subject: Re: [Coco] .DSK Partition extract/inject tool?
>
> Chad H wrote:
> > I was just wondering if there existed a tool in any Toolshed or
> > elsewhere that made it easy to take a single virtual disk (0-255) out
> > of a .DSK partition and inject it into another .DSK partition at a
> > specified virtual disk (0-255). Anyone?
>
> You really don't need a tool. The easiest method whether using HDBDOS or
> RGBDOS is just to copy one of the .vhd Disk Basic disks to a single .dsk
> image and then to a different .vhd image.
> If you are using Drivewire4 and have read the documentation, you will see
> that you can mount multiple .vhd image that have up to 256 Disk Basic
> drives
> per vhd.
> You can then adjust the offsets individually for each DW4 drive and turn on
> HDBDOS translation. That will permit using the BACKUP command of Disk Basic
> to transfer any of the 0-255 drives from one .vhd image to another.
>
> Are you asking about Drivewire usage or one of the other emulators, JVC,
> MESS, or VCC? Techniques will differ.
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
--
Long live the CoCo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: side.cpp
Type: text/x-c++src
Size: 2831 bytes
Desc: not available
URL: <http://five.pairlist.net/pipermail/coco/attachments/20130924/dea5440e/attachment.cpp>
More information about the Coco
mailing list