how to increase/resize partitions

Hello,

I had a space problem in the /usr partition, as shown below, and made free quite a bog of disk space.

andreltr@andreltr:~> df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 1604464 962492 576752 63% /
udev 773336 596 772740 1% /dev
/dev/sda5 202219 63812 127967 34% /boot
/dev/sda8 5676464 4490620 897480 84% /home
/dev/sda9 9606084 8692128 425984 96% /opt
/dev/sda6 6712428 6682448 0 100% /usr
/dev/sda10 1668444 321388 1279264 21% /usr/local
/dev/sda7 1951820 1024592 867712 55% /var
gvfs-fuse-daemon 1604464 962492 576752 63% /home/andreltr/.gvfs
andreltr@andreltr:~>

However, this disk space is fragmented because because the space was made available through shrinking of other partitions. My question is how to move the old partitions into sequential order such that I can increase the size of the partition in need please? One last question: what does the .gvfs stand for?

Thanks,

André Luiz

I have no doubt others will also come to help you. But my first question is: why so many partitions? This gives many fixed borders where you will get the same problem on another partition in due time.

Most people have a swap of about 2 GB, a / of about 20 GB and the rest for /home.

So I advise a complete redesign. Will not be much more work then the resize you want to do.

Most feasable to me seems to be a schema where you offload everything to another disk(s) using a rescue CD/DVD, repartition and reload.

@hcvv is correct. What you have is a server or programmer’s disk setup (and also the way it was done years ago before larger disks). Is that what you really need?

If you want to change the partitions, then what you (we) need to look at is the partition table (as root):

fdisk -l -u

I understand your question about /usr. But I don’t follow the “fragmented” question; would do you mean by “the disk space is fragmented” and how did you reach that conclusion?

Also, please clarify what you mean by the partitions needing to be in “sequential order”.

.gvfs is the “gnome virtual file system”.

freeware Partition master home edition may help you and here is a detailed solution Increase partition size - Page 2 - openSUSE Forums