I can't update my system, I can't increase 10 GB btrfs root partition.

I’ve been trying to update my Leap 42.2 but i couldn’t for some reason and i’m too lazy to figure out why D; it might be because my 10GB / is full.

i’ll provide information, i want:

1- My system up to date.
2- Know how to increase root partition size, because i tried Gparted and can’t do anything.

┌─[suse ~]
└─╼ cat /etc/os-release 
NAME="openSUSE Leap"
VERSION="42.2"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.2"
PRETTY_NAME="openSUSE Leap 42.2"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.2"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"


┌─[suse ~]
└─╼ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 149.1G  0 disk 
├─sda1   8:1    0     2G  0 part [SWAP]
├─sda2   8:2    0    10G  0 part /var/lib/pgsql
└─sda3   8:3    0   137G  0 part /home


┌─[suse ~]
└─╼ sudo parted -l
root's password:
Model: ATA FUJITSU MHZ2160B (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  2155MB  2154MB  primary  linux-swap(v1)  type=82
 2      2155MB  12.9GB  10.7GB  primary  btrfs           boot, type=83
 3      12.9GB  160GB   147GB   primary  xfs             type=83


┌─[suse ~]
└─╼ df
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.5G     0  1.5G   0% /dev
tmpfs           1.5G  188K  1.5G   1% /dev/shm
tmpfs           1.5G  2.3M  1.5G   1% /run
tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
/dev/sda2        11G  9.8G   48M 100% /
/dev/sda2        11G  9.8G   48M 100% /opt
/dev/sda2        11G  9.8G   48M 100% /var/lib/mailman
/dev/sda2        11G  9.8G   48M 100% /boot/grub2/i386-pc
/dev/sda2        11G  9.8G   48M 100% /srv
/dev/sda2        11G  9.8G   48M 100% /var/crash
/dev/sda2        11G  9.8G   48M 100% /var/log
/dev/sda2        11G  9.8G   48M 100% /boot/grub2/x86_64-efi
/dev/sda2        11G  9.8G   48M 100% /var/lib/libvirt/images
/dev/sda2        11G  9.8G   48M 100% /var/lib/machines
/dev/sda2        11G  9.8G   48M 100% /tmp
/dev/sda2        11G  9.8G   48M 100% /var/lib/named
/dev/sda2        11G  9.8G   48M 100% /var/lib/mariadb
/dev/sda2        11G  9.8G   48M 100% /var/tmp
/dev/sda2        11G  9.8G   48M 100% /var/opt
/dev/sda2        11G  9.8G   48M 100% /var/spool
/dev/sda2        11G  9.8G   48M 100% /var/lib/mysql
/dev/sda2        11G  9.8G   48M 100% /var/cache
/dev/sda2        11G  9.8G   48M 100% /usr/local
/dev/sda2        11G  9.8G   48M 100% /var/lib/pgsql
/dev/sda3       137G   92G   46G  67% /home
tmpfs           297M     0  297M   0% /run/user/0
tmpfs           297M  8.0K  297M   1% /run/user/1000


when i do sudo zypper update:

http://i.imgur.com/RcDFkQq.jpg

it tries to update then at some point i get these errors

Failed to provide Package libwbclient0-4.4.2-11.6.1.x86_64 (Main Update Repository). Do you want to retry retrieval?

[download.opensuse.org-oss_1|http://download.opensuse.org/update/leap/42.2/oss] Can't provide file './x86_64/libwbclient0-4.4.2-11.6.1.x86_64.rpm' from repository 'download.opensuse.org-oss_1'
History:
 - Can't hardlink/copy /var/adm/mount/AP_0xxzCVQn/x86_64/libwbclient0-4.4.2-11.6.1.x86_64.rpm to /var/cache/zypp/packages/download.opensuse.org-oss_1
 - Can't provide ./x86_64/libwbclient0-4.4.2-11.6.1.x86_64.rpm

Abort, retry, ignore? [a/r/i] (a): i
Retrieving package libdcerpc0-32bit-4.4.2-11.6.1.x86_64                                                        (70/107), 270.8 KiB (201.4 KiB unpacked)
Retrieving: libdcerpc0-32bit-4.4.2-11.6.1.x86_64.rpm ..............................................................................[done (145.0 KiB/s)]
Failed to provide Package libdcerpc0-32bit-4.4.2-11.6.1.x86_64 (Main Update Repository). Do you want to retry retrieval?

[download.opensuse.org-oss_1|http://download.opensuse.org/update/leap/42.2/oss] Can't provide file './x86_64/libdcerpc0-32bit-4.4.2-11.6.1.x86_64.rpm' from repository 'download.opensuse.org-oss_1'
History:
 - Can't hardlink/copy /var/adm/mount/AP_0xxzCVQn/x86_64/libdcerpc0-32bit-4.4.2-11.6.1.x86_64.rpm to /var/cache/zypp/packages/download.opensuse.org-oss_1
 - Can't provide ./x86_64/libdcerpc0-32bit-4.4.2-11.6.1.x86_64.rpm

Abort, retry, ignore? [a/r/i] (a): i
Retrieving package libsamba-passdb0-4.4.2-11.6.1.x86_64                                                        (71/107), 276.3 KiB (214.0 KiB unpacked)
Retrieving: libsamba-passdb0-4.4.2-11.6.1.x86_64.rpm ...............................................................................[done (29.3 KiB/s)]
Failed to provide Package libsamba-passdb0-4.4.2-11.6.1.x86_64 (Main Update Repository). Do you want to retry retrieval?

[download.opensuse.org-oss_1|http://download.opensuse.org/update/leap/42.2/oss] Can't provide file './x86_64/libsamba-passdb0-4.4.2-11.6.1.x86_64.rpm' from repository 'download.opensuse.org-oss_1'
History:
 - Can't hardlink/copy /var/adm/mount/AP_0xxzCVQn/x86_64/libsamba-passdb0-4.4.2-11.6.1.x86_64.rpm to /var/cache/zypp/packages/download.opensuse.org-oss_1
 - Can't provide ./x86_64/libsamba-passdb0-4.4.2-11.6.1.x86_64.rpm

Abort, retry, ignore? [a/r/i] (a): 


when i open yast, online update:

http://i.imgur.com/26QfNMy.png

loool how can i increase that?

http://i.imgur.com/EDKIgIv.png

if i accept:

http://i.imgur.com/bC2Tzyq.png

please save my time and energy i hate to format and copy evrything again and do my configurations and bla bla bla blablalbblblalala help

Unfortunately there is no "easy"way. First off you need extra free space on the disk and it must be available at the end of the root partition. So first off you need to decrease the size of home partition then must move the partition down to free space between it and root then you must expand root. All should be done from a live Linux rescue disk. Your problem is not snapper since the installer won’t turn it on when such small partitions are used as root. What made you think 10 gig was enough space?? You maybe be able to get by with 10 if you never install anything extra or run bare bones. In any case any time you play with partitioning you risk losing your data so backup any important stuff

Please show output of “btrfs fi us /”.

I booted from Puppy Linux and run Gparted but couldn’t do anything because i see a yellow ! next to all partitions and the only option is to format partition!
How can i do it properly?

Well, i used the ‘Defaults’ of opensuse installer when i first installed it and it gave me 2GB swap, 10GB / , the rest for home and i didn’t care because i thought i can increase it easily any time.

┌─[suse ~]
└─╼ sudo btrfs fi us /
root's password:
Overall:
    Device size:          10.00GiB
    Device allocated:          10.00GiB
    Device unallocated:           1.00MiB
    Device missing:             0.00B
    Used:               9.74GiB
    Free (estimated):         644.00KiB    (min: 644.00KiB)
    Data ratio:                  1.00
    Metadata ratio:              2.00
    Global reserve:          96.00MiB    (used: 0.00B)

Data,single: Size:9.19GiB, Used:9.19GiB
   /dev/sda2       9.19GiB

Metadata,DUP: Size:384.00MiB, Used:282.22MiB
   /dev/sda2     768.00MiB

System,DUP: Size:32.00MiB, Used:16.00KiB
   /dev/sda2      64.00MiB

Unallocated:
   /dev/sda2       1.00MiB


Yes, your root filesystem is completely filled up. In this state it may not even be possible to delete files (because it requires some free space as well). I would try to find out where space goes and try to delete the most obvious candidates (/tmp or /var/tmp content, probably log files, cached package files etc). This may give you some headroom. But 10G is really too small.

So is anyone going to give me the right way to repartition or should i just download opensuse again and format and copy everything again?:frowning:

I gave you the outline. I don’t know if Puppy speaks BTRFS or XFS particularly if older and that may be why it won’t allow resizing. You can use any of the recent openSUSE rescue disks

Thank you for giving me the outline, i’ve finally not become lazy today and looked into this and read alot

This Gparted page
http://gparted.org/features.php

****!

My sda3 which is /home is xfs file system which means I can’t shrink it!>:(

Now I think what i should do is:

copy the home folder in external drive
boot from live linux
remove /home partition
extend Btrfs to say 40GB
recreate /home partition
copy home folder from external HDD to /home partition

then reboot and all is well right?

i think im missing somethings here, like mounting /home on boot!

please don’t leave me alone on black screens im afraid of the dark

Looks good to me.
Note that every step you describe can be accomplished graphically using gparted live (or, might require the commands descrbed. The brief notes aren’t clear).

Note though when you create your new, smaller XFS partition, it’ll have a new ID which you should insert into your fstab entry for /home.

Depending on your requirements and considering the fact you find yourself wanting to re-size your partitions, you might also consider not deploying /home in a separate partition. If your system is a single partition, then your /home would be deployed as a directory instead of a separate partition.

There are pros and cons to deploying /home in a separate partition or a directory in your single partition.

TSU

Thanks for your comment

Yes im now on Linux Mint live usb, and used Gparted to do my work.
My /home was originally partitioned separately as you can see in the original post, so my only option was to remove it and create it separately again because XFS can not be shrinked

And you are right, my new /home partition now has a new UUID and im going to write it in /etc/fstab replacing the old one (is there a graphical way though? lol)

im now waiting to copy my 92GB home folder to the new /home partition and then im going to edit fstab

i’ll come back soon guys to tell you what happens :wink:

Guys,

I’ve used Rsync to restore my home folder to my /home partition
Then changed the UUID in fstab

Then rebooted, and i’m now in the display manager, but i couldn’t login to my user as a black screen shows up then disappears and takes me back to my display manager!

I logged in as root and it let me in to my KDE desktop and i can see /home mounted and my user inside it and all my data

But why can’t i log in with my user?:sarcastic:

I used Rsync to backup and to restore my home folder, did i do it wrong?

i found an answer here
https://askubuntu.com/questions/391802/moved-home-to-a-separate-partition-now-i-cant-log-into-it

 First run ubuntu on normal mode, after press ctrl + alt + f1 and then login with your user name and password, now write sudo chmod 777 -R /home/Your_user_folder 
  If not posible, put the terminal answer here.
     

it works, im not sure everything is ok though, if anything goes bad i’ll come back

thank you so much guys <3rotfl!

http://i.imgur.com/vIglklZ.png

lol!:stuck_out_tongue:

What a great feeling that you did something right for once in your life lol