Welcome, Guest. Please login or register.

Author Topic: What is the precise 4 Gig limit?  (Read 4174 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
What is the precise 4 Gig limit?
« on: January 06, 2011, 03:20:36 AM »
I may have mentioned that my main computer (A3000 with two 4.3 Gig Quantum hard drives with PFS2) got sick in 2010.  Basically, the partitions on the primary HD began to corrupt.  Then, the partitions on the backup drive also began to corrupt within a month of the first.  It is too strange that both drives would fail at the same time.  Some partitions would report that some of their data was outside their boundaries. Strange!  This has been a bit depressing for the last 9 months!

Today, I found another 4.3 Gig HD in the basement and it seems to be functional (What luck!).  While partitioning it, I wondered what would happen if I formatted all of the available 4.3 Gigs.  Would the system immediately report the drive unusable because it requires more than the available addressing range?  Or, would my system happily chug along for years until I wrote a file that went beyond the theoretical address limit?  Would that data overflow into another partition, corrupting both?

That's it for tonight's brain storm.  I may be able to finally salvage my data to the new drive.  Maybe a fresh repartitioning (inside the TRUE 4 Gig limit) of the other two supposedly bad drives will save them as well.

Yes, I know there are patches to allow HDs much larger than 4 Gigs.  Being close to the limit I elected not to use them at the time.  My mistake.

Any thoughts?
« Last Edit: January 06, 2011, 03:27:31 AM by Tenacious »
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: What is the precise 4 Gig limit?
« Reply #1 on: January 06, 2011, 03:37:23 AM »
Quote from: Tenacious;604225
I may have mentioned that my main computer (A3000 with two 4.3 Gig Quantum hard drives with PFS2) got sick in 2010.  Basically, the partitions on the primary HD began to corrupt.  Then, the partitions on the backup drive also began to corrupt within a month of the first.  It is too strange that both drives would fail at the same time.  Some partitions would report that some of their data was outside their boundaries. Strange!  This has been a bit depressing for the last 9 months!

Today, I found another 4.3 Gig HD in the basement and it seems to be functional (What luck!).  While partitioning it, I wondered what would happen if I formatted all of the available 4.3 Gigs.  Would the system immediately report the drive unusable because it requires more than the available addressing range?  Or, would my system happily chug along for years until I wrote a file that went beyond the theoretical address limit?  Would that data overflow into another partition, corrupting both?

That's it for tonight's brain storm.  I may be able to finally salvage my data to the new drive.  Maybe a fresh repartitioning (inside the TRUE 4 Gig limit) of the other two supposedly bad drives will save them as well.

Any thoughts?

Using something like the FastATA MKIII hardware or the 4xEIDE hardware they spilt your drives automatically into lots of 4GB partions, but upon actually checking them they are always just a few K under 4GB (never 4GB exactly).

Seems when you try to do this due to the actual way the filesystems work if they were to actually try and write data all the way up to the very last byte of an exact 4GB partition some of the data ends up being written to the previous partition if there is one or if not it overwrites another part of the current partition causing all sorts of data loss... :(

The applies to the max size of a FFS partition which is supposed to be 2GB but is always just a few K less than 2GB to prevent this overwriting and corruption of other partitions... :)

That's the simplest explanation I can give you cos it's really a bit more complicated that this... :)
« Last Edit: January 10, 2011, 01:07:23 AM by Franko »
 

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: What is the precise 4 Gig limit?
« Reply #2 on: January 06, 2011, 03:59:17 AM »
Quote from: Franko;604231
Using something like the FastATA MKIII hardware or the 4xEIDE hardware they spilt your drives automatically into lots of 4GB partions, but upon actually checking them they are always just a few K under 4GB (never 4GB exactly).

