打印

[求助] 请教VMware Fusion装了XP要可以访问mac磁盘么

0

请教VMware Fusion装了XP要可以访问mac磁盘么

今天在雪豹里用VMware Fusion虚拟机装了个XP
使用都正常,就是对只能设置访问mac磁盘里的部分共享文件夹
入文档图片之类的文件夹~无法直接访问mac磁盘~觉得有点不便
有人知道么~请教请教
或者是VMware Fusion本来就没这功能呢

TOP

0
不行吧?vmware也就是模拟个操作系统出来,mac默认的磁盘分区格式xp是不支持的。

TOP

0
应该不行,vmware是一个相当好的虚拟软件,可以虚拟出多个系统,但象其他虚拟软件一样,只能虚拟出win,linux等,不能虚拟mac,sco,aix,当然也不能访问。

TOP

0
步骤:
1.首先给虚拟机中添加共享文件夹,当然这时候要选共享的不是文件夹而是直接选要加载的磁盘根目录。
2.打开虚拟机,打开任意一个资源管理器窗口,点菜单栏的“工具”,点击映射网络驱动器,然后将共享的磁盘加上即可。(请在指定盘符的时候将保持它和你真正的xp系统下一致,这样以后用这些分区的绿色软件会避免很多麻烦)

这么干的好处是:
我习惯于把xp下的绿色软件放在E盘,所以加载后再虚拟机中可以正常使用,因为映射到盘符与真实系统中的一致,所以这里面的链接,快捷键什么的都可以正常使用.
比如我放在E盘的firefox就可以保持和真实xp下一致,浏览记录,密码什么的都可以保存,(我将firefox的profit路径改到了E盘)
我的迅雷就是放在E盘,可以正常打开,而且我将它的下载目录所在分区也做了映射并且保持了盘符的一致,所以打开后还可以接着下载,完全没有问题。mac下让我郁闷的下载问题完美解决。

根据我的经验要提醒大家注意的是:
1.此方法虽然可以为用boot camp启动的真正xp系统也映射网络驱动器,但是不建议这么干。因为我发现,如果这么干,重新直接进入xp系统的时候,xp里仍然把那些硬盘当作是映射的网络驱动器,而不是真正的驱动器,虽然能够正常访问,但是看上去很别扭。

TOP

0
vmware tool安装好之后可以直接把你磁盘里的东西拉进虚拟机,或者磁盘设置共享也行,不过没必要吧~

TOP

0
创建虚拟硬盘
1、关闭VM中正在运行的虚拟系统;
2、在虚拟系统名称上点右键->Virtual Machine Settings;
3、在Hardware页点“Add”->Add a hard disk->Create a new virtual disk->SCSI(recommended)->分配空间大小->OK;
4、可以看见Hardware中出现了一块新的硬盘Hard Disk 2。

对虚拟硬盘进行分区和格式化
-------------------------------------------------------------------------------
## 查看目前系统上有几块硬盘
[root@zhou-desktop ~]# fdisk -l

Disk /dev/hda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *         132        1305     9430155   83  Linux
/dev/hda2               1         131     1052226   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
15 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

Disk /dev/hdb doesn't contain a valid partition table
-------------------------------------------------------------------------------
对/dev/hdb分区进行分区
[root@zhou-desktop ~]# fdisk /dev/hdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 22192.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p        ## 打印出目前该硬盘下的分区列表

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
15 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n        ## 增加一个分区
Command action
   e   extended
   p   primary partition (1-4)
p                            ## 通常选择主分区,所以这里选p
Partition number (1-4): 1    ## 第一个分区,选1;第二个分区,选2,依次类推
First cylinder (1-22192, default 1): ## 默认值,回车
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-22192, default 22192):
## 如果要分区10G,这里可以直接输入:+10240M,因为这里要全部使用硬盘空间,则用默认
Using default value 22192

Command (m for help): p

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
15 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       22192    10485688+  83  Linux

## 第一个分区已经分好了,接下来把这个分区写入硬盘,用w
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

## 下面的工作就是对该硬盘进行格式,格式化成ext3
[root@zhou-desktop ~]# mkfs.ext3 /dev/hdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1310720 inodes, 2621422 blocks
131071 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
## 检查一下,是否已经格式好
[root@zhou-desktop ~]# fdisk -l

Disk /dev/hda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *         132        1305     9430155   83  Linux
/dev/hda2               1         131     1052226   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/hdb: 10.7 GB, 10737418240 bytes
15 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       22192    10485688+  83  Linux
[root@zhou-desktop ~]#

## 挂载虚拟硬盘
把/dev/hdb1挂载到/mnt/ext下
[root@zhou-desktop ~]#  mount /dev/hdb1 /mnt/ext  

## 重启系统之后,再挂载看是否成功
[root@zhou-desktop mnt]# df -lh
文件系统              容量  已用 可用 已用% 挂载点
/dev/hda1             8.8G  2.7G  5.6G  33% /
tmpfs                 252M     0  252M   0% /dev/shm
/dev/hdb1             9.9G  151M  9.2G   2% /mnt/ext

## 转移数据
1、/usr中的全部数据
2、清空usr目录:
    # rm -r /usr
    # mkdir /usr
3、卸载刚才挂上的虚拟硬盘,重新将它挂载到usr目录:
    # umount /mnt/ext
    # mount /dev/hdb1 /usr
4、 ## 用vi修改/etc/fstab,使系统启动就可以自动挂载
    # vim /etc/fstab
    在内容中加上一行:
    /dev/sdb1                /usr                     ext3     defaults         1 2

5、Ok,重新启动之后,可以查看现在的硬盘使用情况了:
[root@zhou-desktop mnt]# df -lh
文件系统              容量  已用 可用 已用% 挂载点
/dev/hda1             8.8G  2.7G  5.6G  33% /
tmpfs                 252M     0  252M   0% /dev/shm
/dev/hdb1             9.9G  151M  9.2G   2% /usr
本帖最近评分记录
  • 狂魔不羁 金币 -30 符号灌水--请重新阅读版规! 2010-4-2 19:53

TOP

0
推荐楼主还是用sun的virtual box吧,比vm好多了,速度快,兼容性也好啊。

TOP

0
好像有点太深奥了,我对此一无所知,只能说抱歉了

TOP

0
不行吧?vmware也就是模拟个操作系统出来,mac默认的磁盘分区格式xp是不支持的。

TOP

0
版主留言
狂魔不羁(2010-4-9 02:25): 挖坟警告 请珍惜id
原来如此.多谢大家啦
换个其他软件试试

TOP

当前时区 GMT+8, 现在时间是 2025-3-21 06:29