Disk image editor for Linux?

You need an actual VIC.

Moderator: Moderators

User avatar
ral-clan
plays wooden flutes
Posts: 3521
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Disk image editor for Linux?

Postby ral-clan » Wed Jun 28, 2017 5:32 am

Hi, is there a .d64 editor available for Linux? Right now I am running DirMaster for Windows under WINE, but would rather have a Linux native utility for this. I'd like something that can not only edit disk images, but export files from disk images to other disk images and take them out of disk images (and put them into disk images).

Thanks,
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com

groepaz
Vic 20 Nerd
Posts: 597
Joined: Wed Aug 25, 2010 5:30 pm

Re: Disk image editor for Linux?

Postby groepaz » Wed Jun 28, 2017 8:55 am

i'm just use commandline utils like c1541 for that - at least they arent a buggy mess like that dirmaster thing =P

edit: there is diskimagery from lallafa - but i wouldnt recommend it, its also very buggy.

User avatar
srowe
Vic 20 Afficionado
Posts: 471
Joined: Mon Jun 16, 2014 3:19 pm

Re: Disk image editor for Linux?

Postby srowe » Wed Jun 28, 2017 2:28 pm

I started writing a python module to manipulate .d64 images. At present it can only read and update the directory and dump the contents of files. It would be easy enough to add functions to update/write files, then simple wrapper scripts could use it to do the sort of stuff you're looking for.

User avatar
R'zo
Vic 20 Afficionado
Posts: 354
Joined: Fri Jan 16, 2015 11:48 pm

Re: Disk image editor for Linux?

Postby R'zo » Wed Jun 28, 2017 2:44 pm

I know your seeking Linux but this disk editor for Windows works very nicely. Allows import/export.

http://www.d64editor.com
R'zo
I do not believe in obsolete...

User avatar
ral-clan
plays wooden flutes
Posts: 3521
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: Disk image editor for Linux?

Postby ral-clan » Mon Jul 03, 2017 7:49 am

I'm trying out c1541 in the VICE package, but can't understand how to properly copy a file in the host system directory TO a .d64 image.
The tutorials online are not comprehensive enough to explain the proper syntax to a new user.

For example, if I invoke it from the Linux command line:
brent@brent-OptiPlex-GX620:~/Downloads/PET_software$ c1541 write test.prg testdisk.d64


This is the error output:

Error - Cannot open file `write'.
cannot open file `write'
Error - Cannot open file `test.prg'.
cannot open file `test.prg'
c1541 V4.1 (VICE 3.1 svn r33328)
Copyright 1995-2017 The VICE Development Team.
C1541 is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type `show copying' to see the conditions.
There is absolutely no warranty for C1541. Type `show warranty' for details.


If I enter the "interactive mode" my simply starting c1541, I get a WRITE PROTECT error:

brent@brent-OptiPlex-GX620:~/Downloads/PET_software$ c1541
c1541 V4.1 (VICE 3.1 svn r33328)
Copyright 1995-2017 The VICE Development Team.
C1541 is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type `show copying' to see the conditions.
There is absolutely no warranty for C1541. Type `show warranty' for details.
c1541 #8> attach testdisk.d64
c1541 #8> write testfile.prg test
ERR = 26, WRITE PROTECT ON, 00, 00
cannot open `TESTFILE.PRG' for writing on image
floppy write failed
c1541 #8>


I have no idea what I'm doing wrong, or even if I'm doing anything correctly!

Please help!
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com

User avatar
ral-clan
plays wooden flutes
Posts: 3521
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: Disk image editor for Linux?

Postby ral-clan » Mon Jul 03, 2017 8:02 am

I figured it out.

The .d64 I was using was copied from the TPUG CD-ROM library, so it still had the read-only flag on it. I changed the write permission in Linux, then I could write the file to the disk using

write testfile.prg test

(when in interactive mode)

or

c1541 testdisk.d64 -write testfile.prg test
(when in the Linux command line)

Both write the file "testfile.prg" on the host system to a file called "test" on the .d64
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com


Return to “Emulation and Cross Development”

Who is online

Users browsing this forum: No registered users and 1 guest