[hatari-devel] tools/atari-hd-image.sh

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


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



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/