English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 10 February 2015, 16:11   #1
Decker
Registered User
 
Decker's Avatar
 
Join Date: Mar 2011
Location: Finland
Posts: 122
HDF file to Compact Flash, how?

Hey,

I have a 'snapshot' of my 4GB CF IDE that I made in WinUAE some time ago.

Since then, the IDE header on my Amiga was broken and repaired, but I was left with bad blocks here and there on my CF hard drive.

To eliminate variables I want to make a fresh card using that stable HDF image. But how?

Method 1: Write the HDF file into the card. Is this possible in WinUAE or a 3rd party solution?

Method 2:
- Mount the HDF and the CF card in WinUAE.
- Boot from WB3.0 install disk adf.
- Partition and format the card.
- Copy HDF contents to corresponding partitions.

Can I use the HDtoolbox included in WB3.0 and are there any other considerations to get it stable? In fact, the drive is pre-partitioned @ amigakit the same way as my hdf is (0.5Gb / 1.6Gb / 1.6Gb FFS).



Specs:
- A1200 + ACA1230/28, KS3.0, Timing fix done
- Image is WB3, Bloodwych's ClassicWB ADVSP, Maxtransfer and ACATune maprom configured.
Decker is offline  
Old 10 February 2015, 18:12   #2
supaduper
Registered User
 
supaduper's Avatar
 
Join Date: Oct 2012
Location: Krypton
Posts: 1,210
Yes I would use method 1.
download `WinImage` (freeware) and write it back to a CF card using a USB or whaterever CF adapter you have.

*Note, the size of the image is critical with CF cards so write it back to a card of the same size or bigger !

WinImage here : http://www.winimage.com/winimage.htm
supaduper is offline  
Old 11 February 2015, 09:14   #3
Decker
Registered User
 
Decker's Avatar
 
Join Date: Mar 2011
Location: Finland
Posts: 122
Post

Thanks, that's great! UAE only has the option to grab hdf's, I somehow assumed there would be no option for dumping hdf's back to cards.

I already went with method 2. That took some time But it's all working now.


Two conclusions:

1. Always keep an hdf of your CF handy, so that when your real Amiga gets messed up, it's easy to roll back.

2. AmigaKit did an excellent job. They charged 23€ + shipping for replacing a busted IDE and repairing a botched solder job. I would have been fine with a can't be done inspection charge for that price.

They did a neat job too, very clean all things considered.
Decker is offline  
Old 11 February 2015, 09:18   #4
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
Method 1 will only work if the HDF was imaged from the CF in the first place or if it has been created like a real Hard Drive, i.e by creating an RDB and partitions. Also if the HDF is larger then your Media it wont work.

The best idea is to use Method 2 and then take an image of the finished CF card with WinImage and keep it as a safe backup that you can restore at any time.
fitzsteve is offline  
Old 11 February 2015, 09:29   #5
Decker
Registered User
 
Decker's Avatar
 
Join Date: Mar 2011
Location: Finland
Posts: 122
Quote:
Originally Posted by fitzsteve View Post
Method 1 will only work if the HDF was imaged from the CF in the first place or if it has been created like a real Hard Drive, i.e by creating an RDB and partitions.
Yeah, that's what I have: HDF's of two different setups that I made for a specific 1200 (ie. partitioned & formatted in system, finished in WinUAE). Took the images after testing and left them relatively untouched after that.

Copy-paste works equally well after matching the partition sizes. I guess an advantage to copy-pasting is, you can format the card to another file system. With image transfer, you're stuck with the FS you had when you made the image.

Last edited by Decker; 11 February 2015 at 11:09.
Decker is offline  
Old 11 February 2015, 12:33   #6
supaduper
Registered User
 
supaduper's Avatar
 
Join Date: Oct 2012
Location: Krypton
Posts: 1,210
Quote:
Originally Posted by Decker View Post
Yeah, that's what I have: HDF's of two different setups that I made for a specific 1200 (ie. partitioned & formatted in system, finished in WinUAE). Took the images after testing and left them relatively untouched after that.

Copy-paste works equally well after matching the partition sizes. I guess an advantage to copy-pasting is, you can format the card to another file system. With image transfer, you're stuck with the FS you had when you made the image.
Start using the PFS on your Systems and it will do away with corrupt and non validated errors
supaduper is offline  
Old 11 February 2015, 13:47   #7
Decker
Registered User
 
Decker's Avatar
 
Join Date: Mar 2011
Location: Finland
Posts: 122
Maybe I'll make the other cards PFS3 in WinUAE and swap one in, if my FFS setup starts acting up.

This is the first time I've had to roll back and it involved a faulty IDE so I can't tell how much was the result of hardware problems.

But I wouldn't mind the speed gain either. Which is apparently pretty substantial.
Decker is offline  
Old 15 February 2015, 20:29   #8
sodapop
Registered User
 
sodapop's Avatar
 
