Atari file system support for Linux ?

A forum about the Hatari ST/STE emulator - the current version is v2.0.0

Moderators: simonsunnyboy, thothy, Moderator Team

User avatar
DarkLord
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4143
Joined: Mon Aug 16, 2004 12:06 pm
Location: Prestonsburg, KY - USA
Contact:

Re: Atari file system support for Linux ?

Postby DarkLord » Sun Nov 23, 2014 9:57 pm

I use mtools to transfer files back and forth between my kubuntu box and my Atari
formatted SD cards with no problems.
Welcome To DarkForce! http://www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS - Telnet:darkforce-bbs.dyndns.org 520

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Tue Apr 28, 2015 9:29 am

I have Ubuntu 15.04 and I can not mount a Atari CF card with a partition C:\ (500MB) and D:\ (500MB) and a ext2 partition E:\ ...
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

User avatar
AdamK
Captain Atari
Captain Atari
Posts: 225
Joined: Wed Aug 21, 2013 8:44 am

Re: Atari file system support for Linux ?

Postby AdamK » Tue Apr 28, 2015 9:42 am

Works for me on Ubuntu 15.04.
Atari: FireBee, Falcon030 + CT60e + SuperVidel + SvEthlana, TT, 520ST + 4MB ST RAM + 8MB TT RAM + CosmosEx + SC1435, 1040STFM + UltraSatan + SM124, 1040STE 4MB ST RAM + 8MB TT RAM + CosmosEx + NetUSBee + SM144 + SC1224, 65XE + U1MB + VBXE + SIDE2, Jaguar, Lynx II, 2 x Portfolio (HPC-006)

Adam Klobukowski [adamklobukowski@gmail.com]

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Tue Apr 28, 2015 2:13 pm

Does the automount work or work it manually ?
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

Galvez
Atari maniac
Atari maniac
Posts: 84
Joined: Fri Oct 19, 2007 7:49 am

Re: Atari file system support for Linux ?

Postby Galvez » Tue Apr 28, 2015 2:41 pm

frank.lukas wrote:I have Ubuntu 15.04 and I can not mount a Atari CF card with a partition C:\ (500MB) and D:\ (500MB) and a ext2 partition E:\ ...


Was the CF card partitioned through Falcon's IDE port with an adapter?

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Tue Apr 28, 2015 3:11 pm

I setup the 4GB CF card with HDDriver 9 on a Atari Mega ST with the dual IDE Interface from Alan.

Atari TOS BGM 500MB C:\ and D:\ and on E:\ a ext2 MiNT Volume.


Gparted says that the card has no partitions on it at all !?!
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

Galvez
Atari maniac
Atari maniac
Posts: 84
Joined: Fri Oct 19, 2007 7:49 am

Re: Atari file system support for Linux ?

Postby Galvez » Tue Apr 28, 2015 3:17 pm

frank.lukas wrote:I setup the 4GB CF card with HDDriver 9 on a Atari Mega ST with the dual IDE Interface from Alan.

Atari TOS BGM 500MB C:\ and D:\ and on E:\ a ext2 MiNT Volume.


Gparted says that the card has no partitions on it at all !?!


Is Alan's IDE interface swapping bytes as Falcon's does?

alanh
Hardware Guru
Hardware Guru
Posts: 1366
Joined: Mon Jul 24, 2006 9:01 pm
Location: North Wales, UK

Re: Atari file system support for Linux ?

Postby alanh » Tue Apr 28, 2015 3:37 pm

As far as I know the Falcon is the same as the ST and TT for IDE partitioning.

Basically Atari's IDE implementation byte swapped and it's required this way for your boot disk.

In HDDRIVER when partitioning under "Compatibility" you can select "Byte Swapping" which will convert back so you can use the disk in your PC.

But remember using "Byte Swapping" means you can't boot from it on your IDE port.
Falcon CT60, Falcon CT63 x2, TT x3, MegaST x2, MegaSTE x2, STFM x2, STE x2, STacy, STBook, (Dead) Hades 060, Milan 060, T40.

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Tue Apr 28, 2015 3:54 pm

I use a 256MB second CF card in my dual CF Adapter with the HDDriver TOS/Windows (byte swapping) format without any problems, that is not the case. Data transfer is not my problem, I use NFS too.

I would use my boot CF card with this three paritions on it on a Linux/Ubuntu PC ...
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

Galvez
Atari maniac
Atari maniac
Posts: 84
Joined: Fri Oct 19, 2007 7:49 am

Re: Atari file system support for Linux ?

Postby Galvez » Tue Apr 28, 2015 4:19 pm

frank.lukas wrote:I use a 256MB second CF card in my dual CF Adapter with the HDDriver TOS/Windows (byte swapping) format without any problems, that is not the case. Data transfer is not my problem, I use NFS too.

I would use my boot CF card with this three paritions on it on a Linux/Ubuntu PC ...


Then you would need the Linux kernel to swap bytes when reading the card, I don't know if this is possible.

alanh
Hardware Guru
Hardware Guru
Posts: 1366
Joined: Mon Jul 24, 2006 9:01 pm
Location: North Wales, UK

Re: Atari file system support for Linux ?

Postby alanh » Tue Apr 28, 2015 4:35 pm

That's correct. You'd need to get Linux to byte swap instead if you are using your "boot" disk from the Atari from the IDE port.
Falcon CT60, Falcon CT63 x2, TT x3, MegaST x2, MegaSTE x2, STFM x2, STE x2, STacy, STBook, (Dead) Hades 060, Milan 060, T40.

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 647
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Atari file system support for Linux ?

Postby mfro » Tue Apr 28, 2015 6:10 pm

You can always make a byte swapped image of your card (dd if=<device> of=image conv=swab) which you can then mount as loop device. The same way back after you finished modifying the image.

