![]() |
![]() |
#1 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
HDF Problem with WinUAE
I have a very annoying problem. Whilst using WinUAE 1.6.0, I suffered a HDF harddrive crash within the emulation. I think I may have been playing a WHDLoad game at the time. The Amiga guru'd and then reset and then reset and then reset again. It now refuses to boot correctly. It loads up the workbench screen then after a few seconds resets again.
![]() I am using the ClassicWB installation but I don't want to start installing everything again from scratch if I can help it. Anyone know what I can do to recover this dodgy HDF file? ![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
How big is the HDF ? Can you upload it somewhere ?
|
![]() |
![]() |
#3 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
|
![]() |
![]() |
#4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Compressed (ZIP, RAR, 7Z) ?
|
![]() |
![]() |
#5 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
I mght try create a new HDF and copy all the data to that one. Might be worth a try??
|
![]() |
![]() |
#6 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
If you think that a corrupted file system structure is the cause for the crashes, then copying everything to another hdf is a good idea.
|
![]() |
![]() |
#7 |
Zone Friend
|
Steve, you may fire up the original HDF to or $insert_your_fave_filehosting_service_here as well.
|
![]() |
![]() |
#8 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
It has information on it I can't give out. For example registered WHDLoad key amongst other stuff. So I can't upload it unfortunately.
|
![]() |
![]() |
#9 | |
PSPUAE DEV
|
Quote:
I get this when messing with CPU settings sometimes. Also, what about "early boot menu" and booting with no startup-sequence and loadwb from there and see what happens. If it dont crash, then you deffo got a config prob or something loading in HDF that it doesnt like. |
|
![]() |
![]() |
#10 | |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Quote:
![]() |
|
![]() |
![]() |
#11 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Quote:
First we need some more information about the HDF. How big is it exactly (in bytes) ? Is it a standard HDF (without partitions) or is it in RDB mode (partitioned with HDToolbox or similar) ? Did you use a non-standard file system ? Which one ? If you boot another HDF and add the damaged one, can you disable the damaged HDF in the early startup menu and then boot successfully ? |
|
![]() |
![]() |
#12 | ||
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Quote:
12800 cyls, 409600 blocks, 200.0MB/200.0MB DOS..... [444F530500000000] It was formatted using FFS and contains directories only. It doesn't use RDB mode. Quote:
|
||
![]() |
![]() |
#13 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Ok, here is a recovery procedure which should work:
- get DiskSalv from Aminet and unpack it onto the working HDF. Also make sure that there is enough space on the working HDF to take all the files from the damaged HDF. Or create a third one which is large enough. - make sure that the working HDF is the first entry in WinUAE's HDD list. - add the damaged HDF as second entry (drag it up if it's not the second one). Click on "Enable RDB mode" in the add harddrive window. - now boot. It should boot successfully and the damaged HDF should be invisible. - open a text editor and enter this: Code:
Device = "uaehf.device" Unit = 1 Flags = 0x0 Surfaces = 1 BlocksPerTrack = 32 Reserved = 2 LowCyl = 0 HighCyl = 12799 Buffers = 50 MaxTransfer = 0x7FFFFFFF Mask = 0xFFFFFFFE DosType = 0x444f5300 - open a shell window and enter mount hdf: if nothing happens, enter hdf: Now it should crash. That's ok, it's just a test that the dosdriver works. Let it reboot and open Sys:Storage/DosDrivers/HDF in a text editor again. Change the line with DosType so that it reads DosType = 0x00000000 Save it and enter mount hdf: in a shell window again. Nothing should happen. - run DiskSalv. It should show HDF in the list of possible drives. Select it, select OFS and Salvage and Start. DiskSalv should find all files on the damaged HDF and copy it to another location of your choice. Hope this helps. |
![]() |
![]() |
#14 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Wow, that is complicated! Looks like fun tho. I'll let u know how I get on. Thanks! :-)
|
![]() |
![]() |
#15 |
Banned
Join Date: Oct 2004
Location: ...
Age: 46
Posts: 3,313
|
If it's a HDF u can't get into, simply boot from a workbench disk and enter the HDF like that.
|
![]() |
![]() |
#16 | |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Quote:
EDIT: Oh is that part just a test for the dosdriver? Ok, maybe I should carry on with the rest of the procedure and see what happens. ![]() |
|
![]() |
![]() |
#17 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
Make sure that the dosdriver points to the right HDF. The unit number refers to the entry in WinUAE's hard drive list. Unit = 0 is the first entry, Unit = 1 is the second entry, Unit = 2 is the third entry and so on.
Also check that the specified size is correct. (HighCyl - LowCyl + 1) * BlocksPerTrack * Surfaces * 512 = size of HDF in bytes If both is correct, then Not a DOS disk is better than everything you got before. Just continue with DiskSalv. |
![]() |
![]() |
#18 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,035
|
One correction:
Quote:
Why the hell did you use DirCache ??? This only invites trouble. |
|
![]() |
![]() |
#19 | |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Quote:
It scanned the HDF which took about 30 minutes and generated thousands of errors. Then it asked me to restore what it could and gave me an option of DISKSALVE-EXTRAS or something like that. Then it spent a couple of minutes restoring stuff. Strange that the files it tried to restore are files from the drive unit 0 not unit 1 which is the bad drive. I have it set to unit 1 in the driver script and it is definitely the second one in the list of four drives I have installed. The files that it did "restore" are all corrupt anyway. Must be to do with the file-system setting. What the hell is DirChache?? lol. I can't remember using this option but I guess I must have ticked it for some reason. Whats so bad about it. I'll try again using FFS INTL DirCache. |
|
![]() |
![]() |
#20 |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
I am now getting an "Unknown command" error in the shell. This is after I have mounted the HDF successfully. When I try to access the HDF I get the error message.
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HDF mounting problem | Redeken | support.WinUAE | 15 | 05 April 2015 01:33 |
HDF problem with partitioning | kwaku85 | support.WinUAE | 10 | 23 April 2012 18:43 |
Problem with Dynamic HDF | tero | support.WinUAE | 13 | 27 October 2009 17:33 |
Problem restoring HDF on a CF | KONEY | support.WinUAE | 20 | 06 August 2009 21:55 |
HDF files problem | Yesideez | support.WinUAE | 1 | 13 September 2007 09:16 |
|
|