Welcome, Guest. Please login or register.

Author Topic: Size of directory hard disk  (Read 3078 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Size of directory hard disk
« on: December 08, 2011, 02:06:01 PM »
Hi,

It seems that my winuae gives an arbitrary size to my directory hard disk. I mean directories mounted as hard drives in winuae.
Personnally, I don't mind but some softwares complain about it like wordworth. It considers the space size as  too low for it  to install.
Is there a way to tweak this measurement  so that I can install hungry softwares ?
 

Offline Thomas

Re: Size of directory hard disk
« Reply #1 on: December 08, 2011, 02:19:46 PM »
The calculation is like this:

- divide the total amount of free space of your harddrive by 4GB. If the remainder of this calculation is bigger than 2GB, then your "hungry softwares" thing it's too small (a.k.a. negative).

Tweak:

- fill the harddisk with garbage files until the remainder is smaller than 2GB.

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: Size of directory hard disk
« Reply #2 on: December 08, 2011, 05:28:59 PM »
Thanks,
I suppose this means that winuae misses something in its management.
I hope it will be corrected like giving the possibility of a quota to comply with the rule you said.
This said, it's a little strange ...
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Size of directory hard disk
« Reply #3 on: December 08, 2011, 07:06:54 PM »
It's a classic bug: instead of reporting 2^31-1 for anything larger, it truncates the higher bits (and 0xFFFFFFFF) and treats the rest as signed (!) 32 bit. I guess the latter is AmigaOS' fault, but UAE's file system driver should know about this.
 

Offline Thomas

Re: Size of directory hard disk
« Reply #4 on: December 09, 2011, 08:15:46 AM »
Disk size is given as number of blocks and block size. WinUAE does this correctly. The Amiga software fails in calculating the size in bytes because it uses 32bit integers (some programs even use signed integers).

The same happens when you connect a big harddrive to a real Amiga, too. If you don't want this problem, make smaller partitions or fill the big partitions with data until less than 2 GB space is left. Or use Amiga software which can deal with big disks. If you replace the old installer used by WW by the one which comes with OS 3.9, the installation will work correctly.

BTW, this happens with old Windows software, too. For example Need For Speed III refuses to save to a partition which has more than 2GB free space.

Offline Daedalus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 893
    • Show only replies by Daedalus
    • http://www.robthenerd.com
Re: Size of directory hard disk
« Reply #5 on: December 09, 2011, 10:27:43 AM »
Yep, it's a "feature" of the classic Amiga OS, and it's also possible that Wordworth is doing its own internal calculations in the same way, meaning that even a patch for the OS wouldn't solve the problem. Usually it's perfectly safe and harmless once the filesystem itself knows the correct size, but sometimes (like in this case) it causes issues.

Another alternative might be to create a hard disc file for WinUAE which is less than 2GB in size. You can install what you like there and keep it, or even install it and copy it over to wherever you like, and update the assigns etc. to suit.
Engineers do it with precision
--
http://www.robthenerd.com
 

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: Size of directory hard disk
« Reply #6 on: December 09, 2011, 10:33:37 AM »
Thanks all,
yes daedalus, this is the solution I consider the most reasonable.
And it'll be the occasion to struggle with this new topic !
Have I to use special tools to handler hard disk file like formatter, partitioner, ... ?
 

Offline Daedalus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 893
    • Show only replies by Daedalus
    • http://www.robthenerd.com
Re: Size of directory hard disk
« Reply #7 on: December 09, 2011, 10:46:22 AM »
No, once you create it in WinUAE, you just need to format it from Workbench the normal way: Select the icon (should be a non-DOS volume), and choose Icon->Format... in the Workbench menus.
Engineers do it with precision
--
http://www.robthenerd.com