27 January 2018, 20:56 | #1 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Advice needed on HDFs
I have got a whole bunch of HDFs, some 200Mb, and some 400Mb, and whilst some are nearly full, others have hardly any stuff in them. When I zip up these files, they can become drastically much smaller in proportion to how much of their capacity is unused.
I am wondering if a single huge HDF is preferable to several small ones (like say 1Gb) or if there is a way to make the file size of the HDF vary with the contents. Is this what "Dynamic HDF" is? And how reliable is it? I would imagine something like that would get fragmented easily and cause problems, so what's the consensus on using variable-sizing HDFs? EDIT: I'm going to experiment with ticking "Sparse File" and "Dynamic HDF" and see how I get on. Last edited by Foebane; 27 January 2018 at 21:28. |
27 January 2018, 21:46 | #2 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
|
27 January 2018, 22:10 | #3 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
I think I might go with the one giant HDF. |
|
27 January 2018, 22:31 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
Dynamic HDF is what you want. It creates standard VHD files as used by many virtualisation softwares.
Don't forget to use RDB mode also. And don't format a dynamic HDF. During formatting it will grow to its maximum size because each and every block is written to. Only do quick format to keep the file size small. |
28 January 2018, 00:02 | #5 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
|
|
28 January 2018, 00:20 | #6 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
my main system consists from 2 HDFs, one for the system (SYS: with workbench, libs and
basic tools (200 MB only -> bit small, maybe 512 to 1gb is better), and a 4GB Work: hdf, which holds all the installed apps and games. most important, i have a backup of both of them in a working state, updating them on a regular basis. #1) on the ftp are some preinstalled 2GB PFS3 / FFS dynamic hardfiles. Last edited by emufan; 28 January 2018 at 00:38. |
28 January 2018, 00:32 | #7 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
A 4000 MB VHD takes up 34 KB when created. It grows with its contents.
A sparse VHD does not make sense because the VHD does not contain unused space. A sparse file is a file system feature in NTFS. It appears as if it was a big file but does not take that space. Only areas of the file which have been written to are held on disk. It's your choice, but as sparse files only work with NTFS, I would not use them. If you want to copy the hardfiles around, possibly to an USB drive with FAT or to a NAS drive, you would then expand the sparse files to their nominal (maximum) size while VHDs keep their small size. |
28 January 2018, 00:39 | #8 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
What I meant by "one giant HDF" is for the demos alone, I still have a 400Mb Games HDF and my main System HDF, which is 200Mb (probably from the same ClassicWB people as you, emufan?)
|
28 January 2018, 00:44 | #9 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
28 January 2018, 01:47 | #10 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
|
|
28 January 2018, 16:17 | #11 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
So I've set up several VHD files of 800Mb each, although most will not get even quarter-filled, and I'm satisfied with the small size.
Curiously, I deleted the contents of one VHD to see if it would shrink in size, but no. Would it ever shrink, if say, defragmented? Is there such a tool in Workbench? |
28 January 2018, 18:17 | #12 | ||
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
Quote:
Quote:
You can prepare a new VHD and then copy all files from the old to the new one. This will defragment as well as reorganise (shrink). |
||
28 January 2018, 18:32 | #13 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Oh well, can't have everything.
I don't mind copying over everything. I go into the Shell and use "copy all to", which I only hope works even with an operating system like ClassicWB. I haven't had any problems so far. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help & Advice needed! | Stamperton | MarketPlace | 5 | 16 October 2017 20:47 |
A big hello and some advice needed. | Wonderer | New to Emulation or Amiga scene | 2 | 21 February 2014 19:34 |
TinyLauncher working on FFS formatted .hdfs, but not on PFS .hdfs | bladecgn | support.WinUAE | 10 | 23 November 2013 05:32 |
once again advice needed please!! | bowfell | Amiga scene | 3 | 24 August 2010 21:49 |
A2000 Advice needed | Andec | support.Hardware | 11 | 17 September 2008 11:36 |
|
|