Expand the centos hard disk size in VirtualBox
1. Clone an objectI created centos 6.3 During the previous installation, but I didn't have enough space to reinstall centos. I thought about using the resize command because I had to configure many things, however, when running D: \ Program Files \ Oracle \ VirtualBox> VBoxManage.exe modifyhd "D: \ CentOS 6.3.vdi" -- resize 12288 in win8, an error is always reported. The error is as follows: VBoxManage.exe: error: resize hard disk operation for this format is not impleme nted yet! No way. You can see it on the Internet. First, create an empty and large vdi on the virtual machine, and then use the clonehd command to clone it. Run the following command:
After that, mount the new vdi image to VirtualBox and start the new vdi file,Ii. Extended partitions <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> Vc3Ryb25nPgrKudPDZGYgLWjAtLLpv7SjrLeiz9a4 + cS/large + 8rbncwO2 + 7QoKPHRhYmxlIGJvcmRlcj0 = "1" cellpadding = "2" cellspacing = "0">[Root @ centos ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda1 6.0G 5.5G 161 M 98%/
Tmpfs 939 M 376 K 939 M 1%/dev/shm
Linux_share 202G 126G 77G 63%/mnt/share
/Dev/sr0 1.2G 1.2G 0 100%/media/CentOS_6.5_FinalFor more information about the extension method, see "extend. Very convenient. This is the partition before I expand
[Root @ centos ~] # Df-h-T Filesystem Type Size Used Avail Use % Mounted on /Dev/sda1 ext4 6.0G 5.5G 162 M 98%/ Tmpfs 939 M 228 K 939 M 1%/dev/shm Linux_share vboxsf 202G 127G 76G 63%/mnt/share /Dev/sr0 udf 193 M 193 M 0 100%/media/GParted-live |
This is the partition I extended after gparted-live-0.16.1-1-amd64.iso
[Root @ centos ~] # Df-h-T Filesystem Type Size Used Avail Use % Mounted on /Dev/sda1 ext4 12G 5.5G 5.3G 51%/ Tmpfs 939 M 76 K 939 M 1%/dev/shm Linux_share vboxsf 202G 127G 76G 63%/mnt/share /Dev/sr0 udf 193 M 193 M 0 100%/media/GParted-live [Root @ centos ~] # |
You can also use the command fdisk-l to view