LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1010|回复: 9

mount vdi文件的问题

[复制链接]
发表于 2011-3-31 15:18:49 | 显示全部楼层 |阅读模式
一个xp的vdi文件,在VB4中能正常进入系统。但不能mount

fdisk -l   xxx.vdi返回如下信息
fdisk -l data/vdi/winxp.vdi

Disk data/vdi/winxp.vdi: 9672 MB, 9672108032 bytes
255 heads, 63 sectors/track, 1175 cylinders, total 18890836 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
Disk identifier: 0x00000000

Disk data/vdi/winxp.vdi doesn't contain a valid partition table

file data/vdi/winxp.vdi
data/vdi/winxp.vdi: data
发表于 2011-3-31 15:40:38 | 显示全部楼层
fdisk后面接设备或分区,不能接文件,接文件后结果都是这个样子
mount vdi好像挺麻烦,得算offset
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-31 17:21:33 | 显示全部楼层
网上查询fdisk可以接镜像文件
回复 支持 反对

使用道具 举报

发表于 2011-3-31 18:51:33 | 显示全部楼层
vdi文件比真实磁盘多了header部分,我还真不知道怎么才能让fdisk知道vdi中真实磁盘部分的偏移量,以识别分区表
回复 支持 反对

使用道具 举报

发表于 2011-3-31 20:13:53 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-1 16:01:36 | 显示全部楼层
还是不行!
./vdfuse-v80 -f /mnt/data/vdi/Windows\ XP\ SP3.vdi /mnt/vboxxp/

ERROR: opening vbox image failed

DESCRIPTION: This Fuse module uses the VirtualBox access library to open a
VirtualBox supported VD image file and mount it as a Fuse file system.  The
mount point contains a flat directory containing the files EntireDisk,
Partition1 .. PartitionN.  These can then be loop mounted to access the
underlying file systems

USAGE: ./vdfuse-v80 [options] -f image-file mountpoint
        -h      help
        -r      readonly
        -t      specify type (VDI, VMDK, VHD, or raw; default: auto)
        -f      VDimage file
        -a      allow all users to read disk
        -w      allow all users to read and write to disk
        -g      run in foreground
        -v      verbose
        -d      debug

NOTE: you must add the line "user_allow_other" (without quotes)
to /etc/fuse.confand set proper permissions on /etc/fuse.conf
for this to work.

FUSE已编译入内核。
回复 支持 反对

使用道具 举报

发表于 2011-4-1 18:19:10 | 显示全部楼层
NOTE: you must add the line "user_allow_other" (without quotes)
to /etc/fuse.confand set proper permissions on /etc/fuse.conf
for this to work.


它下面提示的这个你做了没?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-2 10:05:53 | 显示全部楼层
已修改/etc/fuse.conf
回复 支持 反对

使用道具 举报

发表于 2011-4-2 11:16:27 | 显示全部楼层
Post by chengliye;2132885
一个xp的vdi文件,在VB4中能正常进入系统。但不能mount

fdisk -l   xxx.vdi返回如下信息
fdisk -l data/vdi/winxp.vdi

Disk data/vdi/winxp.vdi: 9672 MB, 9672108032 bytes
255 heads, 63 sectors/track, 1175 cylinders, total 18890836 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
Disk identifier: 0x00000000

Disk data/vdi/winxp.vdi doesn't contain a valid partition table

file data/vdi/winxp.vdi
data/vdi/winxp.vdi: data

注册了8年多的帐号,几乎都是别人帮你,你都没帮过别人

Is this so-called COMMUNITY?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-2 11:47:22 | 显示全部楼层
惭愧!!!!!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表