Just starting to build virtual machine time, the capacity is set to no 8Gb, then a few days, there will be no place, depressed! checked, there are several ways you can increase the disk capacity, one is: virtual machine following that what .exe can increase, but I had no success!, is to remount a hard disk: method as follows: 1 in Ubuntu Vmware virtual machine in close, in settings, add a new hardware device, select the HardDisk.
(If you do not close the ubuntu system will not be able to add a new hardware device) then click Next, select the hard disk type, you can select the IDE or SCSI, here we select the SCSI, the next step, select the location of the virtual new hard disk, we will be named Ubuntu2.vmdk, next, set the size of the hard disk, I here set to 5G and select Allocatealldiskspacenow, uncheck this item, in the beginning, the relatively small hard drive, but as the hard disk read/write access to virtual hard disk file is growing. Select the item, the virtual hard disk is set as the selected 5G space, will no longer increase. After that, click Finish to begin creating a new hard drive. 2 start Ubuntu, root user login. Enter in Terminal: fdisk-l, can see----------------------------------------------------------------------------Disk/dev/sda: 10.7GB, 10737418240bytes255heads, 63sectors/track, 1305cylindersUnits = cylindersof16065 * 512 = 8225280bytesDiskidentifier: 0x000af383DeviceBootStartEndBlocksIdSystem/dev/sda1 * 112449992398 + 83Linux/dev/sda212451305489982 + 5Extended/dev/sda51245130548995182Linuxswap/SolarisDisk/dev/sdb: 5368MB, 5368709120bytes255heads, 63sectors/track, 652cylindersUnits = cylindersof16065 * 512 = 8225280bytesDiskidentifier: 0x00000000Disk/dev/sdbdoesn'tcontainavalidpartitiontable----------------------------------------------------------------------------here you can see/dev/sdb is our newly added hard drive, we need to give the new hard disk partition. Enter in Terminal: fdisk/dev/sdb After type: m, you can see the help information, type: n, add a new partition type: p, select Add main partition type: l, select primary partition number 1 so that after the creation of primary partitions fdisk for sdb1, will let you choose the partition's starting and ending values, directly return finally type: w, save all and exit to complete the new hard disk partitions. 3 formatting disks in Terminal input: mkfs-text3/dev/sdb1 ext3 format used to format a 4/dev/sdb1 mount the partition: manually mount: enter in Terminal: mkdir/data, create a new hard drive mounting points on the terminal type: mount/dev/sdb1/data, mount the new partition to the directory on/data/automount modify/etc/fstab file, add the following line:/dev/sdb1/dataext3defaults, 01
No comments:
Post a Comment