English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 December 2018, 17:08   #1
Nova
Registered User
 
Nova's Avatar
 
Join Date: Sep 2012
Location: N/A
Posts: 309
hdf - ways to reduce filesize

i am basically looking for options to save some space on hdfs. any chance to compress existing hdfs while retaining read/write accessiblity // probably massconvert to another more dense format?

i read about a few formats but i am not sure about the state of actuality?
Nova is offline  
Old 20 December 2018, 18:17   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
You could identically partition and quick-format a sparse or dynamic HDF in the emulator, and clone the existing contents to it with
copy DHx: DHy: all clone quiet
to get an HDF that only takes up as much space as needed.

If HDF isn't a strict requirement then you could use a directory-based drive, that way the required storage space also goes down as you delete files, which won't happen with sparse or dynamic HDFs as far as I know. The directory-based drives also maintain all the Amiga-specific file flags.
Leffmann is offline  
Old 20 December 2018, 21:03   #3
Nova
Registered User
 
Nova's Avatar
 
Join Date: Sep 2012
Location: N/A
Posts: 309
hi leffmann,

thanks a lot for your suggestions.

regarding method 1: maintaining a single file format seems a big plus to me. on the other hand, it is a manual process + might take a lot of time when dealing with multiple hdfs.

a different format is no problem as long as it remains compatible at least with the emulators.

after all, the second method seems the way to go, as it is also the proposed format over here, if not mistaken.

i definitely will have to read into this more carefully.

for now, what is the recommended way to turn hdfs into directory based hds under linux?


p.s.: i am curious to see the final size comparison: hdf - directory hard drive.
Nova is offline  
Old 20 December 2018, 21:21   #4
Saghalie
Registered User
 
Saghalie's Avatar
 
Join Date: Nov 2014
Location: FT Lewis, WA
Posts: 374
Quote:
Originally Posted by Nova View Post
for now, what is the recommended way to turn hdfs into directory based hds
under linux?
The only way I can think of is to configure a system to boot up on an HDF
and have a few directories loaded as well (as harddrives). Then copy the
HDF contents to the directories.

Copy sys: harddrive1: all buf 10 clone

After that just configure another system with the directories as the
harddrives.


careful of the buf switch though... if you don't configure enough memory it
will fail.
Saghalie is offline  
Old 20 December 2018, 23:42   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,020
I am not sure if the "directory-based drives also maintain all the Amiga-specific file flags" is true for Unix/Linux, too. It works well with Windows and NTFS (using data streams) and less well with FAT (using uaefsdb files for storing additional attributes). You can easily lose these attributes if you copy files using the host OS.
thomas is offline  
Old 21 December 2018, 10:45   #6
Nova
Registered User
 
Nova's Avatar
 
Join Date: Sep 2012
Location: N/A
Posts: 309
Quote:
Originally Posted by Saghalie View Post
The only way I can think of is to configure a system to boot up on an HDF
and have a few directories loaded as well (as harddrives). Then copy the
HDF contents to the directories.
ok, so much for an automated process on the host system, then. seems the 'conversion' can not be handled outside the emulator, which is what i hoped for (batch converter)? does there exist an amiga tool for managing this task?

anyway, thanks a lot saghalie


hi thomas,

Quote:
I am not sure if the "directory-based drives also maintain all the Amiga-specific file flags" is true for Unix/Linux, too.
that is a good point, but i guess there is even less need to worry with linux - from fs-uae site:

"Some file names which are valid on the Amiga are not allowed on the host file system. This is particularly true on Windows, which has one of the most restrictive set of allowed file names (Linux and OS X are more flexible)."

after all, i think i better focus on dynamic hdfs. i really like the one-file aspect even though loosing direct accessibility of amiga files on the host system, that goes with a dir based solution.

again thanks a lot for your help.
Nova is offline  
Old 21 December 2018, 15:01   #7
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,020
I'm not talking about file names but file attributes. AmigaDOS has file notes, Linux has nothing like that. AmigaDOS has eight protection bits, Linux has three.

National characters in file names and code pages are another issue.
thomas is offline  
Old 21 December 2018, 18:47   #8
Nova
Registered User
 
Nova's Avatar
 
Join Date: Sep 2012
Location: N/A
Posts: 309
ok, i see what you mean, thanks for clarifying.

even more reasons to stay with hdfs, at least for linux people.

p.s: is this kernel related or can you escape by using another fs (say btrfs, zfs, xfs)?
Nova is offline  
Old 22 December 2018, 02:51   #9
Rotareneg
Registered User
 
Rotareneg's Avatar
 
Join Date: Sep 2017
Location: Kansas, USA
Posts: 328
You could always just compress the .hdf in Windows:
Right click on file, "Properties", "Advanced...", Check "Compress contents to save disk space", "Ok", "Apply".
Rotareneg is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Late emulation to reduce input lag? mark_k support.WinUAE 6 13 October 2016 21:58
Bug in x64 file requester and bug in Blizzard PPC ROM filesize headkase support.WinUAE 5 26 June 2016 14:17
Reduce size of an IFF image? BarryB support.Apps 18 19 September 2015 03:54
How can I reduce the number of reboots on start-up? keropi support.Apps 2 08 December 2005 13:19

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:35.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11984 seconds with 14 queries