Guide: Sharing Data from an Ultra Sata SD Card on Linux

Troubles with your machine? Just want to speak about the latest improvements? This is the place!

Moderators: Mug UK, Zorro 2, Greenious, spiny, Moderator Team

User avatar
marcello
Atari freak
Atari freak
Posts: 65
Joined: Thu May 03, 2012 9:23 pm

Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby marcello » Wed Apr 08, 2015 10:06 pm

Hello
I haven't found online explaination on using a Ultra Satan SD card on Linux, so I wrote one:
http://www.atari-wiki.com/index.php/Ult ... dwithLinux

TLDR; you can just the ICD pro driver, no need for HD Driver, and you will be able to access all your partitions on Linux, and maybe NetBSD.
Thanks wookie and lotharek for the great hardware.
STMint, try Unix on your 68000 Atari http://subsole.org/st_mint

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby DarkLord » Wed Apr 08, 2015 10:41 pm

Guides are always welcome. Thanks for the time and effort involved in this.

I've never made a guide, but with the SD cards that I use in the Ultrasatan in my
STacy, I just use mtools. I think I've mentioned/posted that a couple of times in
different threads here and at AtariAge.

You don't have to worry about partition size or anything like that...although I
do think that I had TOS/DOS compatible checked when I formatted the cards
I use with HDDriver. Not absolutely sure, but pretty sure that is necessary for
mtools to work with a TOS formatted SD card.

http://man.he.net/?topic=mtools&section=all
http://en.wikipedia.org/wiki/Mtools

I just grab the SD card from my STacy, walk over to my kubuntu box, stick it in, wait a
few seconds, start typing in mtool commands from a shell. I can move, copy, delete
files, all the normal stuff.

Works great. :)

Here's a screenshot - I just asked mtools to show the dir of partition "s" (which is C under TOS):

mtools01.jpeg


HTHs.
You do not have the required permissions to view the files attached to this post.
Welcome To DarkForce! http://www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS - Telnet:darkforce-bbs.dyndns.org 520

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby AtariZoll » Thu Apr 09, 2015 8:52 am

I don't think that we can talk here about just "Linux" . Will TOS partitions be recognized depends on is support for it compiled in Kernel. And my experience - I tried many Linux distros - says that majority has it not (what is not surprise, I guess) .
Now popular Ubuntu is one which likes Atari - it seems.
With Ubuntu 14.xx Desktop you have direct access to TOS partitions after inserting SD card - without giving any extra commands. I did not test with smaller partition sizes though.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

User avatar
marcello
Atari freak
Atari freak
Posts: 65
Joined: Thu May 03, 2012 9:23 pm

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby marcello » Thu Apr 09, 2015 9:29 am

AtariZoll wrote:With Ubuntu 14.xx Desktop you have direct access to TOS partitions after inserting SD card - without giving any extra commands. I did not test with smaller partition sizes though.


Accroding to my experience, this depends on which tools you used to format the partitions you used on the Atari side. Using SCSITools, the partitions got detected and automounted, but using ICD pro, I have to mount them manually. It seems, depending on how the partition table and FAT FS was created, udev will detect or not the medium and automount it.
STMint, try Unix on your 68000 Atari http://subsole.org/st_mint

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby AtariZoll » Thu Apr 09, 2015 9:46 am

I guess that we need more tests with diverse configs - nothing is simple and straight with Ataris :D
Should test partitions made with Hddriver - TOS caompat only, ICD Pro, AHDI latest versions. On diverse Linux distros.

P.S. who is that wookie ? :mrgreen:
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby AdamK » Thu Apr 09, 2015 9:59 am

I use Ubuntu 14.10 on my desktop/laptop and SD from CosmosEx (and UltraSatan I suppose) worked out of the box without any setup nedded.
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
marcello
Atari freak
Atari freak
Posts: 65
Joined: Thu May 03, 2012 9:23 pm

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby marcello » Thu Apr 09, 2015 2:46 pm

AtariZoll wrote:
P.S. who is that wookie ? :mrgreen:


I guest he's called Jookie actually :wink:
STMint, try Unix on your 68000 Atari http://subsole.org/st_mint

User avatar
marcello
Atari freak
Atari freak
Posts: 65
Joined: Thu May 03, 2012 9:23 pm

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby marcello » Thu Apr 09, 2015 2:47 pm

AdamK wrote:I use Ubuntu 14.10 on my desktop/laptop and SD from CosmosEx (and UltraSatan I suppose) worked out of the box without any setup nedded.


Which driver and partitioning tool did you use on the ST ?
STMint, try Unix on your 68000 Atari http://subsole.org/st_mint

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby AdamK » Thu Apr 09, 2015 5:10 pm

