Page 1 of 1

Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 1:03 pm
by siriushardware
Sorry for having to ask but I have searched around and don't seem to find the exact answer to this question:

Situation:
1) Linux box, which is used to download individual Atari ST files from time to time (as opposed to disc images)
2) Hatari installed, with a Linux folder containing various images of Floppy drives and several hard drive images.

Question:
How to place individually downloaded files directly into an existing .ST floppy image or a folder on an existing HDD image?

At the moment, what I do is copy the files (in linux) onto a PC formatted DS 720K disc, then DD the disc to a .ST image which I can then 'insert' into one of Hatari's drives. Then, in Hatari, I drag the files from the inserted floppy image into a folder on one of the HDD images. This is quite a long winded method.

Is there a more direct method or some independent piece of Linux software which combines a file browser / selector with a disc image creator, or better still can insert chosen files directly into a pre-existing .ST or HDD image?

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 2:04 pm
by AdamK
Add GEMDOS drive to hatari and vopy files from it to your image under hatari.

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 3:42 pm
by siriushardware
So I can copy files into the folders of the GEMDOS drive using either the terminal command line interface or the desktop's file manager just as I can into any other Linux folder, correct?

I take it that I can run a GEMDOS drive and a real hard drive image simultaneously with the HDD image as (Say) drives C, D, and E and the GEMDOS drive as drives F, G, H? I wasn't aware of that. I thought it was either / or (I don't know why I thought that).

How do I inform Hatari which 'ST drives' are on the drive image and which are on the GemDOS drive?

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 6:20 pm
by siriushardware
Well, I tried this and it seems to work.

-In the 'Hard Disks' setup under F12 I already have an ACSI hard drive image set up with three drives, C, D ,E, on it. Hatari boots from drive 'C' of this drive image.

-In Linux, I made a new folder called GEMDOS and in this folder I placed another folder called 'F'.

-In Hatari / F12 / hard disks I went to 'GEMDOS drive' and browsed to the GEMDOS folder (Not the 'F' folder) as the target.

-On the Hatari desktop I highlighted the existing 'E' drive icon and then went up to 'Install new drive' and in the box which appeared, edited the drive letter to 'F' and the drive name to GEMDOS. This created a new disk icon, drive F - GEMDOS.

-I saved the desktop with this new icon on it, then went to F12 / save configuration and saved the new setup with the default name, hatari.cfg

On exit from / re-entry to Hatari I found that I now had the original three hard drive icons, plus the new 'F' icon. As an experiment I copied the contents of drive 'E' to drive 'F' and that appeared to work OK.

On exit from Hatari, back to the Linux desktop, I found that I could now view the files copied from the Hatari drive E to drive F in the folder GEMDOS/F.

Is this how it should work, or have I made any terrible mistakes? I was basically just guessing my way around.

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 6:40 pm
by simonsunnyboy
Hatari comes with a handy zip2st tool. It creates an .st disk image from ZIP file contents with mtools and dd. Great thing :9 And you can use the supplied hmsa afterwards to make a .msa file out of it.

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Mon Nov 16, 2015 7:06 pm
by siriushardware
SSB, thanks for that - between that and AdamK's hint about using a GEMDOS drive as the go-between twixt Linux and emulated ST HDD images, I think my problems seem to be solved - cheers both.

Re: Insert ST files into .ST or HDD disc image (Linux)

Posted: Wed Apr 03, 2019 3:59 pm
by guythp
simonsunnyboy wrote:Hatari comes with a handy zip2st tool. It creates an .st disk image from ZIP file contents with mtools and dd. Great thing :9 And you can use the supplied hmsa afterwards to make a .msa file out of it.


Apologies for the thread revival but thanks for that! I was trying to work out how to play Giana STE via hatari and now I can, albeit nearly 5 years late :D