3

I run my Ubuntu in Vmware box. Unfortunately my Ubuntu disc size becomes too low. What is approach to solve this problem. I did expand partition in Vmwareand got message:

The disk was successfully expanded. You must repartition the disk and expand the file systems from within the guest operating system.

But how to resize disc partition in Ubuntu now?

UPD output of fdisk -f

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004819b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    39845887    19921920   83  Linux
/dev/sda2        39847934    41940991     1046529    5  Extended
/dev/sda5        39847936    41940991     1046528   82  Linux swap / Solaris
3
  • Do an sudo fdisk -l from inside the running system there. Paste the output into the question. Resizing will depend on whether it was installed with LVM or not.
    – Thomas Ward
    Sep 30, 2016 at 12:25
  • I have updated question body with output
    – vico
    Sep 30, 2016 at 12:37
  • Was this solved?
    – JTIM
    Dec 1, 2016 at 17:15

2 Answers 2

3

Okay so the solution for me was to use gparted, that allows you to move and resize partitions.

A nice tutorial of how to do it can be found here: https://www.youtube.com/watch?v=cDgUwWkvuIY

2

Easy solution for Ubuntu 18.04 LTS:

  1. Open "Disks" application (e.g. by hitting super key and typing "disks").

    Disks Application

  2. Click on the icon with 2 cog wheels (⚙️), i.e., Additional partition options and then Resize.

    Additional partition options

  3. Drag slider to the right.

    Slider

  4. Click on "Resize" button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.