English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 July 2019, 03:19   #1
Fibble
Registered User
 
Join Date: Jul 2019
Location: San Diego / USA
Posts: 2
Creating blank HDFs in Ubuntu

Hi, not sure if this is the right forum but hoping someone here can help.
I am attempting to use amitools in order to create blank .hdf files.
When I try creating an HDF using this command taken straight from the amitools docs:
Code:
xdftool empty.hdf format Work size=10M ffs
the file is created, but isn't then writable.
When I try to open it in ADF Opus, I get an error stating
Code:
ReadRDSKblock : RDSK id not found
Running
Code:
xdfscan -v empty.hdf
gives this result:
Code:
                scan  empty.hdf
                NDOS  empty.hdf
@000000:ERROR:invalid boot block dos type
I am able to use ADF Opus to create blank HDFs without problems, but of course I can't use it in a bash script. Its output scans this way:
Code:
xdfscan -v new.hdf
                scan  new.hdf
                 ok   new.hdf
Any advice would be welcome.
Fibble is offline  
Old 06 July 2019, 04:18   #2
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,771
No idea what the issue is. An alternative would be to use dd, firstly to create the actual HDF, and then secondly to install a ripped bootblock, RDB, etc.

If there is a problem with this program I am willing to look at the source code if available.
Hewitson is offline  
Old 06 July 2019, 11:13   #3
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
This is a bug. Did you install from git?
However... the following command works:
Code:
xdftool empty.hdf create size=10M + format Work ffs
Quote:
Originally Posted by Fibble View Post
Code:
ReadRDSKblock : RDSK id not found
This is normal, plain .hdf doesn't contain partition information. If you want that: use
rdbtool
.
jbl007 is offline  
Old 07 July 2019, 01:09   #4
Fibble
Registered User
 
Join Date: Jul 2019
Location: San Diego / USA
Posts: 2
Quote:
Originally Posted by jbl007 View Post
This is a bug. Did you install from git?
However... the following command works:
Code:
xdftool empty.hdf create size=10M + format Work ffs

Thanks, that did the trick! Yes, I did install from git.



As far as the partition error, that's just what ADF Opus gave when I tried to open the file. My understanding was, I shouldn't need do do any partitioning at all; sure enough, with the command you gave above, I am able to open, write, and read the generated .hdf.
Fibble 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
How can I create HDFs? Foebane support.WinUAE 5 04 February 2017 13:53
Problem with creating HDFs on 2.7 amiga1200gamer support.WinUAE 3 17 January 2014 13:16
TinyLauncher working on FFS formatted .hdfs, but not on PFS .hdfs bladecgn support.WinUAE 10 23 November 2013 05:32
Creating HDF File of 1GB in size in E-UAE on Ubuntu 8.10 Paradroid90 support.OtherUAE 6 17 July 2009 21:17
3.5 hdfs? samos3.9 support.WinUAE 4 08 October 2004 23:10

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 11:45.

Top

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