English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 25 July 2004, 11:11   #1
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Creating a SFS HDF file

I'm trying to create an SFS HDF in WinUAE, but can't get it to work. I need to do this to test some ClassicWB extras I've added to the popup menu.

I've tried the following:

Adding the SFS filesystem when creating a HDF. Entered workbench (which has SFS in the L directory) and used SFSformat and format. Both cause an indefinite pause on initializing disk.

Adding a HDF, clearing all parameters accept blocksize and attempted to run HDtoolbox with the "device=uaehf.device" parameter. No disks show up.

What am I doing wrong? OS is Win ME (does uaehf.device only work under 2k/xp), WinUAE version 0825 (waiting for 1.0 before jumping fully to the new GUI).
Bloodwych is offline  
Old 25 July 2004, 14:09   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Regular HDF: you need to use hex-editor to add "SFS\0" identification to beginning of HDF-file. (because WinUAE won't load the filesystem if it is not needed..)

Full HDF: try removing unneeded directory or hardfile drives (or move the HDF higher in harddrive config panel) because older HDToolBox versions won't detect drives with "too large" unit number.
Toni Wilen is offline  
Old 25 July 2004, 16:36   #3
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Thanks Toni, excellent advice.
Bloodwych is offline  
Old 27 July 2004, 22:55   #4
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Only I can't make use of it!

When I use HDtoolbox FullHDF method and set everything up for SFS, it always says "save failed, not enough room for configuration data"

I tried editing a regular HDF file with SFS\0 identifier at the beginning, but can't get this second method working either. Same problem as before.

Any ideas what might be wrong? I'm determined to mount a SFS partition in WinUAE.

Although I'd rather do this myself, if someone could drop a zipped empty SFS HDF in the zone (at least 100MB when unzipped) I'd be most grateful!

Last edited by Bloodwych; 27 July 2004 at 23:06.
Bloodwych is offline  
Old 28 July 2004, 09:15   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Quote:
Originally Posted by Bloodwych
When I use HDtoolbox FullHDF method and set everything up for SFS, it always says "save failed, not enough room for configuration data"
This means there is not enough space in RDB for all filesystems. Try deleting FastFileSystem before adding SFS.

Quote:
I tried editing a regular HDF file with SFS\0 identifier at the beginning, but can't get this second method working either. Same problem as before.
Did you use "SFS<binary zero>", not "SFS<ascii zero">? Do you see something about fake filesystem in winuaelog.txt?

for example:

hardfile2=rw,DHX:D:\amiga\plain.hdf,32,1,2,512,0,D:\amiga\AMIGA\l\SmartFilesystem

Beginning of plain.hdf:

00000000h: 53 46 53 00 00 00 00 00 00 00 00 00 00 00 00 00 ; SFS.............
00000010h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
Toni Wilen is offline  
Old 28 July 2004, 22:07   #6
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Sorry for taking your time Toni, really appreciate the help. I know you must have better things to do - like WinUAE development.

Already tried deleting FFS using the "add/update" filesystem in HDtoolbox. Then after "adding" SFS, using the correct identifier (0x53465300) and selecting SFS/0, I still get that message when attempting to save. I'll go back and check I'm not doing anything stupid then post a detailed explanation of the steps I've taken.

Tried that SFS at the beginning - like before it formats then fails to initialize using SFSformat command and the normal workbench format (see pic below). The HDF after a failed format now contains this at the beginning:

00000000h: 42 41 44 00 53 46 53 01 53 46 53 02 53 46 53 03; BAD.SFS.SFS.SFS

WinUAE config has this after I've setup the HDF:

hardfile2=rw,DH0:G:\Test.hdf,32,1,2,512,0,D:\Emulators\WinUAE0825\SmartFilesystem
hardfile=rw,32,1,2,512,G:\Test.hdf

WinUAE Boot only has this:

hfd open: 'G:\Test.hdf'
HDF 'G:\Test.hdf' opened successfully, handle=00000078
Attached Thumbnails
Click image for larger version

Name:	SFSformat.png
Views:	536
Size:	4.5 KB
ID:	7233  

Last edited by Bloodwych; 28 July 2004 at 22:15.
Bloodwych is offline  
Old 28 July 2004, 22:41   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Quote:
Originally Posted by Bloodwych
WinUAE Boot only has this:

hfd open: 'G:\Test.hdf'
HDF 'G:\Test.hdf' opened successfully, handle=00000078
winuaelog.txt, not winuaebootlog.txt. (and don't forget to enable logging)

Part of my winuaelog.txt:

Fastmem (32bit): mapped @$10000000: 64 MB Zorro III fast memory
Card 1 (ZorroIII) done.
UAEGFX-card: mapped @$14000000
Card 2 (ZorroIII) done.
Filesystem: mapped memory @$e90000.
Card 3 (ZorroII) done.
Catweasel MK3: mapped @$ea0000
Card 4 (ZorroII) done.
FS: mounted virtual unit DH0
FS: mounted HDF unit DHX
RDB: fakefilesys, trying to load 'D:\amiga\AMIGA\l\SmartFilesystem', dostype 0x53465300
HDF: faked RDB filesystem 53465300 loaded

(DHX is my test SFS hardfile, DH0 is regular directory harddrive)

HDToolbox problems: sorry, no idea. It works fine here
Toni Wilen is offline  
Old 28 July 2004, 22:46   #8
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Woops, sorry! Getting late in the day.

winuaelog:

Fastcard: mapped @$200000: 8MB fast memory
Card 1 (ZorroII) done.
Filesystem: mapped memory @$e90000.
Card 2 (ZorroII) done.
FS: mounted HDF unit DH0
RDB: fakefilesys, trying to load 'D:\Emulators\WinUAE0825\SmartFilesystem', dostype 0x53465300
HDF: faked RDB filesystem 53465300 loaded

I'll try copying your config.

If it works your end, I guess we're at a stop with HDtoolbox. Like I said I'll test further.

Last edited by Bloodwych; 28 July 2004 at 22:53.
Bloodwych is offline  
Old 29 July 2004, 21:07   #9
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Well, I've tried and failed. Both methods won't work. SFS wasn't meant to be.

Thanks for your help.

As a last desperate step incase you see any stupid error, I give caps of my SFS nightmare for the Full HDF method......
Attached Thumbnails
Click image for larger version

Name:	Image1.png
Views:	548
Size:	3.3 KB
ID:	7237   Click image for larger version

Name:	Image2.png
Views:	569
Size:	4.8 KB
ID:	7238   Click image for larger version

Name:	Image3.png
Views:	521
Size:	7.2 KB
ID:	7239   Click image for larger version

Name:	Image4.png
Views:	514
Size:	3.6 KB
ID:	7240   Click image for larger version

Name:	Image5.png
Views:	525
Size:	4.8 KB
ID:	7241  

Bloodwych is offline  
Old 29 July 2004, 21:08   #10
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
....continued.
Attached Thumbnails
Click image for larger version

Name:	Image6.png
Views:	550
Size:	4.9 KB
ID:	7242   Click image for larger version

Name:	Image7.png
Views:	498
Size:	7.6 KB
ID:	7243  
Bloodwych is offline  
Old 29 July 2004, 21:42   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Hmm.. HDToolBox version?
("version tools/hdtoolbox")

I have used newer HDToolBox that comes with OS3.9. Maybe some older versions have some compatibility problems with WinUAE or SFS?
Toni Wilen is offline  
Old 29 July 2004, 21:42   #12
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,026
Well, you entered 68 blocks per cylinder. This is 68 KB for the first two cylinders. Very little room for an RDB + file system.

You should use about 1000 blocks per cylinder, so there is at least one MB for the RDB.

For an 80MB HDF I'd suggest to use 2 Heads, 256 Sectors and 320 Cylinders.
thomas is offline  
Old 29 July 2004, 23:21   #13
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Thank you Thomas! Once again the Amiga guru lets his advice save the day.

And thank you Toni for sticking with me in this thread, much appreciated. Sometimes it's hard to determine what silly mistake the other person has made. Good job I eventually posted those pics! I think I'll write a guide for the FAQ section.

The answer was so obvious! I can't believe I didn't think of changing the physical characteristics - after all it's just a virtual file, I change them to whatever I want! How I failed to check what size the RDB was being physically defined as is worrying.

Oh well, these things happen.

I didn't actually enter those details Thomas. In fact I didn't even notice them. I'm so used to dealing with real HDs and fixed physical characteristics, I simply used the read config button which set silly values that I failed to notice. I took one look at the 79MB and thought everything was fine. However, HDtoolbox can't determine block size correctly with HDFs.

Oh well, this info is here for anyone else in the future.
Bloodwych is offline  
Old 29 July 2004, 23:40   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Drive geometry is always faked except if you have XT or MFM drives

thomas: does newer HDToolbox-versions "invent" different geometries because I haven't seen this problem with OS3.5+ HDToolBox versions?

btw, regular SFS hardfiles still work fine here. Could you try testing with WinUAE 0.9.90? (released very soon)

Last edited by Toni Wilen; 29 July 2004 at 23:47.
Toni Wilen is offline  
Old 30 July 2004, 00:37   #15
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,026
Quote:
does newer HDToolbox-versions "invent" different geometries because I haven't seen this problem with OS3.5+ HDToolBox versions?
The only thing I know is that HDToolbox was totally rewritten in OS3.5. It now uses hdwrench.library which was invented with OS3.5. I never found a documentation on how the logical drive geometry is calculated. However, I believe that the new HDToolbox only uses the total number of blocks and calculates all the other values by itself. Maybe older versions also use TD_GETGEOMETRY to get the "real" geometry.

One obvious difference is that the 3.1 HDToolbox always uses 1008 blocks per cylinder for IDE drives and with 3.5 it uses 2016 blocks. Also if you partition a 100MB ZIP disk, I believe that with 3.1 it uses 2 heads, 64 sectors and 1536 cylinders (what I consider the real geometry of the disk) while 3.5 uses 16 heads, 48 sectors and 256 cyls.
thomas is offline  
Old 30 July 2004, 01:52   #16
D-Dan
AMD powered UAE
 
D-Dan's Avatar
 
Join Date: May 2004
Location: Oldham, UK
Age: 59
Posts: 68
Quote:
Originally Posted by Toni Wilen
btw, regular SFS hardfiles still work fine here. Could you try testing with WinUAE 0.9.90? (released very soon)
I've been running my Amiga system on WinUAE for the past 3 - 4 versions, formatted with SFS and no problems. believe me, if 0.9.90 has any problems with SFS I'll let you know - loudly
D-Dan is offline  
Old 30 July 2004, 19:12   #17
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Thomas: Well as I said before, the older HDtoolbox only used 68 Blocks per cylinder/track when selecting "Read Config" with a cleared HDF. It says it can't detect the value, so "assumes" 68.

Toni: Yes I'll give the regular HDF method another try once I get my hands on the new WinUAE.

D-Dan: Are you using the Regular HDF method? Any tips or advice?
Bloodwych is offline  
Old 30 July 2004, 21:29   #18
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
SFS hardfile problem solved!

WinUAE 0.8.27 and older: Only SFS older than 1.187 work. 1.187 removed SCSI-direct and requires TD_GETGEOMETRY but only WinUAE 0.9.90 has hardfile TD_GETGEOMETRY-support..

This does not affect RDB-hardfiles.
Toni Wilen is offline  
Old 31 July 2004, 14:13   #19
Bloodwych
Moderator
 
Bloodwych's Avatar
 
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
Brilliant work Toni!

Next release is going to be sweet. I may jump ship before the 1.0 release after all these changes.
Bloodwych is offline  
Old 03 August 2004, 15:12   #20
D-Dan
AMD powered UAE
 
D-Dan's Avatar
 
Join Date: May 2004
Location: Oldham, UK
Age: 59
Posts: 68
Quote:
Originally Posted by Bloodwych
D-Dan: Are you using the Regular HDF method? Any tips or advice?
Sorry - didn't see your post 'til this morning, so maybe a moot point now, but I just set the hardfile as normal, fired up HDToolBox in UAE (OS3.9 version), installed SFS to the RDB, and formatted.

Exactly the same as prepping a real HD on Amiga, and it worked without a problem.

This is with the latest SFS.

Sorry I can't give more info.
D-Dan 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
Creating an empty hdf file Harko33 support.WinUAE 1 25 September 2011 23:46
Need help creating a 4GB SFS HDF Konrad support.WinUAE 4 25 January 2011 16:50
Creating HDF File of 1GB in size in E-UAE on Ubuntu 8.10 Paradroid90 support.OtherUAE 6 17 July 2009 21:17
help needed creating a 4gig .hdf file petee1979 support.WinUAE 6 09 July 2009 21:10
Creating a HDF with WB1.3 Exodus support.WinUAE 39 11 February 2002 22:34

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 02:50.

Top

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