- In VirtualBox, go to File -> Virtual Media manager
- Choose image file and extend to needed image size
- Start Ubuntu and go to Apps -> Utilities -> disks
- Choose Partitions (primary or logical) used by US (ext.4) and choose resize
- Disk (or
df -H
) usage should show new available space
- Install guest additions on Ubuntu:
sudo apt-get install virtualbox-guest-additions-iso
- Add shared folder device in VirtualBox -> Settings -> shared folder
- run
sudo mount -t vboxsf <sharedDeviceName> ~/<targetFolder>
Run sudo apt-get autoremove --purge
Additional hints here