Mounting Atari drive images in Linux?
Posted: 09 Aug 2023 20:53
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.
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.