4

Is there a way to mount an old .img file that's most likely a copy of a CD-ROM made for MS-DOS on Linux? All attempts have failed yet. file sees it just as "data", fdisk -l only says

646,75 MiB, 678163456 bytes, 1324538 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Mounting with either mount -o loop and mount -o loop,offset=512 fails. I can mount it with losetup to any /dev/loop-device, but I can't mount that anywhere. for mount I get the output

wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

and dmseg tells me

[39452.042543] loop0: detected capacity change from 0 to 1324537
[39452.051688] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[39452.051889] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[39452.051986] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
[39452.052096] FAT-fs (loop0): bogus number of reserved sectors
[39452.052100] FAT-fs (loop0): Can't find a valid FAT filesystem

The first lines of the hexdump are:

00000000  00 ff ff ff ff ff ff ff  ff ff ff 00 00 02 00 01  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

What can I do to access the content?

14
  • How would you do that? MS -DOS (I have such a VM) is 16-bit and modern Linux is 64-bit.
    – anon
    Commented Sep 20, 2023 at 21:50
  • @John, why not make that an answer: VM Commented Sep 20, 2023 at 23:37
  • I did so - Thank you
    – anon
    Commented Sep 20, 2023 at 23:44
  • Try using the file command to see if it detects anything or use a hex editor to look inside. // Because CDs/DVDs do not have partitions, fdisk cannot work with them.
    – Daniel B
    Commented Sep 21, 2023 at 7:32
  • 2
    Bad news, judging from the header that's in all likelihood a MDF file, i.e. a proprietary format used by Alcohol 120%: en.wikipedia.org/wiki/Media_Descriptor_File You probably want to convert it to ISO first using e.g. mdftoiso.com Commented Sep 21, 2023 at 12:09

1 Answer 1

4

My file was in the Alcohol 120% proprietary format called MDF.

I found the tool mdf2iso (native Linux CLI tool) to convert the image into an ISO and I could afterwards mount it.

5
  • My pleasure. For future reference, this tool might be useful (it was one of the top hits when googling bytes from your header) github.com/rocketRobin/myrmec Commented Sep 22, 2023 at 8:17
  • Hi Richard, comments are often deleted. So, please add a link to the software in your answer to enhance it. Commented Sep 25, 2023 at 22:40
  • @RohitGupta I will not add links to software I've never used. That program may be installable on Linux but I've yet to find a way worth the effort. Commented Sep 26, 2023 at 6:35
  • It's in Debian stable, I think it's safe to link :-) Commented Sep 26, 2023 at 8:50
  • I thought you meant Myrmec Commented Sep 26, 2023 at 12:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .