Proper usage of mtools in Linux

General questions about HDDRIVER/Allgemeine Fragen zu HDDRIVER
ryanvane
Posts: 2
Joined: 31 Jan 2017, 04:59

Proper usage of mtools in Linux

Post by ryanvane »

Hi everyone,

I have an Atari 1040STf running TOS 1.04 and HDDRIVER 10.1, with an UltraSatan and a 8 GB SD card.

Formatting the card and partitioning, and having the Atari able to use those partitions is not an issue. I've selected both TOS 1.04 compatibility and Windows compatibility. My first partition is 16 MB and all other partitions are 512 MB.

I'm not able to get Linux (Ubuntu 14.04) to read any of the partitions, nor does GParted recognize the partition table. I understand that with partitions of 512 MB the block size may be bigger than Linux supports, so I would have to use mtools. Unfortunately good documentation for mtools seems pretty rare.

My SDCard shows up as /dev/mmcblk0.
I also see devices /dev/mmcblk0p3 and /dev/mmcblk0p4 which I assume are the primary and extended partitions.

How should I be using mtools with HDDRIVER memory cards?

Thanks in advance

Ryan
uweseimet
Site Admin
Posts: 408
Joined: 10 Jan 2010, 15:39

Re: Proper usage of mtools in Linux

Post by uweseimet »

Hi,

I just checked and had no problems with directly mounting regular TOS compatible, i.e. not TOS/Windows) partitions with sizes of 511 MB (512 and more are not supported by TOS < 4.0) without using mtools. Provided your Linux kernel supports TOS partitions this should also work for you.
I have not experimented much with mtools, as regular mounts have always worked for me.

Best regards

Uwe
uweseimet
Site Admin
Posts: 408
Joined: 10 Jan 2010, 15:39

Re: Proper usage of mtools in Linux

Post by uweseimet »

In the meantime I have also successfully used mtools. It's important to correctly map the device files to drive letters in mtools.conf.

>mcopy HDDRUTIL.APP d:
>mdir d:
Volume in drive D has no label
Volume Serial Number is 4A44-AD95
Directory for D:/

HDDRUTIL APP 393552 2017-02-04 21:43
1 file 393 552 bytes
535 248 896 bytes free
ryanvane
Posts: 2
Joined: 31 Jan 2017, 04:59

Re: Proper usage of mtools in Linux

Post by ryanvane »

Thanks, you're right the smaller partition is picked up just fine by Linux. I think I'll be able to get by if I make sure to do my partition tables differently.

Cheers

Ryan