You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296

Mounting Atari drive images in Linux?

General Discussion, STOS.
Post Reply
Steve
Posts: 2967
Joined: Fri Sep 15, 2017 11:49 am

Mounting Atari drive images in Linux?

Post by Steve »

Hi all,

With the advent of Badwolf's brilliant auto-byte-swap atapter for Falcon, I would like to convert my current disk image to Tos/Windows compatible so that I can take advantage of being able to put the CF card in my machine and access all it's drives easily. But doing this will wipe all the data on the CF card, so I need to find a way to back up all the data on each partition and transfer it back. Ideally I'd like to do all the data transfer on my Linux machine.

I found this great website which has a mount-atari-image shell script:
https://www.seniorlinuxadmin.co.uk/atari-fs.html

But unfortunately for me, even though I've byte-swapped my image, it only mounts my ext2 mint partition. It doesn't mount any gemdos drives. I get something along the lines of: mount: 'wrong fs type, bad option, bad superblock on /dev/loop3, missing codepage or helper program, or other error.'

Luckily, a person who previously read that guys website emailed him and explained a method they used to get around it using mcopy. I've read though that information but don't really follow what mcopy is doing, or how to properly use it.

Is there an easier way for me to do what I want to do, a way I haven't thought of?

ps - I did attempt to try and do this all inside Hatari, but it was really buggy & slow. Mounting the IDE image & adding a Gemdos drive (for saving the data to) didn't seem to work properly, every time I did it, the Gemdos drive kept assigning itself to drive 'G', which was already an occupied drive on my IDE image. Going into Kobold and selecting drive G curiously showed the original IDE image drive, going back to the desktop and double clicking G brought up the Gemdos drive... very weird! Then copying files inside Emutos had lots of problems, the emulated machine would run out of memory. After copying a drive to the gemdos backup folder the bytes/sizes didn't seem to be the same, so I lost trust in it. I gave up with the Hatari idea.
User avatar
chronicthehedgehog
Site sponsor
Site sponsor
Posts: 349
Joined: Sun May 08, 2022 6:11 pm
Location: The Midlands
Contact:

Re: Mounting Atari drive images in Linux?

Post by chronicthehedgehog »

I don't know for sure but this page gives similar info but by issuing the commands manually rather than using a script.

http://meta.libera.cc/2018/07/inspectin ... image.html

Perhaps that script is wrong or swallowing errors
dad664npc
Posts: 154
Joined: Mon Sep 12, 2022 2:32 pm
Location: South East

Re: Mounting Atari drive images in Linux?

Post by dad664npc »

I use that script a lot on Raspberry PI to transfer files to disk images for PiStorm - NOTE must be root

sudo ./mount.sh <disk image>

but yeah, it does not work with GEMdos file-system.
Create a CF card with something like Satan256Mb.img then copy all of your GEMdos files to that - that's assuming of course you can mount two CF cards
ATARI STfm, STe, Mega ST, TT
Amstrad CPC464, CPC6128
PiStorm dev - https://github.com/gotaproblem/pistorm-atari
Pico HDC - https://bbansolutions.co.uk
Steve
Posts: 2967
Joined: Fri Sep 15, 2017 11:49 am

Re: Mounting Atari drive images in Linux?

Post by Steve »

@dad664npc after sleeping on it I think I'll use my PiSCSI. I can back everything up to a disk on there and then download it over my WiFi from the web interface.

Ideally I didn't want to do all the heavy data copying on my Falcon but I guess that's my only option really :)
User avatar
danboid
Posts: 95
Joined: Thu Jul 18, 2024 7:25 pm

Re: Mounting Atari drive images in Linux?

Post by danboid »

There is a patch for the NetBSD kernel that lets you read and write to Atari GEMDOS hard drives:

https://forums.atariage.com/topic/36230 ... nt-5561989

I posted a patched i386 NetBSD kernel to that forum post so that you don't need to build the kernel yourself.

See also:

https://www.atari-wiki.com/index.php?ti ... k_Commands
The 'Uzebox Omega is a fully open source games console that you can build in a weekend, even with no previous electronics experience:

https://uzebox.org/wiki/Omega
Post Reply

Return to “SOFTWARE”