gpt4 book ai didi

linux - 挂载 Windows XP dd 镜像失败

转载 作者:太空宇宙 更新时间:2023-11-04 05:04:32 25 4
gpt4 key购买 nike

我有一个 Windows XP dd 镜像。我正在使用 file 命令检查图像:

    root# fdisk -l ./hdddump.img    Disk ./hdddump.img: 2031 MB, 2031400960 bytes, 3967580 sectors    Units = Sektoren of 1 * 512 = 512 bytes    Sector size (logical/physical): 512 bytes / 512 bytes    I/O size (minimum/optimal): 512 bytes / 512 bytes    Disk label type: dos    Disk identifier: 0xef8b000a            Gerät  boot.     Anfang        Ende     Blöcke   Id  System    ./hdddump.img1              63     3354623     1677280+   7  HPFS/NTFS/exFAT    ./hdddump.img2         3354624     3967487      306432    b  W95 FAT32

之后我尝试安装图像:

    root# mount -t auto -o loop,ro,noexec,offset=32256 hdddump.img ./hddmount/    mount: /absolute_path/hdddump.img: failed to setup loop device: numerical result out of range

我不知道为什么会发生这种情况,而且我在互联网上找不到任何提示。使用 qemu-img 转换镜像并将其作为硬盘包含在 VM Ware 计算机中是可行的,因此镜像不会损坏。

最佳答案

尝试将 sizelimit=858767360 添加到您的安装选项中。如果losetup(由mount调用)尝试自动计算大小,可能会出现问题。

(858767360 =1677280*512)

但是这个问题最好在 super 用户或服务器故障上提出。

关于linux - 挂载 Windows XP dd 镜像失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20582789/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com