Paddy Landau said: Ubuntu Server requires at least 25Gb disk space. Once you start to partition it into smaller blocks, it will be problematic, which may explain your difficulties on a 30Gb drive (which is tiny by today's standards).
For a 30Gb drive, I would recommend just a single partition. Not even a Swap partition; use a file-based swap instead.
Actually, you can easily install Ubuntu Server 16.04 LTS onto a 10GB drive. Here is a default install with Guided-LVM selected and OpenSSH enabled:
root@ubuntu:/# vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 9.52 GiB
PE Size 4.00 MiB
Total PE 2437
Alloc PE / Size 2431 / 9.50 GiB
Free PE / Size 6 / 24.00 MiB
VG UUID h53Zon-9HIb-6qgT-lgKQ-JOSV-T3px-jldSMa
root@ubuntu:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 477M 0 477M 0% /dev
tmpfs 100M 3.2M 97M 4% /run
/dev/mapper/ubuntu--vg-root 8.3G 1.4G 6.5G 17% /
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 497M 0 497M 0% /sys/fs/cgroup
/dev/sda1 472M 58M 391M 13% /boot
tmpfs 100M 0 100M 0% /run/user/1000
EDIT: The above is a clean install of 16.04.3. The below is after doing the apt-get upgrade, dist-upgrade:
root@ubuntu:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 477M 0 477M 0% /dev
tmpfs 100M 3.2M 97M 4% /run
/dev/mapper/ubuntu--vg-root 8.3G 1.8G 6.1G 22% /
tmpfs 497M 0 497M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 497M 0 497M 0% /sys/fs/cgroup
/dev/sda1 472M 106M 342M 24% /boot
tmpfs 100M 0 100M 0% /run/user/1000
root@ubuntu:/# uname -a
Linux ubuntu 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
The 30GB drive is more than enough room to create a base server with room to grow. The point of my tutorials is to show how to design the partition system to grow and that also includes keeping it small...initially and then grow where needed. To see this illustrated, you can look over these two sections in my how-to guide: Analysis and Design, Volume and Disk Management
As for file-based swap, I will address that in 18.04...most-likely with a fixed swap partition and how to add a swapfile on top of that if needed if not using SSD. However, your server should be tuned so that it does not USE the swap partition. Different story altogether for desktop systems though.
LHammonds