Join Date: Oct 2010
Location: France
Posts: 99
Is Method 1 work with 2 HDF files ?
My system, built under Winuae, consists of 1 HDF for the Workbench (20Mb) and 1 HDF for the Programs (100Mb), and I would like to put it on a 150Mb CF card, to be used with my real A500 + ACA500 ...
Thanks !
sodapop is offline  
Old 15 February 2015, 22:33   #9
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by sodapop View Post
Is Method 1 work with 2 HDF files ?
My system, built under Winuae, consists of 1 HDF for the Workbench (20Mb) and 1 HDF for the Programs (100Mb), and I would like to put it on a 150Mb CF card, to be used with my real A500 + ACA500 ...
Thanks !
No, because:
Quote:
Originally Posted by fitzsteve View Post
Method 1 will only work if the HDF was imaged from the CF in the first place or if it has been created like a real Hard Drive, i.e by creating an RDB and partitions.
So, what you will have to do is use WinUAE to create a 120MB HDF like a real hard drive by creating an RDB and partitions of 20MB and 100MB, then copy everything from your existing 2 HDF files to the respective partitions in the new HDF and finally use Method 1 to write that HDF image to your CF card.
prowler is offline  
Old 18 February 2015, 15:48   #10
sodapop
Registered User
 
sodapop's Avatar
 
Join Date: Oct 2010
Location: France
Posts: 99
@Prowler
Thanks for your answer mate... I'll try it as soon as I manage to create this damn HDF file, wich I'm struggling to do... can't remember how I did it some years ago...
Cheers !
sodapop is offline  
Old 18 February 2015, 18:14   #11
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,987
Perhaps this could be helpful: http://eab.abime.net/showthread.php?p=925762#post925762
thomas is offline  
Old 19 February 2015, 11:23   #12
sodapop
Registered User
 
sodapop's Avatar
 
Join Date: Oct 2010
Location: France
Posts: 99
@thomas
This proved to be very useful, thank you !
Now I have my system on a single hdf, but can't figure out how to "image it" on my CF card...
I tried to make my way through Winimage, but to no avail...
sodapop is offline  
Old 19 February 2015, 21:56   #13
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by sodapop View Post
Now I have my system on a single hdf, but can't figure out how to "image it" on my CF card...
I tried to make my way through Winimage, but to no avail...
If you change the filename extension from .hdf to .img or .ima, does WinImage let you write it to the card now?
prowler is offline  
Old 19 February 2015, 23:18   #14
fitzsteve
Professional slacker!
 
fitzsteve's Avatar
 
Join Date: Jul 2009
Location: Kent, UK
Age: 44
Posts: 6,683
Send a message via MSN to fitzsteve
WinImage works with .vhd files
fitzsteve is offline  
Old 20 February 2015, 10:16   #15
sodapop
Registered User
 
sodapop's Avatar
 
Join Date: Oct 2010
Location: France
Posts: 99
@Prowler and Fitzsteve:

Thanks for your help !
So, I renamed my hdf to ".vhd" (should have think of that by myself, stupid me), but the option that make sense, according to me, doesn't seem to work: "Restore Virtual Hard Disk to physical drive" does not list the slightest physical drive (no C:, nor D:; nor my CF card).
So, I tried to do this: "read disk" (Cf card), then "write disk" (my HDF, renamed ".vhd", to my CF card). So my CF card now contains the .vhd of my system.
Then, I put it in my ACA500, but it does not boot.

Maybe I made something wrong when I set up the HDF in Winuae (created a 500Mb HDF, RDB option enabled, UAE hd controler, partitionned it in 2 partitions (bootable 30MB HD0, non bootable 470MB HD1), installed 2.1 WB, and made a copy of a former HD1 into the new HD1), or it's me messing it up with Winimage (most likely, IMHO).

EDIT: Ok, now everything works fine... the thing was to run Winimage in administrator mode to make it list the physical drives... so this time I could choose my CF card from the list, and do a "Restore VHD to physical drive..."

Thanks for your precious help chaps !

Last edited by sodapop; 20 February 2015 at 11:49.
sodapop is offline  
Old 29 March 2021, 22:19   #16
klx300r
Registered User
 
klx300r's Avatar
 
Join Date: Oct 2007
Location: Toronto, Canada
Posts: 1,594
Thumbs up

not an emualtion guy at all so this came in very handy ..thanks for posting guys
klx300r 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 to COMPACT FLASH gibs support.WinUAE 3 04 September 2012 13:35
compact flash not working on OS 3.5 GurjSagoo support.Hardware 2 13 March 2011 15:30
compact flash, but where on the pc? lost_lemming support.Hardware 27 16 September 2009 19:39
Compact flash JACK98 support.Hardware 22 10 December 2008 23:09
compact flash to ide - is this right? AliasXZ support.Hardware 33 12 March 2008 10: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 06:21.

Top

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