Giter VIP home page Giter VIP logo

Comments (7)

davidgiven avatar davidgiven commented on July 17, 2024

You can do it from the command line, but you'll need some scripting. If you do fluxengine ls mac --800 -i image.dsk you'll get a list of files. You can add -p path to list a particular directory (using / as the separator). Then using getfile -p <path> -l <localfile> will copy the files off one at a time. Wildcards and recursion would be a useful thing to have but it's not supported yet. getfileinfo will let you see the creation dates and the standard Unix command touch -t will let you set them.

Creation dates aren't set mostly because nobody's asked for it yet. Not all filesystems have them, unfortunately, and they're also frequently wrong, but again, it'd be useful to have.

The 524 byte sectors thing is because MacOS reserves some extra space per sector for filesystem use, and this option returns the extra data as well. Except the standard MacOS filesystem doesn't use it! The FluxEngine filesystem plugin is supposed to work with it either enabled or disabled but that's clearly not working.

from fluxengine.

wilhelmloof avatar wilhelmloof commented on July 17, 2024

Thanks for your quick reply!

I will try the command line. Nifty that FluxEngine can list its own disk image files. Working with disk image files is much more convenient than accessing old floppy drives.
In what format are the FluxEngine disk image files stored? Non of the utils I tried could handle them. I tested: macOS Disk Utility 18.0 (on macOS 10.14.6, Mojave), hfsutils 3.2.6 (via homebrew), The Unarchiver 4.3.8, BetterZip 5.1.1, Disk Copy (using SheepShaver with MacOS 9), HFSExplorer 2021.10.9 (Windows) and Disk-Manager 0.17 beta (Windows). Is there any other program that can handle FluxEngine's dsk-files? It would be handy if FluxEngine also could write disk image files that can be read by modern macOS Disk Utility, like dmg or iso formats.

Yes, adding support for wildcards, recursion and original creation date would be highly appreciated.

If those features would be added, it would also be useful if FluxEngine could handle filenames on original media that is stored in obsolete character encodings and convert the names to UTF-8 when copying files. I am no expert on old Macs, did Apple use Mac OS Roman for most western countries? I my case the filenames contains Swedish characters (ÅåÄäÖö) and probably some other diacritics and they are not shown correctly in the current version of FluxEngine.

from fluxengine.

davidgiven avatar davidgiven commented on July 17, 2024

FluxEngine supports a bunch of disk image formats --- it uses the extension to determine which one. See the 'Image sources and destinations' section here for a list: http://cowlark.com/fluxengine/doc/using.html

Character encoding would be a useful feature, actually, and pretty easy to do. I'll take a look.

from fluxengine.

wilhelmloof avatar wilhelmloof commented on July 17, 2024

It's probably a better strategy to first create image files and then extract/copy desired files.

It would be handy if the GUI version also could write img-files, "Read disk" > "Save decoded image" creates a dsk-file.

I got an error trying to list the dsk-file in terminal:

C:\Program Files (x86)\Cowlark Technologies\FluxEngine>fluxengine ls mac --800 -i "C:\Users\w\Desktop\KS Mac disk\mac-test.dsk"
      OPTION: 800kB 80-track DSDD
      IMG: read 80 tracks, 2 sides, 800 kB total from C:\Users\w\Desktop\KS Mac disk\mac-test.dsk
  1.System              403286
  "File 1"      6796
  File2                16428
  File3        17196
terminate called after throwing an instance of 'std::runtime_error'
  what():  invalid utf8

from fluxengine.

davidgiven avatar davidgiven commented on July 17, 2024

Regarding writing img files: if you just change the filename to something.img, it'll work fine...

Re the filename: that's interesting. The high-bit characters in the Mac filename are clearly being parsed as UTF-8. I never actually put any character encoding stuff in there, so this must be happening automatically somewhere.

from fluxengine.

wilhelmloof avatar wilhelmloof commented on July 17, 2024

Changing the suffix to img did unfortunately not solve it. MacOS shows a warning after double clicking the img-file: "Legacy image should be converted". The image file from FluxEngine is 410k and the working img-file from gw is 819k.

from fluxengine.

davidgiven avatar davidgiven commented on July 17, 2024

If the output image is 400kB, that suggests that the 800kB format option hasn't been set (although it should be the default).

from fluxengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.