English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 June 2009, 18:13   #1
Steve
I Identify as an Ewok
 
Steve's Avatar
 
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?
Steve is offline  
Old 20 June 2009, 18:16   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,035
How big is the HDF ? Can you upload it somewhere ?
thomas is offline  
Old 20 June 2009, 18:19   #3
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
Originally Posted by thomas View Post
How big is the HDF ? Can you upload it somewhere ?
Not really, its 200MB.
Steve is offline  
Old 20 June 2009, 20:08   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,035
Compressed (ZIP, RAR, 7Z) ?
thomas is offline  
Old 20 June 2009, 20:32   #5
Steve
I Identify as an Ewok
 
Steve's Avatar
 
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??
Steve is offline  
Old 20 June 2009, 20:45   #6
thomas
Registered User
 
thomas's Avatar
 
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.
thomas is offline  
Old 20 June 2009, 23:06   #7
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Steve, you may fire up the original HDF to or $insert_your_fave_filehosting_service_here as well.
andreas is offline  
Old 21 June 2009, 02:05   #8
Steve
I Identify as an Ewok
 
Steve's Avatar
 
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.
Steve is offline  
Old 21 June 2009, 12:33   #9
FOL
PSPUAE DEV
 
FOL's Avatar
 
Join Date: Nov 2006
Location: Wales / UK
Age: 45
Posts: 6,054
Send a message via MSN to FOL
Quote:
Originally Posted by Steve View Post
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.
Try altering the config your using?
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.
FOL is online now  
Old 27 June 2009, 10:54   #10
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
Originally Posted by FOL View Post
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.
Its 100% not a configuration problem. The HDF itself is totally f**ked. I have tried using the early start-up menu and booting with no startup sequence but it won't even get as far as the command line. All I get is the standard software failure screen. I have even tried booting using another HDF which works but if I also add the damaged HDF and don't even boot from it there is still a software failure screen. I give up.
Steve is offline  
Old 27 June 2009, 11:23   #11
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,035
Quote:
I give up.
That's too early IMHO. If I read this thread, there is not one single helpful hint yet and you didn't even start to recover anything.

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 ?
thomas is offline  
Old 27 June 2009, 12:13   #12
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
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 ?
It is exactly 200MB. Here this is what WinUAE shows when you mount it.

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:
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 ?
I've just tried this and it did work. I was able to boot successfully once the drive was disabled. On reset when the drive is automatically enabled I get the software failure.
Steve is offline  
Old 27 June 2009, 13:23   #13
thomas
Registered User
 
thomas's Avatar
 
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
Save it as Sys:Storage/DosDrivers/HDF.

- 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.
thomas is offline  
Old 27 June 2009, 17:11   #14
Steve
I Identify as an Ewok
 
Steve's Avatar
 
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! :-)
Steve is offline  
Old 27 June 2009, 17:22   #15
Ironclaw
Banned
 
Ironclaw's Avatar
 
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.
Ironclaw is offline  
Old 28 June 2009, 10:22   #16
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
Originally Posted by thomas View Post
open a shell window and enter mount hdf:

if nothing happens, enter hdf:
Ok, I'm up to this point in the procedure. Everything seems to have gone ok up to this point. Once the hdf driver is mounted and then I try to access it I come across a problem. Not a valid DOS disk. Eek!

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.
Steve is offline  
Old 28 June 2009, 10:55   #17
thomas
Registered User
 
thomas's Avatar
 
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.
thomas is offline  
Old 28 June 2009, 10:59   #18
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,035
One correction:

Quote:
12800 cyls, 409600 blocks, 200.0MB/200.0MB DOS..... [444F530500000000]
You should not choose OFS in DiskSalv but FFS INTL DirCache.

Why the hell did you use DirCache ??? This only invites trouble.
thomas is offline  
Old 28 June 2009, 11:16   #19
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
Originally Posted by thomas View Post
You should not choose OFS in DiskSalv but FFS INTL DirCache.

Why the hell did you use DirCache ??? This only invites trouble.
I thought when I reached this point that I should be using FFS instead of OFS. I went ahead and tried with OFS and got some very odd results.

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.
Steve is offline  
Old 29 June 2009, 00:46   #20
Steve
I Identify as an Ewok
 
Steve's Avatar
 
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.
Steve 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
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

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 10:34.

Top

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