Author Topic: cpcxfs and idsk do not proper work under Linux  (Read 1721 times)

0 Members and 1 Guest are viewing this topic.

Offline litwr

  • CPC6128
  • ****
  • Posts: 154
  • Country: ru
    • lidovski's www page
  • Liked: 128
  • Likes Given: 129
cpcxfs and idsk do not proper work under Linux
« on: 19:18, 03 November 15 »
I used idsk 0.13 to move files to and from disk images under Linux.  However this utility has several bugs.  It can't proper overwrite files, it sometimes cut files, ...  So this makes it unreliable. :( I tried also cpcxfs 0.85pl0 which looks very powerful.  However its Linux port is buggy.  It can't even open 204544 bytes images produced by idsk.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.335
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2264
  • Likes Given: 3478
Re: cpcxfs and idsk do not proper work under Linux
« Reply #1 on: 19:44, 03 November 15 »
I used idsk 0.13 to move files to and from disk images under Linux.  However this utility has several bugs.  It can't proper overwrite files, it sometimes cut files, ...  So this makes it unreliable. :( I tried also cpcxfs 0.85pl0 which looks very powerful.  However its Linux port is buggy.  It can't even open 204544 bytes images produced by idsk.
are you using the cpcxfs from my webpage?
Unofficial Amstrad WWW Resource
?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline reidrac

  • Supporter
  • 6128 Plus
  • *
  • Posts: 781
  • Country: gb
  • Trying to gamedev!
    • index.php?action=treasury
    • usebox.net
  • Liked: 1364
  • Likes Given: 790
Re: cpcxfs and idsk do not proper work under Linux
« Reply #2 on: 20:09, 03 November 15 »
I use iDSK 0.16 on Linux with no issues at all.

You can get the latest version from: http://github.com/cpcsdk
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel and Kitsune`s Curse for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

Offline litwr

  • CPC6128
  • ****
  • Posts: 154
  • Country: ru
    • lidovski's www page
  • Liked: 128
  • Likes Given: 129
Re: cpcxfs and idsk do not proper work under Linux
« Reply #3 on: 10:30, 04 November 15 »
I use iDSK 0.16 on Linux with no issues at all.

You can get the latest version from: http://github.com/cpcsdk

Thanks for the link, cpcwiki provides link to the older version.  :) I used the old iDSK.  New version with English interface looks a bit friendlier for me.  However the old problem remain and even a new one appear.  The version 0.13 of iDSK shows file size (and type?) in the directory listing, the new one always shows only one zero. :-(
To see the problem with iDSK 0.13 and 0.16 try the attached disk image.

Run"readme2" at AMSDOS and see the correct text of README2.TXT then try
iDSK problems.dsk -g README2.TXT
look at the extracted README2.TXT -- its end is cut. :-(

This problem exists with ManageDsk v.20h for Microsoft Windows.  I tried it with Windows XP under Virtualbox.  I read image then selected README2.TXT and pressed 'Extract file(s)' button -- this produces an incorrect cut file.  However if I press 'Show file' button then the proper content is shown and "save as" button works right too.

The problem with the overwrite was caused by the absence of correct -c option -- I was sure that pasmo6 makes proper load address automatically.  This problem also caused by a minor bug of iDSK with -r option --- it may place more than one $E5 to the disk image.

are you using the cpcxfs from my webpage?
Unofficial Amstrad WWW Resource
?

Yes.  I've built sources under Debian x86-64. The command line

cpcxfs problems.dsk

produces

Disc format not recognised!
Image "problems.dsk" abandoned!
No image loaded!


The executable provided with the archive produces the same result. :-(
« Last Edit: 10:37, 04 November 15 by litwr »

Offline reidrac

  • Supporter
  • 6128 Plus
  • *
  • Posts: 781
  • Country: gb
  • Trying to gamedev!
    • index.php?action=treasury
    • usebox.net
  • Liked: 1364
  • Likes Given: 790
Re: cpcxfs and idsk do not proper work under Linux
« Reply #4 on: 10:41, 04 November 15 »
My use of the tool is quite limited, I'm not sure I can help.

At least using the latest version is probably a good idea ;)
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel and Kitsune`s Curse for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.335
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2264
  • Likes Given: 3478
Re: cpcxfs and idsk do not proper work under Linux
« Reply #5 on: 21:08, 04 November 15 »
@litwr:

you need the cpmdiscs.def to be in the same directory as the executable.
it is in the zip package.

cpcxfs supports many formats, it tries to autodetect, but a lot of formats share the same properties so it doesn't always get it right.

using "formats" lists the ones that are available and defined in cpmdiscs.def.

Then use the format code to open the image:

open -f "DA1A" test.dsk

for standard 178KB data format disc.

I can't remember which format to use for larger disc that you have.

When you've done that you can list the files etc.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.335
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2264
  • Likes Given: 3478
Re: cpcxfs and idsk do not proper work under Linux
« Reply #6 on: 21:11, 04 November 15 »
@litwr:

With pasmo are you using "--amsdos" command-line option to add the header?

and using "end" in your code to define the execution address?

EDIT:
Example using cpcxfs from command-line:

pasmo --amsdos test.asm test.bin
cpcxfs -nd test.dsk
cpcxfs test.dsk -p test.bin

cpcxfs recognises the disc as DA2A format.
« Last Edit: 21:19, 04 November 15 by arnoldemu »
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline litwr

  • CPC6128
  • ****
  • Posts: 154
  • Country: ru
    • lidovski's www page
  • Liked: 128
  • Likes Given: 129
Re: cpcxfs and idsk do not proper work under Linux
« Reply #7 on: 16:59, 05 November 15 »
you need the cpmdiscs.def to be in the same directory as the executable.
it is in the zip package.
I missed this.  :(  A lot of thanks!  :) The power of cpcxfs looks astonishing!  :o BTW It can correctly extract README2.TXT from the attached disk image, unlike iDSK or even ManageDsk!  ;D
I can only suggest several improvements:
1) to make a stand-alone executable with all required data in it -- the file cpmdisks.def (and maybe *.LBL) maybe used as the optional provider of the additional formats;
2) to fix extensions of PCW3.LBL,  ZX0.LBL,  ZX3.LBL files.  The extension is LBL in the distribution but lbl is required by cpcxfs;
3) to fix C-sources - they give too much warnings during the compilation -- this may make them incompatible with the future C releases.

Then use the format code to open the image:
open -f "DA1A" test.dsk
for standard 178KB data format disc.
The format DA2A of my disk image is detected automatically.  :)  This format is the only format used by iDSK creating a new disk image. 
« Last Edit: 20:30, 05 November 15 by litwr »

Offline ronaldo

  • Dev
  • 6128 Plus
  • *****
  • Posts: 616
  • Country: es
    • Fremos Blog
  • Liked: 867
  • Likes Given: 801
Re: cpcxfs and idsk do not proper work under Linux
« Reply #8 on: 23:14, 16 November 15 »
I used idsk 0.13 to move files to and from disk images under Linux.  However this utility has several bugs.  It can't proper overwrite files, it sometimes cut files, ...  So this makes it unreliable. :( I tried also cpcxfs 0.85pl0 which looks very powerful.  However its Linux port is buggy.  It can't even open 204544 bytes images produced by idsk.
The bug that caused problems on overwritting things in  iDSK 0.13  was fixed some months ago. Latest CPCtelera version of iDSK works flawlessly. You can download it from here: cpctools/iDSK at master · cpcsdk/cpctools · GitHub