Increasing disk space
With the VM turned off, got to settings and increase the disk size
In Linux, go to gparted ( apt install gparted)
First change the partition size, then the filesystem size
Increasing swap space (legacy)
Click on links for more detailed instructions.
- Increase the LinuxVM disk size
- Make sure the VM is powered off
- In VMware Player or Workstation, Select the LinuxVM and click "Edit virtual machine settings".
- Select Hard Disk (SCSI) under the Hardware tab
- Click "Expand..."
- Increase the "Maximum disk size (GB)" by the amount of swap space to create.
- Click Expand
- Delete the old swap space
- Start the LinuxVM ("Play")
- Open the Disk manager: Applications, System Tools, Disk Utility
- Click on the SCSI disk
- Identify which partition contains the current swap space, and note device (e.g., /dev/sda2)
- Open a terminal, and unmount the current swap space: #sudo swapoff /dev/sda2
- You will need to enter the root password ("data")
- Delete the swap partition
- Create the new swap space
- In Disk Utility, click on the free space (probably to the right)
- Create partition of type swap
- Note the partition name (probably /dev/sda2)
- Mount the new swap space
- #sudo swapon /dev/sda2
- Check with Resource monitor that the swap space is increased
- Wait for hard disk to stop flashing (probably some configuration going on); for ~100GB, this will take many minutes, even on an SSD.
- Get the indentifier (UUID) of the new swap space
- List the UUID: #sudo blkid /dev/sda2
- Copy the UUID: select, right-click, Copy:
- Record the new swap space in the partition table
- Open the partition table file: #sudo gedit /etc/fstab
- Update the UUID for the swap space (select, right-click, Paste)
- Save
- Verify
- Reboot the LinuxVM
- Click on Resource monitor; the swap space is listed on the right.
Increasing Swap Space
Will this work? http://www.oradba.ch/2012/05/resize-swap-space-on-linux/.
...