You can execute the following steps with any drive or memory card connected to your Atari, but I have intentionally used Hatari with the SCSI Driver for Linux. This is because I want to show what you can do with Hatari (or ARAnyM) and this driver. It gives you direct access to Linux mass storage devices (not only SCSI, but also IDE/SATA or USB) from within the emulation, as if the devices were connected to the emulated Atari.
The goal is to create 1 Linux/TOS compatible partition and 3 pure Linux partitions on a memory card, which is a 1.8 GiB SD card connected to a Linux machine running Hatari.
1. This step is only required with Hatari or ARAnyM: Run the SCSI Driver for Hatari/ARAnyM before launching HDDRIVER. If you are booting from a GEMDOS drive, put this driver into the AUTO folder before HDDRIVER.PRG. In order to ensure the correct startup order you may have to rename files in the AUTO folder, because Hatari executes them in alphabetical order. If you are booting from a drive image, launch the SCSI Driver as a HDDRIVER module, so that it is executed before HDDRIVER.SYS. In case you only want HDDRUTIL and not also HDDRIVER to access your Linux mass storage devices, it is sufficient to ensure that HDDRUTIL is started after the SCSI Driver. 2. Launch HDDRUTIL and select your drive for partitioning. In the compatibility settings select "TOS" and "GPT". If you are interested in partition scheme details see the partition scheme page. 3. Enter the data for all partitions you need, then select "OK" and confirm the partitioning operation. That's it! In a single step you have created 1 partition usable with TOS and Linux (e.g. for exchanging data) and additionally 3 pure Linux partitions. When using fdisk for partitioning, each partition would have required a separate step, and you would need to explicitly create a filesystem on the TOS partition before using it. Executing these additional operations would have been much less convenient than having HDDRUTIL doing it. Therefore, even when creating a set of Linux-only partitions HDDRUTIL may be a good choice, especially if you are running Hatari or ARAnyM on your Linux PC.
The TOS partition created in this example can be mounted by Linux without any additional software and without any special Linux kernel configuration. Remember to create filesystems on the "LNX" partitions, e.g. with mkfs, just like when partitioning with fdisk.
This is what up to date versions of fdisk report for the result:
Code: Select all
>fdisk -l /dev/sdh
Disk /dev/sdh: 1,84 GiB, 1977614336 bytes, 3862528 sectors
Disk model: MassStorageClass
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3F95981C-F897-2231-6E55-A5651F5304E0
Device Start End Sectors Size Type
/dev/sdh1 34 491521 491488 240M Atari TOS basic data
/dev/sdh2 491522 1720321 1228800 600M Linux filesystem
/dev/sdh3 1720322 2744321 1024000 500M Linux filesystem
/dev/sdh4 2744322 3862494 1118173 546M Linux filesystem
1. Do not enter any explicit partition type unless you want to create non-standard partitions. HDDRUTIL automatically takes care of creating FAT16/FAT32 partitions for TOS or Windows.
2. When partitioning, for FAT16 and for FAT32 partitions HDDRUTIL automatically creates the respective filesystems. No further operations are required in order to use them. Note that MagiC or MiNT are required in order to use FAT32 partitions with the Atari.
3. For other partition types than FAT16 and FAT32, like the 3 Linux partitions in the example above, HDDRUTIL only creates the actual partitions but no filesystems.
4. For GPT partitions HDDRUTIL accepts both "LNX" (Atari notation) or "$83" (DOS/Linux notation). The result will be the same. For Minix partitions "MIX" or "$81" is accepted.
5. Also refer to the HDDRIVER manual. Since HDDRIVER 12 the HDDRIVER distribution includes the manual for the respective release as a PDF file.