lclevy / ADFlib

A free, portable and open implementation of the Amiga filesystem
GNU General Public License v2.0
85 stars 30 forks source link

Got "RDSK id not found" when unzip on Ubuntu 20.04 #16

Closed CaoDuyThanh closed 2 years ago

CaoDuyThanh commented 3 years ago

Hi, I got an error when trying to unzip a .adf file on Ubuntu 20.04, this is the error

> unadf file.adf
unADF v1.0 : a unzip like for .ADF files, powered by ADFlib (v0.7.11a - January 20th, 2007)

Error <ReadRDSKblock : RDSK id not found>
Can't mount the dump device 'file.adf'.

From what I found on internet

the RDSK is a raw device path and it contains all drives that have not yet been formatted and are thus referred to as RAW

so I check /dev on my computer and see no /dev/rdsk there. I guess I have no RDSK on my computer so it can not mount the content. Can I do any work around from it or am I missing anything?

Thank you.

lclevy commented 3 years ago

What kind of adf is it? Is it a floppy disk or an hard disk dump? Could you share the file ?

CaoDuyThanh commented 3 years ago

What kind of adf is it? Is it a floppy disk or an hard disk dump? Could you share the file ?

Thanks for quick response. Yes, this is the link of the file (file size: 77.8mb) I want to extract, let's me know if you want further information

CaoDuyThanh commented 3 years ago

hi @lclevy , do you know how to fix this issue? I really want to extract the file. Thanks

rofl0r commented 3 years ago

the error you're getting comes from https://github.com/lclevy/ADFlib/blob/master/src/adf_hd.c#L703

maybe try to comment out the return error; line below it and try again ?

CaoDuyThanh commented 3 years ago

the error you're getting comes from https://github.com/lclevy/ADFlib/blob/master/src/adf_hd.c#L703

maybe try to comment out the return error; line below it and try again ?

I try it and it shows another error

> ./unadf arsenal2.adf 
unADF v1.1 : a unzip like for .ADF files, powered by ADFlib (v0.7.11a - January 20th, 2007)

Warning <ReadRDSKBlock : size != 64>
Warning <ReadRDSKBlock : incorrect checksum>
Warning <ReadRDSKBlock : blockSize != 512>
Warning <ReadRDSKBlock : cylBlocks != sectors*heads>
Error <adfMountHd : malloc>
arsenal2.adf: can't mount as device
rofl0r commented 3 years ago

your file doesn't look like adf or hdf type, and it has high entropy - almost as if you cat /dev/urandom > file

CaoDuyThanh commented 2 years ago

your file doesn't look like adf or hdf type, and it has high entropy - almost as if you cat /dev/urandom > file

oh, that file is data file of this game Arsenal: Extended Power, then it just has extension .adf but not actual adf file?

rofl0r commented 2 years ago

yes. the adf files this repo is about are "amiga disk files", i.e. image files of amiga floppies.

lclevy commented 2 years ago

It seems this disk is not formatted with Amiga dos