![]() |
![]() |
#1 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
Problem restoring HDF on a CF
I've got some problem on restoring some partitions that I previously backupped on my PC running WinUae, using TSgui.lha from aminet.
This is the scenario: CF with 4 partitions: DH0: 427mb DH1: 502mb DH2: 502mb DH3: 502mb all dumped to HDFs, I have of course 4 files, they're all different in size. I have re-partitioned the CF with the same sizez. Now I am able to restore DH3: probably because I "guessed" the correct size in blocks, but no luck for the other partitions...Tsgui always says the partitions sizes don't match! I tried all the possible variants of blocks that makes DH0: 427mb big but the always don't match.. How can I calculate the partition size in blocks from a HDF file? ![]() ![]() any help will be appreciated! |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,652
|
Can't you just mount the hdf and copy the files in WinUAE?
|
![]() |
![]() |
#3 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
Ah yes, tried that too but it always says "NOT A DOS DISK" on the amiga side
I start suspecting the HDF are not good but if it's so why DH3: has been restored correctly at the first go? |
![]() |
![]() |
#4 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
If you mount the HDFs in WinUAE, isn't the geometry displayed? From this you can work out the required number of blocks.
|
![]() |
![]() |
#5 | |||
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
Quote:
Quote:
Quote:
Number of blocks in a partition = number of cylinders * blocks per cylinder Note that you have to adjust the number of blocks per cylinder so that each HDF holds a whole number of cylinders. But do not make a cylinder too small because then the partition table will overwrite the first partition (and vice versa). The partition table has to fit into two cylinders because the first partition usually starts in cylinder 2. One cylinder should be around 1000 blocks (for IDE drives it's usually 1008). |
|||
![]() |
![]() |
#6 |
PSPUAE DEV
|
Im really lost here.
I have backedup to HDF many times and then sorted my CF, then put every back on CF. I mount the HDF in WinUAE and CF, then copy hdf files to CF. EDIT:- Unless your talking about typing in the block size etc etc. However youve now forgotten them. Last edited by FOL; 05 August 2009 at 22:26. |
![]() |
![]() |
#7 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
oh my....it's getting a nightmare!
I've done like Prowler said, mounting an image as a disk and making a SCSI enquiry, I get a cylinder value (a few less than I was using) and I tried to enter that amount on the partition size. No way, it always complain that sizes don't match... Partition info says that the partition highes sector is 875423, the filesize of the HDF is 448.229.376 which divided per 512 makes 875448, so very near...maybe because the first 2 cylinders are reserved...yes it myst be this... I'm getting confused...I didn't expect it to be so difficult ![]() |
![]() |
![]() |
#8 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
|
![]() |
![]() |
#9 |
PSPUAE DEV
|
|
![]() |
![]() |
#10 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
zero cylinders?
|
![]() |
![]() |
#11 |
PSPUAE DEV
|
|
![]() |
![]() |
#12 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
Ah no I was talking about the partitioning one, sorry!
Ok now I got your advice: it's to try and mount the HDF as a device, beyond restoring it do a disk. I think they're already set that way, tomorrow I'll be doing a test, thanx! |
![]() |
![]() |
#13 | |
PSPUAE DEV
|
Quote:
How were you using / mounting the HDF's? |
|
![]() |
![]() |
#14 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
I was:
1) trying to restore the HDF into a partition, from a file, using an amiga program (fails due to different sizes issues, because I don't know how to make the partitions exact) In alternative: 2) trying to mount the HDF into winuae, normally, as usual, as a Harddisk, to eventually copy all the files into a partition (fails as well, says the disk is Not a DOS disk) ![]() |
![]() |
![]() |
#15 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
@Koney: did you read my answer ? I am able to walk you through if you allow me to help you.
|
![]() |
![]() |
#16 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
Yes man, sorry, I did. I made the calculation but I didn't get any useful number!
How big are the files in bytes ? DH0 came a 448.229.376 bytes file Does it work after it has been restored, i.e. can you read files from it ? Totally, I boot from it (DH3) and load programs flawlessly Thanx! |
![]() |
![]() |
#17 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
Quote:
This could work for DH0: Surfaces (Heads) = 8 Sectors (Blocks per Track) = 63 Blocks per Cylinder = 504 Cylinders = 1737 |
|
![]() |
![]() |
#18 |
OctaMED Music Composer
![]() Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
|
yes of course!
Code:
DH0: 448.229.376 (427 mb) DH1: 527.129.064 (502 mb) DH2: Didn't make any HDF as it was empty (502 mb) DH3: 526.934.016 (502 mb) DH3: was correctly restored, ![]() |
![]() |
![]() |
#19 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
DH1 is not valid. This size is not divisible by 512. A typo perhaps ?
Edit: bullhsit. I had fat fingers when using the calculator. Everything is fine. Edit2: now I see. 2 and 9 are swapped in the middle. Should be 527.192.064. I need new glasses :-) Last edited by thomas; 06 August 2009 at 19:38. |
![]() |
![]() |
#20 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
Here is the result:
With 512 bytes per block we get: DH0: 448,229,376 Bytes = 875,448 Blocks DH1: 527,192,064 Bytes = 1,029,548 Blocks DH3: 526,934,016 Bytes = 1,029,168 Blocks The 504 blocks per cylinder which I guessed matches for all three partitions, so we get: DH0: 875,448 Blocks = 1,737 Cylinders DH1: 1,029,548 Blocks = 2,043 Cylinders DH3: 1,029,168 Blocks = 2,042 Cylinders So to restore all three or four partitions to one HDD use the following procedure. Note that it deletes all data which was on the HDD so make sure it is empty. - run HDToolbox - go to "change drive type" - "define new" - "read configuration" - multiply the "blocks per cylinder" with the "cylinders" and remember the result. - divide the result by 504 and enter it as new number of cylinders - enter heads = 8 - enter blocks per track = 63 - enter blocks per cylinder = 504 - click on ok until you are back on the main page. - go to "partition drive" and enable "advanced options". - delete all partitions but one. - enter 1737 into "total cylinders" - create a new partition and enter 2043 into "total cylinders" - create a new partition for df2 if you like - create a new partition and enter 2042 into "total cylinders" - go back to the main page, "save changed to drive" and quit. - now you can use TSGUI to restore the HDFs. |
![]() |
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 |
hdf ndos problem | flibble42 | support.WinUAE | 12 | 21 September 2008 02:03 |
HDF files problem | Yesideez | support.WinUAE | 1 | 13 September 2007 09:16 |
|
|