Hddriver.
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
simonsunnyboy
Moderator
Moderator
Posts: 5117
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby simonsunnyboy » Thu Apr 09, 2015 7:13 pm

Ubuntu 14.04 and the SD card used with the old Satandisk does not automount here.
dmesg lists some indications it finds something but it seems it is not a valid filesystem (card reader attached to USB):

Code: Select all

[12172.650936] usb 2-2.3: new high-speed USB device number 5 using ehci-pci
[12173.213778] usb 2-2.3: New USB device found, idVendor=0bda, idProduct=0151
[12173.213791] usb 2-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12173.213798] usb 2-2.3: Product: USB2.0-CRW
[12173.213804] usb 2-2.3: Manufacturer: Generic
[12173.213809] usb 2-2.3: SerialNumber: 20060413092100000
[12173.215622] usb-storage 2-2.3:1.0: USB Mass Storage device detected
[12173.215783] scsi9 : usb-storage 2-2.3:1.0
[12174.220227] scsi 9:0:0:0: Direct-Access     Generic- Compact Flash    1.00 PQ: 0 ANSI: 0 CCS
[12174.226484] scsi 9:0:0:1: Direct-Access     Generic- SM/xD-Picture    1.00 PQ: 0 ANSI: 0 CCS
[12174.232740] scsi 9:0:0:2: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[12174.239109] scsi 9:0:0:3: Direct-Access     Generic- MS/MS-Pro        1.00 PQ: 0 ANSI: 0 CCS
[12174.239598] sd 9:0:0:0: Attached scsi generic sg4 type 0
[12174.239757] sd 9:0:0:1: Attached scsi generic sg5 type 0
[12174.239886] sd 9:0:0:2: Attached scsi generic sg6 type 0
[12174.240011] sd 9:0:0:3: Attached scsi generic sg7 type 0
[12175.369071] sd 9:0:0:2: [sdf] 1011200 512-byte logical blocks: (517 MB/493 MiB)
[12175.373330] sd 9:0:0:2: [sdf] Write Protect is off
[12175.373341] sd 9:0:0:2: [sdf] Mode Sense: 03 00 00 00
[12175.373958] sd 9:0:0:3: [sdg] Attached SCSI removable disk
[12175.377443] sd 9:0:0:2: [sdf] No Caching mode page found
[12175.377447] sd 9:0:0:2: [sdf] Assuming drive cache: write through
[12175.378065] sd 9:0:0:0: [sdd] Attached SCSI removable disk
[12175.379039] sd 9:0:0:1: [sde] Attached SCSI removable disk
[12175.385302] sd 9:0:0:2: [sdf] No Caching mode page found
[12175.385311] sd 9:0:0:2: [sdf] Assuming drive cache: write through
[12175.391086]  sdf: AHDI sdf3
[12175.397301] sd 9:0:0:2: [sdf] No Caching mode page found
[12175.397311] sd 9:0:0:2: [sdf] Assuming drive cache: write through
[12175.397316] sd 9:0:0:2: [sdf] Attached SCSI removable disk


disktype lists:

marndt@jll:/$ sudo disktype /dev/sdf

Code: Select all

--- /dev/sdf
Block device, size 493.8 MiB (517734400 bytes)
ATARI ST partition map
Partition 3: 488.7 MiB (512442880 bytes, 1000865 sectors from 63, bootable)
  Type "BGM" (Big GEMDOS)


So there is Atari data on it. Can I mount that at all under Linux or what would be the correct type for a 512MB card?
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

User avatar
marcello
Atari freak
Atari freak
Posts: 65
Joined: Thu May 03, 2012 9:23 pm

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby marcello » Fri Apr 10, 2015 8:13 am

did you try

sudo mount /dev/sdf3 /mnt

either that works, or that fail (most probably because of the logical cluster size ( see the HDDriver FAQ)).

BTW to people posting on this thread, please mention which disk driver you uses, as it makes differences to how it's seen on Linux. As said in http://www.atari-wiki.com/index.php/UltraSatanSDCardwithLinux I use ICD Pro.
STMint, try Unix on your 68000 Atari http://subsole.org/st_mint

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

Re: Guide: Sharing Data from an Ultra Sata SD Card on Linux

Postby DarkLord » Mon Mar 25, 2019 6:01 pm

Old thread but I've noticed that for whatever reason (I'm using Kubuntu linux)
some kernels support stuff "out of the box" and some don't.

Point being, if Atari hard drive support isn't compiled into the kernel from the
start, you'll most likely have to re-compile your kernel and add that option.

I'm sure distro's probably vary a lot....
Welcome To DarkForce! http://www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS - Telnet:darkforce-bbs.dyndns.org 520



Social Media

     

Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 3 guests