- 论坛徽章:
- 0
|
大家在使用vmvare安装虚拟机的时候,常发现空间不够用,这时,如果重新安装的话,太费时间,这里给大家一个技巧轻松扩展你的硬盘空间
1. 首先使用命令把最大空间限制改掉
例: C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe -x 10Gb f:\linux.vmdk
1). 将虚拟机空间扩展为10GB
2). 重建分区, 这样原来的数据不会丢失.
#fdisk /dev/sda
# n
这里出现如下选项
# e (extended)
p (primary 1-4)
这里我选p
# 开始与结束的cylinder取默认值即可
# w
3).mkfs.ext2 /dev/sda3
有些系统可能提示mkfs.ext2::no such device or address while trying to determine filesystem size
这时用户需重启一下系统,再运行该命令
编辑/etc/fstab文件,加入下面的内容
/dev/sda3 /data ext2 defaults 1 2
4).reboot
请参考如下的FAQ
Details
I am using the VMware Virtual Disk Manager utility to expand the size of a virtual disk. The virtual disk is partitioned and the partitions do not get expanded. How can I expand the partitions?
Solution
If you are using the VMware Virtual Disk Manager included in GSX Server, VMware Server, Workstation, or ACE to expand the size of a virtual disk, and the virtual disk is partitioned, you will need to use a third-party utility to resize the expanded partitions. This utility would be run from inside the guest operating system.
Note: VMware cannot endorse or recommend any third-party utilility, nor take responsibility for anything that may occur as a result of its use. We recommend backing up your VM (or taking a snapshot) prior to attempting this.
Examples of third-party utilities include:
Partition Magic
http://www.symantec.com/norton/products/overview.jsp?pcid=sp&pvid=pm80
System Rescue CD
http://www.sysresccd.org/Main_Page
GParted LiveCD
http://gparted.sourceforge.net/livecd.php
Partition Logic
http://partitionlogic.org.uk
EASEUS Partition Manager
http://www.partition-tool.com
Paragon Partition Manager
http://www.partition-manager.com
Ranish Partition Manager
http://www.ranish.com/part
7tools Partition Manager
http://www.7tools.com/pm/index.htm
DFSee
http://www.dfsee.com/dfsee/index.php
Windows DiskPart utility.
Note: If you are using the Windows DiskPart utility, it can only extend (expand) data volumes; if you use the DiskPart utility to extend a system or boot volume, you may get an error. For more information about extending partitions with the DiskPart utility, see
http://support.microsoft.com/kb/325590
.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22381/showart_472404.html |
|