VBox convert vmdk to vdi, resize, and grow win7 disk
stackoverflow
create a new ext4 partition in gparted
create a mount point for the new partition
sudo mkdir /media/win7ssd
sudo chown troy:troy /media/win7ssd
sudo chmod 700 /media/win7ssd
mount the partition
sudo vi /etc/fstab
/dev/sdb3 /media/win7ssd ext4 defaults 1 2
sudo mount -a
Convert and resize the existing vmdk
sudo VBoxManage clonehd "/media/win7/Win7-disk1.vmdk" "/media/win7ssd/Win7-disk1.vdi" --format vdi
sudo VBoxManage modifyhd "/media/win7ssd/Win7-disk1.vdi" --resize 40000
update the ownership and permissions
sudo chown -R troy:troy /media/win7ssd
sudo chmod -R 700 /media/win7ssd
In virtualbox replicate the configuration but use the new disk
create a new ext4 partition in gparted
create a mount point for the new partition
sudo mkdir /media/win7ssd
sudo chown troy:troy /media/win7ssd
sudo chmod 700 /media/win7ssd
mount the partition
sudo vi /etc/fstab
/dev/sdb3 /media/win7ssd ext4 defaults 1 2
sudo mount -a
Convert and resize the existing vmdk
sudo VBoxManage clonehd "/media/win7/Win7-disk1.vmdk" "/media/win7ssd/Win7-disk1.vdi" --format vdi
sudo VBoxManage modifyhd "/media/win7ssd/Win7-disk1.vdi" --resize 40000
update the ownership and permissions
sudo chown -R troy:troy /media/win7ssd
sudo chmod -R 700 /media/win7ssd
In virtualbox replicate the configuration but use the new disk
Comments