Welcome, Guest. Please login or register.

Author Topic: Hardfile Geometry and Actual Size  (Read 2145 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Super TWiTTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2009
  • Posts: 222
    • Show only replies by Super TWiT
Hardfile Geometry and Actual Size
« on: February 15, 2011, 10:27:25 PM »
I feel like an idiot, and am sure this must have been asked before, but many hours of googling, and reading manuals doesn't seem to be helping me at all.  I have uae and am running on linux.  I guess I have three questions

1. What is the biggest hardfile WB 1.3 (and kickstart 1.3) can support? (for best compatibility)
2. What is the biggest hardfile WB 3.1 (and kickstart 3.1) can support? (for best compatibility)
3. How do I get the whole drive to show up?  I am confused by the disk geometry.

Uae gives me these options when I add a hardfile:
Reserved Blocks:
Surfaces:
Block Size:
Blocks per Track:
Boot Priority:

Some forums explain the size in terms of cylinders, sectors, tracks, and heads, but I don't have any options for these, and I am completely confused about how to make a whole (1 GB for instance) hardfile show up as one partition.
Once there was a man and a boy in the woods.
 
Boy: I\'m scared...
 
Man: Hah! What have you got to be afraid of? I\'m the one that\'s going to be coming back alone!
 

Offline Thomas

Re: Hardfile Geometry and Actual Size
« Reply #1 on: February 16, 2011, 12:40:07 PM »
Strictly speaking a "sector" is the physical unit the harddrive uses, usually consisting of 512 bytes and a "block" is the logical unit the file system uses consisting of a whole number of sectors.

However, many programs (and people) use "sector" and "block" as a synonym. This also applies to the HDF settings of UAE. Therefore "block size" should always be 512.

Reserved blocks is a file system thing, too and should always be 2.

Surfaces a.k.a. heads and blocks per track a.k.a. sectors [per track] should be choosen so that the number of cylinders does not exeed 65535.

The formula for HDF size is simple:

HDF size = cylinders * surfaces * blocks per track * block size

or the other way round:

cylinders = HDF size / block size / blocks per track / surfaces


(Win)UAE usually selects surfaces = 1 and blocks per track = 32. However your choice of 1GB just exeeds the upper limit for these values, so you should choose surfaces = 2 or something.

Be aware that the geometry is stored nowhere but in the UAE config file. If you want to use a HDF with a different config, you need to enter exactly the same geometry, otherwise the HDF will be unreadable. So always use 1 surface / 32 blocks where possible (and keep HDFs at 1023 MB or smaller).


About boot priority: the device with the highest priority is the boot device. The floppy drive has priority 5, so if you set your harddrive's prio higher than 5, you won't be able to boot from floppy disk any more.

The usual priority is 0. If there are multiple devices with the same priority, the one which comes first in the list (i.e. the config file) is used.
« Last Edit: February 16, 2011, 01:28:52 PM by Thomas »