Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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
  2. 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
    • 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
  3. 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)
  4. Mount the new swap space
    • #sudo swapon /dev/sda2 
    • Check with Resource monitor that the swap space is increased.
  5. Get the indentifier (UUID) of the new swap space
    • List the UUID: #sudo blkid /dev/sda2
    • Copy the UUID
  6. 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
    • Save
  7. Verify
    • Reboot the LinuxVM
    • Click on Resource monitor; the swap space is listed on the right.

...