Unfortunately, there is no option for loop devices to do this on the fly.

To avoid the double copy, I usually just register the disk device as hard disk image in Aranym with the "ByteSwap" flag set to "yes". This will give you direct access (provided you get the geometry right).

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Tue Apr 28, 2015 7:37 pm

... good but too complicated !

I make a test and it will not work, because I was thinking that the CF Card has three partitions on it, two TOS BGM and a Atari ext2 partition. I think it will work with a little single complete TOS partition on the hole card.

a CF Adapter PCB with Byte Swap (Twisted Datalines) would be fine
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2717
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: Atari file system support for Linux ?

Postby AtariZoll » Tue Apr 28, 2015 8:43 pm

frank.lukas wrote:... good but too complicated !

I make a test and it will not work, because I was thinking that the CF Card has three partitions on it, two TOS BGM and a Atari ext2 partition. I think it will work with a little single complete TOS partition on the hole card.

a CF Adapter PCB with Byte Swap (Twisted Datalines) would be fine


That will not work. Because it will swap control byte too.
English language is like bad boss on workplace: it expecting from you to strictly follow all, numerous rules, but self bending rules as much likes :mrgreen:

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1356
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Atari file system support for Linux ?

Postby frank.lukas » Wed Apr 29, 2015 9:16 am

I try this morning a 2GB SD Card with four BGM Partitions on it, no luck ...
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2280
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Re: Atari file system support for Linux ?

Postby christos » Wed Apr 29, 2015 4:53 pm

There is no good solution for this as far as I can tell. However Aranym can be used as an intermediary. It's not the best workflow but it does work nicely for that.
Basically you setup Aranym so as to read the SD card and you map your atari directory as hostfs for Aranym. Then you can easily transfer files back and forth. For this to work you need to run aranym as root. The method will not work on windows because of two reasons:

a. I don't know how to set it up
b. Aranym expects to see external disk devices as a file (/dev/sdx) and windows doesn't have that capability. Also windows will not assign a drive letter on an atari disk.
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 647
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Atari file system support for Linux ?

Postby mfro » Wed Apr 29, 2015 6:05 pm

christos wrote:For this to work you need to run aranym as root.


That's not necessary. It's enough if your user is in a group with sufficient device access permissions (e.g. "disk" on Ubuntu).

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2280
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Re: Atari file system support for Linux ?

Postby christos » Wed Apr 29, 2015 9:54 pm

mfro wrote:
christos wrote:For this to work you need to run aranym as root.


That's not necessary. It's enough if your user is in a group with sufficient device access permissions (e.g. "disk" on Ubuntu).


I only have one user in my system (and guest). I guess I shouldn't say as root but run with sudo. How can I check if my user doesn't have disk permission?

P.S. Most of my linux skills I learned through MiNT so I don't really know much :D
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 647
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Atari file system support for Linux ?

Postby mfro » Thu Apr 30, 2015 5:13 am

christos wrote:How can I check if my user doesn't have disk permission?


It must be a member of the "disk" group:

Code: Select all

mfro@thinkpad:~$ id
uid=1000(mfro) gid=1000(mfro) Gruppen=1000(mfro),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
mfro@thinkpad:~$


If it's not, you can add it to the group:

Code: Select all

sudo adduser mfro disk


Group membership will then be active for you after the next login:

Code: Select all

mfro@thinkpad:~$ id
uid=1000(mfro) gid=1000(mfro) Gruppen=1000(mfro),4(adm),6(disk),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)
mfro@thinkpad:~$

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2280
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Re: Atari file system support for Linux ?

Postby christos » Thu Apr 30, 2015 8:31 am

Thanks for this information. I didn't know about that :)
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

User avatar
DarkLord
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4143
Joined: Mon Aug 16, 2004 12:06 pm
Location: Prestonsburg, KY - USA
Contact:

Re: Atari file system support for Linux ?

Postby DarkLord » Thu Apr 30, 2015 2:11 pm

If it helps, my normal user is a member of "disk" here. You might be on to something
there with permissions.
Welcome To DarkForce! http://www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS - Telnet:darkforce-bbs.dyndns.org 520

User avatar
jotego
Atari maniac
Atari maniac
Posts: 83
Joined: Wed May 04, 2016 10:02 am
Location: Valencia (Spain)

Re: Atari file system support for Linux ?

Postby jotego » Sun Sep 25, 2016 10:52 am

AdamK wrote:Works for me on Ubuntu 15.04.


Could someone detail the exact mount command line they are using? My kernel is supposed to support Atari file system but I cannot get mount to work. :?

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 647
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Atari file system support for Linux ?

Postby mfro » Sun Sep 25, 2016 1:46 pm

LaurentS wrote:...
- use df command to determine which hard drive is the CF card (generally /dev/hd(n) or /dev/sd(n) n is a,b,c,d,...)
- umount it if it is already mounted
- use the following command to copy the image to the CF card :
dd if=image4Go.img of=/dev/hdn

nb: replace the image4Go.img by the file you need (regarding to the capacity of your CF card). It takes a long time to write the image (several minutes).

Then, if you use IDE, you have to write the little 8K image. The command is :
dd if=imageIDE.img of=/dev/hdn
...


You can even save your time and directly "connect" Aranym to your CompactFlash card on your Linux machine. Just define the disk device instead of an image file in the PARTITIONX section of your config file:

Code: Select all

[PARTITION0]
Path = /dev/sdb1
Present = Yes
PartID = BGM
ByteSwap = 1
Read Only = No


You can than read and write the partition, Aranym will do the byte swap for you on the fly.

If you have correctly set up host networking, you can even do direct scp's to and from the image.


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 2 guests