New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help: Adding more space to / (/dev/sda2)
Filesystem Size Used Avail Use% Mounted on
none 1006M 0 1006M 0% /dev
tmpfs 203M 37M 166M 18% /run
/dev/sda2 1.9G 1.8G 0 100% /
tmpfs 1011M 0 1011M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1011M 0 1011M 0% /sys/fs/cgroup
/dev/sda3 5.5T 1.4T 3.9T 26% /home
tmpfs 203M 0 203M 0% /run/user/1000
Hi, I'm new to running a server and kind of messed of the partitions. How do I add more space to / ? Another 5 GB. (Running Debian 8, btw)
Thanks in advance for any help!
Comments
Boot the server with gparted, select the partition, expand it, save, reboot, done.
See https://www.lowendtalk.com/discussion/99171/how-to-extend-linux-sda2-partition for a related discussion.
In this case you'll have to shrink sda3 first and then increase sda2. If sda3 is empty/unused, easiest to delete it, grow sda2 and then recreate sda3.
Yet another point:
If you are running a dedicated/KVM and think that you'll run into space issues in the future, it is worth moving to/using LVM just for the resize options. Grub2 should handle LVM2 nicely out of the box.
+1
And backup your data to another server before doing this.