Friday, August 5, 2016

partitioning - No disk space after installing Ubuntu Server


I have just picked up a HP Proliant DL380 G5 Server, with 2 Dual Core Xeon Processors, 16Gb Ram and 4 x 146Gb SAS drives for £33 on ebay. Bargain. The idea was to get hands on with Ubuntu Server. I've started migrating home computers from Windows to Linux and want to move from Windows Home Server to Ubuntu Server.


Installation of US 14.04 seemed to go ok. However, i tried to install some additional packages and it is reported that there is insufficient disk space.


 matt@unicorn:/etc$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/unicorn--vg-root 2.6G 2.6G 0 100% /
matt@unicorn:/etc$ sudo parted -l swapon -s
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/unicorn--vg-root: 2823MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 2823MB 2823MB ext4
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/unicorn--vg-swap_1: 17.2GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 17.2GB 17.2GB linux-swap(v1)
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 440GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 256MB 255MB primary ext2 boot
2 257MB 440GB 440GB extended
5 257MB 440GB 440GB logical lvm

Do I need to increase the size of /boot? Have I setup the installation incorrectly? Any help appreciated. Thanks



No, it is your root ( / ) filesystem that is full because you only allocated 2.6 GB to it. Since you set up lvm, and I'm assuming you used the recommended ext4 filesystem, you can do this fairly easily with:


sudo lvresize -L +10g unicorn-vg/root
sudo resize2fs /dev/unicorn-vg/root

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...