Re: Resizing a partition running production Ubuntu Server
You will have to shrink the filesystem first. I have never done partition shrink too, but the way I understand it, the filesystem is "always at the front of the partition". Which means if you have a partition of 100GB and you shrink the filesystem to 50GB, and you have only used 25GB of those, the 25GB can be where ever in the 50GB but they can never be out of them. So in theory it would be safe to shrink the partition "cutting out" the last 50GB from it.
But that is how I understand the theory, I have never done it either.
Using Gparted from live mode can also help and I believe it does both operations for you in one (shrink the FS and shrink the partition).
PS. Another thing to consider is do you actually need this risky operation of shrinking the partitions. You said you want to use the new partition for storing backups, other docs, etc. If that's backups from the same machine, storing it on the same disk/machine is not a backup anyway. If the disk goes, your backup file is also gone. As for docs, you can probably manage to store them elsewhere too, or inside the ubuntu server itself without shrinking the partition.
Last edited by darkod; March 17th, 2017 at 01:41 PM.
Darko.
-----------------------------------------------------------------------
Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit
Bookmarks