What you say rings a bell with me.  If I understand correctly, there was a natural 4 GB limit to total hard drive size (regardless of partitions) until OS3.5 or 3.9 released a patch (I didn't install these) to allow larger drives.  4 GB was a lot of HD when 3.5 was released, grin.

Quote from: Franko;604231
Seems when you try to do this due to the actual way the filesystems work if they were to actually try and write data all the way up to the very last byte of an exact 4GB partition some of the data ends up being written to the previous partition if there is one or if not it overwrites another part of the current partition causing all sorts of data loss... :(  

It only occurred to me tonight that data written past the address limit might cycle through zero to an address in my first partition.

I feel like a boob.  If this turns out to be true (I haven't yet confirmed my partition sizes), the solution will be easy enough.

It's late here.  It must be very early morning in Scotland.  You do sleep, right?  ;)
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: What is the precise 4 Gig limit?
« Reply #3 on: January 06, 2011, 04:15:16 AM »
Quote from: Tenacious;604233
What you say rings a bell with me.  If I understand correctly, there was a natural 4 GB limit to total hard drive size (regardless of partitions) until OS3.5 or 3.9 released a patch (I didn't install these) to allow larger drives.  4 GB was a lot of HD when 3.5 was released, grin.



It only occurred to me tonight that data written past the address limit might cycle through zero to an address in my first partition.

I feel like a boob.  If this turns out to be true (I haven't yet confirmed my partition sizes), the solution will be easy enough.

It's late here.  It must be very early morning in Scotland.  You do sleep, right?  ;)

Not very much it's only 4:10 am here and I'm still wide awake... :lol:

As I said, most folk would reasonably expect 4GB to mean exactly 4GB but in AmigaLand it's not as simple as that, even if you managed to partition an HD to exactly 4GB the file system when your HD is just about full would end up writing data to a lower partition or as you say cycle though to zero... :)
« Last Edit: January 10, 2011, 01:08:10 AM by Franko »
 

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: What is the precise 4 Gig limit?
« Reply #4 on: January 06, 2011, 04:49:41 AM »
I'm still looking around for a number.  One site suggested the limit might be in the 3.7 to 3.9 GB range, depending on filesystem used.  

Appearently, Thomas wrote a utility to check the limit.  Maybe that's my answer.  I need to read up more on PFS.

I'm going to turn in tonight.  

Thanks for the help.
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: What is the precise 4 Gig limit?
« Reply #5 on: January 06, 2011, 07:00:32 AM »
Quote from: Tenacious;604236
I'm still looking around for a number.  One site suggested the limit might be in the 3.7 to 3.9 GB range, depending on filesystem used.  

Appearently, Thomas wrote a utility to check the limit.  Maybe that's my answer.  I need to read up more on PFS.

I'm going to turn in tonight.  

Thanks for the help.

The number doesn't have to be exact, just make sure it's slightly under the exact 4GB size... :)

(gawd... I'm still wide awake and it's now 7:01am... :))
« Last Edit: January 10, 2011, 01:08:51 AM by Franko »
 

Offline zipper

Re: What is the precise 4 Gig limit?
« Reply #6 on: January 06, 2011, 07:34:40 AM »
Using my calculator - 4194303 ?
 

Offline Thomas

Re: What is the precise 4 Gig limit?
« Reply #7 on: January 06, 2011, 09:06:03 AM »
The exact limit is 2^32 bytes a.k.a. 4,294,967,296 bytes or 8,388,608 sectors.

To be sure to stay below the limit, you can change the geometry of the hdd, for example to

cylinders = 8322
heads = 16
blocks per track = 63
blocks per cylinder = 1008

This results in 8,388,576 sectors or 4,294,950,912 bytes.

There is fixhddsize program on Aminet which can do this for you.

Or you can change from PFS2 to PFS2ds which allows you to use 8 GB. (To be precise, 16383 cylinders, 16 heads, 63 sectors which results in 16,514,064 sectors or 8,455,200,768 bytes).

Regarding corrupted partitions, you should upgrade to PFS3. I never had a corrupted partition with PFS3 while it happened with PFS2 every now and then.

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: What is the precise 4 Gig limit?
« Reply #8 on: January 06, 2011, 03:27:29 PM »
Quote from: Thomas;604255
The exact limit is 2^32 bytes a.k.a. 4,294,967,296 bytes or 8,388,608 sectors.

To be sure to stay below the limit, you can change the geometry of the hdd, for example to

cylinders = 8322
heads = 16
blocks per track = 63
blocks per cylinder = 1008

This results in 8,388,576 sectors or 4,294,950,912 bytes.

There is fixhddsize program on Aminet which can do this for you.

Or you can change from PFS2 to PFS2ds which allows you to use 8 GB. (To be precise, 16383 cylinders, 16 heads, 63 sectors which results in 16,514,064 sectors or 8,455,200,768 bytes).

Thanks for the advise and the link, Thomas.  I will use fixhddsize on the new drive.  It should be able to check the old drives as well?

I thought it was so clever to have two HDs in the A3000, one as a mirror of the other.  Now, I'm considering having one in an external SCSI box, so it can act as a backup to all of my Amigas.




Quote from: Thomas;604255
Regarding corrupted partitions, you should upgrade to PFS3. I never had a corrupted partition with PFS3 while it happened with PFS2 every now and then.

Yea, well, I bet I'm not the only member of this board impatiently waiting for PFS3 to become available again!
 

Offline Thomas

Re: What is the precise 4 Gig limit?
« Reply #9 on: January 06, 2011, 04:18:09 PM »
I need to correct myself as I didn't notice you are using SCSI. The 8 GB limit mentioned above only applies to IDE. With SCSI + PFS2ds you can actually use hard drives up to 2 TB with partitions up to 104 GB :-)

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Updated: What is the precise 4 Gig limit?
« Reply #10 on: January 09, 2011, 08:03:38 PM »
Quote from: Thomas;604331
I need to correct myself as I didn't notice you are using SCSI. The 8 GB limit mentioned above only applies to IDE. With SCSI + PFS2ds you can actually use hard drives up to 2 TB with partitions up to 104 GB :-)


Thanks again Thomas.  I like your FixHHDsize program, added it to my system drawer.

@ all
I have been re-partitioning and formatting (with PFS2) the one good 4.3GB drive most of the weekend.  I found at the end last night I had my desired partitions (all formatted and ready to go) plus a strange ghost partition.  I say "ghost" because the intended partitions accounted for the whole capacity of the drive.  Where did this extra partition come from?  It had the same name as one of the others with a few extra characters at the end.  It would even format.  I've never noticed this before.  If a user does not delete all old partitions, can the new and old overlap and corrupt each other?  Considering my current circumstance, I re-did the whole drive.  No ghosts so far.  ;)

I've been rounding up all of my old SCSI HDs and trying to revive them.  I have a suspicion that several are locked up as a result of corrupted parameters, not corrupted disks.  Aren't some fundamental parameters about the drive stored on a EEPROM?  Most manufacturers have jumpers marked "reserved" or "factory use".  I wonder if some of these are for resetting the EEPROM to factory defaults.  Anyone tried this?
« Last Edit: January 09, 2011, 08:16:28 PM by Tenacious »
 

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: Updated: What is the precise 4 Gig limit?
« Reply #11 on: January 09, 2011, 08:31:12 PM »
@^%?}#!

The new drive just disappeared off the system!  HDtoolBox reports "Sorry, this type of device cannot be handled by HDtoolBox".  Same as one my other "dead" drives.

Can a person change partition too many times and corrupt the EEPROM?

I seriously need to find a master reset!
 

Offline Thomas

Re: Updated: What is the precise 4 Gig limit?
« Reply #12 on: January 09, 2011, 09:00:18 PM »
Partitions are not stored in an EEPROM. The parttion table is written to the first few blocks of the drive. The drive's firmware does not know about partitions. Partitions are only known to the operating system.

Could it be that it's too hot inside your Amiga?

Offline TenaciousTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 1362
    • Show only replies by Tenacious
Re: Updated: What is the precise 4 Gig limit?
« Reply #13 on: January 09, 2011, 11:23:16 PM »
Quote from: Thomas;605170
Could it be that it's too hot inside your Amiga?


The drive has been sitting in the open air.  Nothing felt hot.

When a drive is new, where is the initial information (number of cylinders, heads, block/track, etc) stored?   This is the info that can't be read anymore.
 

Offline fishy_fiz

  • Hero Member
  • *****
  • Join Date: Jan 2005
  • Posts: 1813
    • Show only replies by fishy_fiz
Re: Updated: What is the precise 4 Gig limit?
« Reply #14 on: January 10, 2011, 12:04:36 AM »
Im a little confused here. I have partitions well beyond 4 gig without issues. The 4gig limit only applies to the boot partition, or is this what you mean ? (or perhaps it's an os3.1 issue that Ive forgotten about after having used 3.9 for so long?)
Near as I can tell this is where I write something under the guise of being innocuous, but really its a pot shot at another persons/peoples choice of Amiga based systems. Unfortunately only I cant see how transparent and petty it makes me look.