我在虚拟机上安装了一个fedora 10
想挂载上我的U盘,使用 mount -t vfat /dev/sda1 /mnt/usb 不行,这是为什么?
文章评论
共有 20 条评论
as1239 于 2011-01-17 21:57:15发表:
新手来学习的。。。
d-dh 于 2011-01-16 21:59:20发表:
[i=s] 本帖最后由 d-dh 于 2011-1-16 22:07 编辑 [/i]
引用:
用的什么虚拟机软件?版本?
有些虚拟机是还不能支持读取宿主机上的U盘的
hantu 发表于 2009-4-20 00:52
我用的virtualBox好象就找不到读取宿主机USB的方法
我的主机是linux,看看我fdisk出来的信息,怎么回事?
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdb1 ? 124264 306555 570754815+ 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(357, 116, 40) logical=(124263, 16, 11)
Partition 1 has different physical/logical endings:
phys=(357, 32, 45) logical=(306554, 70, 51)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 26939 336110 968014120 65 Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 43) logical=(26938, 60, 47)
Partition 2 has different physical/logical endings:
phys=(367, 114, 50) logical=(336109, 51, 42)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 298608 607779 968014096 79 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(366, 32, 33) logical=(298607, 71, 30)
Partition 3 has different physical/logical endings:
phys=(357, 32, 43) logical=(607778, 61, 39)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 460825 460834 27749+ d Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 50) logical=(460824, 20, 25)
Partition 4 has different physical/logical endings:
phys=(0, 10, 0) logical=(460833, 6, 33)
Partition 4 does not end on cylinder boundary.
as1239 于 2011-01-17 21:57:15发表:
新手来学习的。。。
d-dh 于 2011-01-16 21:59:20发表:
[i=s] 本帖最后由 d-dh 于 2011-1-16 22:07 编辑 [/i]
我用的virtualBox好象就找不到读取宿主机USB的方法
我的主机是linux,看看我fdisk出来的信息,怎么回事?
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdb1 ? 124264 306555 570754815+ 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(357, 116, 40) logical=(124263, 16, 11)
Partition 1 has different physical/logical endings:
phys=(357, 32, 45) logical=(306554, 70, 51)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 26939 336110 968014120 65 Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 43) logical=(26938, 60, 47)
Partition 2 has different physical/logical endings:
phys=(367, 114, 50) logical=(336109, 51, 42)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 298608 607779 968014096 79 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(366, 32, 33) logical=(298607, 71, 30)
Partition 3 has different physical/logical endings:
phys=(357, 32, 43) logical=(607778, 61, 39)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 460825 460834 27749+ d Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 50) logical=(460824, 20, 25)
Partition 4 has different physical/logical endings:
phys=(0, 10, 0) logical=(460833, 6, 33)
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
pittwt 于 2009-12-01 14:29:20发表:
学习一下
javaywt 于 2009-11-25 15:19:07发表:
在虚拟机的右下角有一排图标,能找到usb设备右键点击看看能不能连上宿主机的usb。
然后在虚拟机中用fdisk -l 查看插入usb前后的信息,就会发现是否多出类似sdaX的设备,
然后mount -t vfat /dev/sdaX /mnt/usb 试试看
microstar 于 2009-04-24 22:54:10发表:
你可以在FC10中进行设置自动挂载啊!这样就简单了啊!:0)1
ebl-jerry 于 2009-04-24 11:47:03发表:
把虚拟机关闭以后再试试
ebl-jerry 于 2009-04-24 11:44:12发表:
[attach]13006[/attach]
/dev/sda1已经载入了你的/boot分区
这个不是U盘,你的U盘没认出来
yjqg6666 于 2009-04-24 10:23:58发表:
如果不在虚拟机上 不用挂载 自动挂的 插上在桌面上就有图标了 你用的虚拟机 应该在虚拟的设置里面改一下 另外在插之前要首先要激活你虚拟机的那个窗口 或者进入虚拟机才插u盘
相思爱文 于 2009-04-21 10:40:28发表:
[i=s] 本帖最后由 相思爱文 于 2009-4-21 10:45 编辑 [/i]
虚拟机正常关机,点击编辑,把关于USB几个选项打勾,保存。启动虚拟机,在虚拟机运行后,不要离开,插入U盘,挂载。
mount -t vfat /dev/sd之后按tab补全,就会出现U盘。sda1和sda2是你的系统盘,/dev/sdb应该是U盘。U盘不知有没有分区,直接用补全比较好。
另外,-t vfat参数不用加,让系统自动判断。挂载位置如为/mnt/usb,必须先建立这个目录才行。或者直接挂载到/mnt就可以了。
相思爱文 于 2009-04-21 10:37:13发表:
从图上可以看出来,/dev/sda是你的系统盘,根本不是U盘。
shmily-xu 于 2009-04-21 10:35:24发表:
Fedora 10 系统u盘是自动挂载的
vfdff 于 2009-04-20 21:20:02发表:
5# marco.chan
6.02 的虚拟机 加载fedora 10 系统
vfdff 于 2009-04-20 21:15:40发表:
我的好像不能设置 是安装的虚拟机设置问题吗?
songmuyi 于 2009-04-20 10:37:15发表:
需要把虚拟机的usb设备启用了才行
rxy_pink 于 2009-04-20 08:25:31发表:
这个问题有待探索
hantu 于 2009-04-20 00:52:57发表:
用的什么虚拟机软件?版本?
有些虚拟机是还不能支持读取宿主机上的U盘的
marco.chan 于 2009-04-18 15:18:08发表:
1、虚拟机中,宿主机和客户机,是两台不同的电脑。
2、你从fdisk -l 中看到的sda就是你给客户机虚拟出来的虚拟硬盘,不是U盘。
3、客户机要用USB设备,需要通过主机的虚拟软件设置,允许客户机读取USB设备。
楼主的问题:
1、不知道虚拟机运作的原理。
2、还不清楚mount的原理。
3、还不清楚fdisk -l列出的信息。
vfdff 于 2009-04-18 11:51:32发表:
不管怎么样也应该能挂上
只是说如果不是linux分区格式 不能正常显示而已
wfdata 于 2009-04-18 10:40:11发表:
应该是linux分区格式吧
vfdff 于 2009-04-18 09:51:13发表:
补充 我的U盘是FAT32 格式