Re: [hatari-devel] tools/atari-hd-image.sh |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] tools/atari-hd-image.sh
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Wed, 13 Mar 2024 21:58:27 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1710363523; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=yUuBSundglV6eBjwyOFU+aqboou3gczCUvDFogViZZc=; b=pCz25+FHM8HGYWbzLOfcRRVdhvV9i4YhCA6l55prRgqU8kJ6NO6Pe486xdM665Kwd3 hLE2vqc8IvTPXzl4RgEgirjz7T7r7xKwEgsijwlwXRdwZPpX8+W9pq4eQq/L1kSPoiH1 MDDyyvFx34p3Y4MfvMwUAG5EdPLe9pzomNvDidjwNgD8DMSXOhodDm9KFHfj5fhgmvNZ P0RaY3f5f/amSlFq5z65CIvAu9OfyPcQzNr6nvC4rL3Xn0Gpk0pRP6YdKaWRC9FGmWHc 685i0S/cGHL1KvWAv+kPgCZ4gICy8n68MJ7vaOR53ah3cE6aJjcYEnMpSU3m08AbuCm7 /N6Q==
- Arc-seal: i=1; a=rsa-sha256; t=1710363523; cv=none; d=strato.com; s=strato-dkim-0002; b=TjMOPcPo+Ih3RAYiLMIrXxyTsgNvPh6eGv5dlsIttK7nUXzb+11UTqKbTgvF2Lf13A d74V25AOBRZHMP2abLFURVjzK6dL6v7F9KjDaa0erFq6X9sm6zxjsrTZ1UAk32YuMqXy K+JnNr9w4vGZ36/1RRDN7883Xe/KpSkN4HkcxINa59kDQbopTHp4oTSAaMy+ZSCDMtgj VnuvaW7OTAVUjCOoa/oMjpPAVQ7yS9Y1lmPIXXWuHzxxnwTAVWfeSHvjbDuY8Nj9vilo qgnjq+msn2MBVPye/cYtRnE69ERZs9RZti+aNqxzyTOB8Mq5RWcKG7FtDhTyFy3wXSFW IBBw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1710363523; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=yUuBSundglV6eBjwyOFU+aqboou3gczCUvDFogViZZc=; b=ps3yCKJ2y6sy7HuGnu2ZryXp4EosDoB/i5DH0/+oXj+tdpGqIXV0RzAg+rio3UEZuL O/HNKxuMCJSyZkrTxeBwyRDX5f8Y7ZpwhB6h1KxfP6Mkyb4zRjW3D3NDNB1LLBCMO2k9 au7Yfw5uvTmop/11/SkNy8JcJ9TtP4jntnknlGuyWzsPA34/cE5mM1xeiI1Mro8zdqYf kSvqjG5RZrA334gO6BP8CY5eYZq3OgcW+WZnTGxZelWXCXxSB8dAl6U5EK38xyIVX+wN JIQHvdab+7vP1Mmnaem8ijrXcAGMK7wSUAh5ALFeixyNCb5jEfxXF6e9pK7n5KNV3gSq D1kQ==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1710363523; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=yUuBSundglV6eBjwyOFU+aqboou3gczCUvDFogViZZc=; b=k7J+lblkQUb84t4AfJb+d2LaMgUamJ7KNZZDqrAonjuo0g4Z4q9QABbdUH8mAG8RKK /9SYshXhGvuOucqcp5Aw==
Hi Christian,
these data may be relevant for so-called super floppy media, which only have
a single partition and use the root sector as their boot sector. I don't
know about Windows, but at least some DOS versions supported this format.
It also has a certain relevance for the Atari, in particular when formatting
a floppy disk in a SCSI floppy disk drive or an LS-120 drive. In this case
you need the boot sector data in the "root sector" of the floppy disk.
By the way, with HDDRUTIL you can create such a format by not entering
any partition data when partitioning. HDDRUTIL will then ask you whether you
want to partition the medium like a floppy disk.
Best regards
Uwe
> Hi,
>
> I recently participated in a discussion on AF regarding the
> atari-hd-image.sh script:
> https://www.atari-forum.com/viewtopic.php?p=460130#p460130
>
> ... and I wanted to see if I can propose a patch to make it better.
> (After the Hatari 2.5 release, of course.) But I don't fully understand
> what I see inside the existing script in the first place.
>
> For example: Why is the *MBR* (aka: root sector) filled with data such
> as the sectors per cluster or the media descriptor 0xF8?
> https://git.tuxfamily.org/hatari/hatari.git/tree/tools/atari-hd-image.sh?id=891f190e20c8358494b4a8685b749ae2ad6eb22d#n190
>
> Looking at the offsets, this appear to be fields that are meant to be
> inside the BPB in the VBR (aka boot sector of the partition):
> https://en.wikipedia.org/wiki/BIOS_parameter_block.
>
> So, what is the use-case of putting those in the MBR? Which
> software/driver expects this information to be in this (wrong) place?
>
> Regards
> Christian
> --
> Christian Zietz - CHZ-Soft - czietz@xxxxxxx
> WWW: https://www.chzsoft.de/
> New GnuPG-Key-ID: 0x8708B34C827B159E
>
>