Chinaunix

标题: 在虚拟机里装的linux,请问怎样将我windows下的c盘,d盘挂载到这个linux下呀? [打印本页]

作者: pxpbba    时间: 2005-12-23 09:48
标题: 在虚拟机里装的linux,请问怎样将我windows下的c盘,d盘挂载到这个linux下呀?
我的c盘,e盘都是fat32的,听说是可以挂载的。可是我不知道怎样挂载。比如挂载光盘mount /dev/cdrom.
可是要挂载我的c盘,mount后面该带一个什么样的设备文件名称呢?
我知道我问的问题太白了,不过还是请各位教我!
作者: lunchan    时间: 2005-12-23 10:48
ATA : /dev/hd*

SCSI : /dev/sd*
作者: pxpbba    时间: 2005-12-23 11:05
请问 :mount 后面该怎么带参数呢。
我使用 mount -f vfat /dev/sd* /mnt/temp
系统报出一大堆信息:
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say  man 8 mount .
作者: kriby1981    时间: 2005-12-23 11:07
mount -t vfat /dev/sd* /mnt/temp
作者: lunchan    时间: 2005-12-23 11:15
man mount
作者: pxpbba    时间: 2005-12-23 11:29
大侠,我是用mount -t vfat /dev/sd* /mnt/temp这个命令敲的。上面的帖子是我打错了

我知道我必须学习有关文件系统,挂载的一些概念。可是就因为看不太懂。所以希望成功的把window下的盘挂过来看看,这样可以获得很多感性的认识!
希望大家告诉我
作者: xcqf    时间: 2005-12-23 11:41
提示: 作者被禁止或删除 内容自动屏蔽
作者: pxpbba    时间: 2005-12-23 14:58
顶,大家告诉我怎样挂载windows的盘到linux下,郁闷中。。。。。。
作者: jook999    时间: 2005-12-23 15:59
虚拟机用的是虚拟盘, 根本就认不出来真实的硬盘。
作者: kxhe    时间: 2005-12-23 16:37
原帖由 jook999 于 2005-12-23 15:59 发表
虚拟机用的是虚拟盘, 根本就认不出来真实的硬盘。


对阿,虚拟机里面怎么可以挂真实的硬盘?偶是新手。。。。。。
作者: yanxiaomin    时间: 2005-12-23 22:26
虚拟机好像是挂不了真实机子上的盘吧?不过可以通过共享的方式看呀。
作者: lth980010    时间: 2005-12-24 00:20
说的也是 受教了
作者: supersuper    时间: 2005-12-24 02:10
添加硬盘里选真实的硬盘就ok了
作者: Ronaldo9_8    时间: 2005-12-25 01:15
可以将需要挂载的分区共享,然后用linux挂载共享。
或者不知道楼主是不是为了传文件方便……

VMware有个专门的软件VMware-mount-一个小工具,可以将VMware的虚拟机硬盘文件映射为
宿主机上的硬盘分区。

或者将linux目录共享,用Windows访问也可以。
作者: 公子月    时间: 2005-12-25 19:21
可以挂载
mount -t fat  //ip/share  /mnt/share
作者: bingosek    时间: 2005-12-25 20:13
安装vmtools,使用hgfs挂载,在论坛上搜索一下




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2