在 Linux 上安装旧的 MS-DOS .img

在 Linux 上安装旧的 MS-DOS .img

有没有办法挂载旧的 .img 文件,该文件很可能是 Linux 上为 MS-DOS 制作的 CD-ROM 的副本?所有尝试都失败了。file它只是被视为“数据”,fdisk -l只说

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

使用mount -oloop挂载mount -o loop,offset=512失败。我可以使用 losetup 将其挂载到任何 /dev/loop-device,但我无法将其挂载到任何地方。对于 mount,我得到输出

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.

dmseg 告诉我

[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

十六进制转储的前几行是:

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  |................|

我该怎么做才能访问该内容?

答案1

我的文件是 Alcohol 120% 专有格式,名为中密度纤维板

我找到了这个工具mdf2iso(本机 Linux CLI 工具)将图像转换为 ISO,然后我就可以挂载它。

相关内容