Welcome, Guest. Please login or register.

Author Topic: HDF file wont boot in Winuae  (Read 10945 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
HDF file wont boot in Winuae
« on: February 02, 2012, 02:44:56 PM »
I would like to take a backup of the HD in my Amiga 810mb 2.5 HD IDE drive (Seagate ST9810AG) store the backup for safe keeping and also test the backup through WINUAE on my PC, booting from DH0 and accessing the other partitions DH1 and DH2.

I realise can do this via a PCMCIA > CF adapter, but currently only have a 128mb card.

Using a MAC Pro and a 2.5 ide > USB 2.0 adapter, I used the terminal command dd to output the contents of /dev/disk1 to an HDF file. This all worked fine and took about 6 minutes to create.

I have copied the .HDF file to my WINAUE install (on a PC) added the file via Add Hardfile, but I cannot get WINUAE to boot from this hardfile. It just displays the insert disk animation.

Do I need to enter figures in the boot priority, surfaces, reserved, sectors, block size fields?

Thanks in advance!
« Last Edit: February 02, 2012, 03:39:02 PM by mcnab69 »
 

Offline Darrin

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2002
  • Posts: 4430
    • Show only replies by Darrin
Re: HDF file wont boot in Winuae
« Reply #1 on: February 02, 2012, 03:11:56 PM »
Is the HDF file bootable?  If not then it would be just like connecting a non-bootable hard drive to a real Amiga.

If that hard drive is IDE then attach it to your PC, mount it as a real Amiga drive, create a blank HDF file in WinUAE and then just copy your files over from the HD to HDF file.
A2000, A3000, 2 x A1200T, A1200, A4000Tower & Mediator, CD32, VIC-20, C64, C128, C128D, PET 8032, Minimig & ARM, C-One, FPGA Arcade... and AmigaOne X1000.
 

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #2 on: February 02, 2012, 03:23:07 PM »
thanks, I made a copy with DD, so i didnt make any changes to it. How do you make it bootable?

The hard drive is IDE but I don't have a IDE 44 > 40 cable available for my PC, hence using the USB adapter.
« Last Edit: February 02, 2012, 03:38:20 PM by mcnab69 »
 

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #3 on: February 02, 2012, 03:45:43 PM »
Quote
my Amiga 810mb 2.5 HD (Seagate ST9810AG)


Was it connected to an RDB-compatible controller, e.g. the internal IDE controller of an A1200 or A600? If not, which controller is it?

Quote
Using a MAC Pro and a 2.5 ide > USB 2.0 adapter, I used the terminal command dd to output the contents of /dev/disk1 to an HDF file.


I am not familiar with Mac Pro and its syntax. Does /dev/disk1 specify the whole harddrive or only one partition?

What does WinUAE say in the text box below "HD controller" when you add the HDF (see hardcopy as an example, there it says "500MB RDSK...")? Does it automatically enable RDB mode (i.e. disable the button)?

If the hdf contains only one partition, then you need to adjust the values for surfaces and sectors according to how the partition was mounted on the Amiga. TSGUI can tell you the values if you run it on the Amiga. There is no way to tell later.

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #4 on: February 02, 2012, 03:51:35 PM »
Quote from: mcnab69;678769
The hard drive is IDE but I don't have a IDE 44 > 40 cable available for my PC, hence using the USB adapter.


You can add the harddrive to WinUAE through the USB adapter, too.

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #5 on: February 02, 2012, 05:05:20 PM »
Thanks Thomas

Its the normal internal IDE Controller.

The MAC uses Unix so the DD command is industry standard to make a low level copy of data and /dev/disk1 means the whole drive.

The Enable RDB mode is greyed out and disabled after I add the .hdf.

I think the solution maybe TSGUI as I left the boxes alone, so I'll give that a go later on the Amiga.

I'll let you know how I get on.

Cheers :)

Quote from: Thomas;678772
Was it connected to an RDB-compatible controller, e.g. the internal IDE controller of an A1200 or A600? If not, which controller is it?

I am not familiar with Mac Pro and its syntax. Does /dev/disk1 specify the whole harddrive or only one partition?

What does WinUAE say in the text box below "HD controller" when you add the HDF (see hardcopy as an example, there it says "500MB RDSK...")? Does it automatically enable RDB mode (i.e. disable the button)?

If the hdf contains only one partition, then you need to adjust the values for surfaces and sectors according to how the partition was mounted on the Amiga. TSGUI can tell you the values if you run it on the Amiga. There is no way to tell later.
 

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #6 on: February 02, 2012, 07:12:28 PM »
TSGUI won't help with RDB mode HDFs.

What did you select as controller?

Which config do you use?

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #7 on: February 02, 2012, 09:10:58 PM »
Quote from: Thomas;678800
TSGUI won't help with RDB mode HDFs.

What did you select as controller?

Which config do you use?

Ive just left the controller as UAE. Config is the 1200 one.
 

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #8 on: February 03, 2012, 08:04:06 AM »
What if you hold down both mouse buttons before the emulated Amiga starts (set CPU speed to approximate A500 in order to have enough time). Do you see the partitions in the early startup menu?

Add tsgui.lha as a second harddrive by add directory or archive -> select archive. When you boot now, you'll get a DOS window. Enter

stack 8000
cd tsgui
tsgui

Does the drive list show your partitions?

Select "select raw device" from the menu. Does the unit chooser show your HDF?

How did you transfer the HDF from your Mac to the Windows PC? Could it be that it was treated as text and that newline characters were converted to cr lf? The HDF must be transferred as binary.

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #9 on: February 03, 2012, 08:29:56 AM »
Thanks again for all your help Thomas

I loaded the early startup menu and it lists amongst other things DH0: 0 uaehf.device-0 DOS0 [444F5300] 791824k

Im wondering if its to do with the following settings as if I set them to  Boot Pri 0, Surfaces 1, Reserved 2, Sectors 32 and Block size 512
The following then appears in the box below. Not sure if this is accurate but it seems close.
49489 cyls, 1583648 blocks, 773.3MB/773.3MB RDSK...@ [5244534B00000040]

When booting this time, it says DH0 not formatted instead of ignoring the drive and going to the WB floppy screen. Is that a clue to the problem?

If thats the case, how do i find the correct settings for my drive? I obtained these from a YouTube video I watched called LemonAmiga.

I used a USB 2.0 drive, formatted as ExFat and copied that from my MAC > Drive > Windows PC.

Quote from: Thomas;678911
What if you hold down both mouse buttons before the emulated Amiga starts (set CPU speed to approximate A500 in order to have enough time). Do you see the partitions in the early startup menu?

Add tsgui.lha as a second harddrive by add directory or archive -> select archive. When you boot now, you'll get a DOS window. Enter

stack 8000
cd tsgui
tsgui

Does the drive list show your partitions?

Select "select raw device" from the menu. Does the unit chooser show your HDF?

How did you transfer the HDF from your Mac to the Windows PC? Could it be that it was treated as text and that newline characters were converted to cr lf? The HDF must be transferred as binary.
« Last Edit: February 03, 2012, 08:33:58 AM by mcnab69 »
 

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #10 on: February 03, 2012, 08:50:45 AM »
Quick update, bearing in mind my Amiga 800mb HD is split into 3 partitions. DH0 (201), DH1(300) and DH2 (270)

On the Amiga, I ran TSGUI went to Partition Info and for each it said Surfaces 16, Sectors 63, Reserved 2 and block 512.

I next entered these in WINUAE and now get a Software Error! progress possibly?!

Error 8000 0008  task 00211770

Cheers
 

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #11 on: February 03, 2012, 11:30:16 AM »
The HDF is in RDB mode (RSDK = Rigid Disk Block = RDB). You cannot use it in non-RDB mode. A non-RDB HDF contains only one partition and no RDSK block. Your HDF contains three partitions. You have to set surfaces, sectors and reserved to 0 (that's what the "Enable RDB Mode" button does).

Please do what I said above, i.e. run TSGUI in WinUAE and tell me the results of the tests.

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #12 on: February 03, 2012, 05:02:56 PM »
thanks for explaining about RDB, wasnt sure what that meant.

i couldnt get tsgui to work when adding as a second image, it loaded a shell window and i entered the commands as you said, but when typing tsgui nothing happened.

So i booted off a wb3.1.adf image and the tsgui.lha was listed on the workbench window, so I double clicked on that and it allowed me to run it.
tsgui only lists DF0 and DH0 (tsgui.lha) so guess its not reading the .hdf at all?

Quote from: Thomas;678935
The HDF is in RDB mode (RSDK = Rigid Disk Block = RDB). You cannot use it in non-RDB mode. A non-RDB HDF contains only one partition and no RDSK block. Your HDF contains three partitions. You have to set surfaces, sectors and reserved to 0 (that's what the "Enable RDB Mode" button does).

Please do what I said above, i.e. run TSGUI in WinUAE and tell me the results of the tests.
 

Offline Thomas

Re: HDF file wont boot in Winuae
« Reply #13 on: February 03, 2012, 07:07:51 PM »
And the rest? Does it list it as a raw device?

In WinUAE's harddrives list, is there anything in the column left of "Device"? (Like the E in front of Share in my hardcopy)

Offline mcnab69Topic starter

  • Newbie
  • *
  • Join Date: Feb 2012
  • Posts: 21
    • Show only replies by mcnab69
Re: HDF file wont boot in Winuae
« Reply #14 on: February 03, 2012, 10:57:10 PM »
Quote from: Thomas;679012
And the rest? Does it list it as a raw device?

In WinUAE's harddrives list, is there anything in the column left of "Device"? (Like the E in front of Share in my hardcopy)

I couldnt find "select raw device" option in TSGUI?

Here's a snip of the WINUAE and TSGUI windows, there is no E, just a *