795kb adf inage to 800k

discuss pc<>acorn file transfer issues and the use of other utils
Post Reply
User avatar
kppot
Posts: 148
Joined: Mon Oct 23, 2017 10:48 pm
Location: Moscow
Contact:

795kb adf inage to 800k

Post by kppot »

Hello,

I need to convert (and read with gotek) few 795kb adf images to 800
I already downloaded DIM/BBCIM, but I am having super hard time trying to figure out how to make that 800 kb images
Could someone please give a blitz tour or a guide how to do so? Like "press that button and the press that button" :roll:

Tanks in advance!
User avatar
Pernod
Posts: 3439
Joined: Fri Jun 08, 2012 11:01 pm
Location: Croydon, UK
Contact:

Re: 795kb adf inage to 800k

Post by Pernod »

kppot wrote: Sun Mar 26, 2023 6:31 pm I need to convert (and read with gotek) few 795kb adf images to 800
A 795K image is very likely a bad dump due to missing protection information. The only thing you can try is padding the image file to make it 800K and see if it works. If it doesn't then definitely bad dump, delete it and try to find a better dump.
- Nigel

BBC Model B: ATPL Sidewise, Acorn Speech, 2xWatford Floppy Drives, AMX Mouse, Viglen case, BeebZIF, etc.
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: 795kb adf inage to 800k

Post by geraldholdsworth »

It is possible, but DIM can't (currently) do it. It involves, as Pernod said, padding the file out to 800KB (819200bytes, to be precise) but may also involve using a hex editor to change the size to 0xC8000 (offset location 0xFC) - but you'll also need to calculate and update the checksum (offset location 0xFF). So, again as Pernod said, to find and download an 800KB image.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
kppot
Posts: 148
Joined: Mon Oct 23, 2017 10:48 pm
Location: Moscow
Contact:

Re: 795kb adf inage to 800k

Post by kppot »

geraldholdsworth wrote: Sun Mar 26, 2023 7:45 pm It involves, as Pernod said, padding the file out to 800KB (819200bytes, to be precise)
Alright, so how do I basically do that? In details please :roll:
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: 795kb adf inage to 800k

Post by geraldholdsworth »

kppot wrote: Sun Mar 26, 2023 9:53 pm
geraldholdsworth wrote: Sun Mar 26, 2023 7:45 pm It involves, as Pernod said, padding the file out to 800KB (819200bytes, to be precise)
Alright, so how do I basically do that? In details please :roll:
What OS are you using? Windows/Linux/macOS/Other?
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
kppot
Posts: 148
Joined: Mon Oct 23, 2017 10:48 pm
Location: Moscow
Contact:

Re: 795kb adf inage to 800k

Post by kppot »

geraldholdsworth wrote: Sun Mar 26, 2023 10:23 pm What OS are you using? Windows/Linux/macOS/Other?
Win 7, 10 and Macos
User avatar
flibble
Posts: 886
Joined: Tue Sep 22, 2009 11:29 am
Contact:

Re: 795kb adf inage to 800k

Post by flibble »

I had need of a similar thing recently, so I wrote a short python script, which may help you;

http://home.marutan.net/hg/misc/file/f8 ... /adfpad.py
User avatar
IanJeffray
Posts: 5962
Joined: Sat Jun 06, 2020 3:50 pm
Contact:

Re: 795kb adf inage to 800k

Post by IanJeffray »

In Linux, you could do this:

Code: Select all

cat input.adf /dev/zero | dd of=output.adf bs=1024 count=800
User avatar
Iggypop
Posts: 192
Joined: Thu Mar 05, 2020 6:34 pm
Location: The Netherlands
Contact:

Re: 795kb adf inage to 800k

Post by Iggypop »

viewtopic.php?p=382848#p382848

trunc if you use a windows computer.. 800*1024bytes = 819200 bytes
Igor

Acorn Electron, BBC Master 128, Acorn Archimedes A3000
Post Reply

Return to “software & utilities for the pc, mac or unix”