Search code examples
linuximagedosfloppy

List contents of floppy image file without mounting in Linux


I have a huge pile of old (DOS, probably FAT12) floppy image files which I'd like to browse quickly, without having to loop-mount each of them first. Something like Midnight Commander's "iso9660://" virtual file system, just for floppy images.

How can I quickly get a list of files on these images, or perhaps even open these images as (readonly) archives?


Solution

  • Both 7zz from 7-zip and 7z from P7Zip will list contents of floppy images. Just run 7z l floppy-image.img or 7zz l floppy-image.img and you will get the contents listed.

    If you are using Midnight Commander, you can also duplicate the 7zip section in ~/.config/mc/mc.ext.ini and add some minor changes:

    [Floppy]
    Shell=.img
    ShellIgnoreCase=true
    Open=%cd %p/u7z://
    View=%view{ascii} /usr/libexec/mc/ext.d/archive.sh view 7z
    

    This way mc will let you browse *.img images.

    If you are using Double Commander, just go to Configuration/Configuration of Archivers and add img to the list of extensions of 7Z.