Update Errors Due to Disk Space on / Filesystem on Mageia 5

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Update Errors Due to Disk Space on / Filesystem on Mageia 5

Postby linuxbrad » Aug 25th, '17, 15:03

Hello,

I was attempting to complete an update on my Mageia 5 today and got the following error:

Code: Select all
1 installation transactions failed

There was a problem during the installation:

installing package thunderbird-0:52.3.0-1.mga5.x86_64 needs 6MB on the / filesystem


I've run into this issue before (https://forums.mageia.org/en/viewtopic.php?f=7&t=10918) and I really think my / partition is too small.

However, at that time, the helpful people on the forum asked me to post the output of the following:

Code: Select all
    du -mx /|sort -rn | head -25


The results are as follows:

Code: Select all
[root@localhost /]# du -mx / | sort -rn | head -25
11150   /
9500    /usr
4134    /usr/share
2828    /usr/lib64
1914    /usr/lib
1488    /usr/share/texmf-dist
1200    /usr/share/texmf-dist/fonts
963     /usr/lib/modules
818     /var
495     /usr/bin
409     /usr/lib64/libreoffice
403     /usr/share/texmf-dist/fonts/type1
396     /opt
392     /usr/share/doc
341     /boot
316     /usr/share/texmf-dist/fonts/type1/public
275     /usr/lib64/python2.7
268     /var/lib
264     /usr/share/games
243     /usr/lib64/python2.7/site-packages
228     /usr/share/texmf-dist/fonts/vf
220     /usr/lib64/libreoffice/program
219     /var/cache
218     /usr/share/texmf-dist/tex
215     /opt/google


Let me know what my options are. I'm starting to think I need to do a clean install (with Mageia 6) but then I'd need advice on backing up my system in order to avoid hours of addition set-up to get all my applications back (backing up /home is obvious but what should I back up from /?)

Thanks,

Brad

--
Brad Fonseca
XMPP: brad.fonseca@blah.im
XMPP (alt): brad.fonseca@xmpp.dk
--
Brad Fonseca
IM: Find me on Signal (https://signal.org/) on phone or desktop [if you know the number]
IM: @bradfonseca:matrix.org
User avatar
linuxbrad
 
Posts: 56
Joined: May 1st, '13, 04:36

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby isadora » Aug 25th, '17, 16:07

I would be more interested into the output of
Code: Select all
df
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby linuxbrad » Aug 25th, '17, 16:47

Hello,

I've done a bit of digging and resolved the issue, at least in part. After a bit of hunting around on Google I landed on this article: https://www.cyberciti.biz/faq/debian-redhat-linux-delete-kernel-command/. Specifically, it recommended cleaning up old kernel files. I ran the following command:

Code: Select all
[root@localhost /]# rpm -qa | grep kernel

and got the following output:

Code: Select all
[root@localhost /]# rpm -qa | grep kernel
kernel-desktop-4.4.13-1.mga5-1-1.mga5
kernel-desktop-4.1.15-2.mga5-1-1.mga5
kernel-desktop-4.4.36-2.mga5-1-1.mga5
kernel-desktop-4.4.68-1.mga5-1-1.mga5
kernel-desktop-4.4.22-1.mga5-1-1.mga5
kernel-desktop-4.4.74-1.mga5-1-1.mga5
kernel-firmware-20160409-1.mga5
kernel-desktop-4.4.26-1.mga5-1-1.mga5
kernel-desktop-4.4.55-1.mga5-1-1.mga5
kernel-desktop-4.4.79-1.mga5-1-1.mga5
kernel-desktop-4.4.59-1.mga5-1-1.mga5
kernel-desktop-4.4.39-1.mga5-1-1.mga5
kernel-desktop-4.4.50-2.mga5-1-1.mga5
kernel-userspace-headers-4.4.82-1.mga5
kernel-desktop-4.4.32-1.mga5-1-1.mga5
kernel-desktop-4.4.82-1.mga5-1-1.mga5
kernel-desktop-4.4.30-2.mga5-1-1.mga5
kernel-desktop-4.4.16-1.mga5-1-1.mga5
kernel-desktop-4.4.65-1.mga5-1-1.mga5
kernel-desktop-latest-4.4.82-1.mga5

By running:

Code: Select all
rpm -e kernel-desk...

for each of the old kernels (and being relatively cautious and leaving a few...), I was left with this:

Code: Select all
[root@localhost /]# rpm -qa | grep kernel
kernel-firmware-20160409-1.mga5
kernel-userspace-headers-4.4.82-1.mga5
kernel-desktop-4.4.82-1.mga5-1-1.mga5
kernel-desktop-latest-4.4.82-1.mga5

Then, I reran the command:

Code: Select all
[bradfonseca@localhost ~]$ sudo du -mx / | sort -rn | head -25
[sudo] password for bradfonseca:
9976    /
8594    /usr
4134    /usr/share
2828    /usr/lib64
1488    /usr/share/texmf-dist
1200    /usr/share/texmf-dist/fonts
1009    /usr/lib
818     /var
495     /usr/bin
409     /usr/lib64/libreoffice
403     /usr/share/texmf-dist/fonts/type1
396     /opt
392     /usr/share/doc
316     /usr/share/texmf-dist/fonts/type1/public
275     /usr/lib64/python2.7
268     /var/lib
264     /usr/share/games
243     /usr/lib64/python2.7/site-packages
228     /usr/share/texmf-dist/fonts/vf
220     /usr/lib64/libreoffice/program
219     /var/cache
218     /usr/share/texmf-dist/tex
215     /opt/google
212     /usr/share/atom
209     /usr/share/foomatic/db/source

which is quite a bit smaller. From there I was able to successfully run the updates. Yay me! :P

It looks like I have things somewhat under control now:

Code: Select all
[bradfonseca@localhost ~]$ df -H /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        13G   11G  1.5G  89% /


However, the having a 13 GB partition for / on a 1 TB drive seems a bit small. I wish there was a way to easily increase the size of it, short of doing a completely new install (which I'm tempted to do to get Mageia 6).

I may post another thread to ask about what backups to do in order to restore easily from a fresh install.

Thanks,

Brad
--
Brad Fonseca
IM: Find me on Signal (https://signal.org/) on phone or desktop [if you know the number]
IM: @bradfonseca:matrix.org
User avatar
linuxbrad
 
Posts: 56
Joined: May 1st, '13, 04:36

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby linuxbrad » Aug 25th, '17, 16:55

isadora wrote:I would be more interested into the output of
Code: Select all
df

Okay, this is what I got:

Code: Select all
bradfonseca@localhost ~]$ df
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G  194M  3.7G   5% /dev/shm
tmpfs           3.9G  900K  3.9G   1% /run
/dev/sda1        12G  9.8G  1.4G  89% /
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           3.9G  480K  3.9G   1% /tmp
/dev/sda6       902G  130G  772G  15% /home
tmpfs           790M   16K  790M   1% /run/user/500


Thanks,

Brad
--
Brad Fonseca
IM: Find me on Signal (https://signal.org/) on phone or desktop [if you know the number]
IM: @bradfonseca:matrix.org
User avatar
linuxbrad
 
Posts: 56
Joined: May 1st, '13, 04:36

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby doktor5000 » Aug 25th, '17, 17:02

You should be able to clean up a bit more by removing texlive or whatever package contains /usr/share/texmf-dist if you don't need that or any package that you are using needs it (you can find out which package own this via rpm -qf /usr/share/texmf-dist* )
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby linuxbrad » Aug 27th, '17, 16:06

You should be able to clean up a bit more by removing texlive or whatever package contains /usr/share/texmf-dist if you don't need that or any package that you are using needs it (you can find out which package own this via rpm -qf /usr/share/texmf-dist* )

I ran that command and got:

Code: Select all
[bradfonseca@localhost ~]$ sudo rpm -qf /usr/share/texmf-dist*
[sudo] password for bradfonseca:
texlive-collection-basic-20130530-10.mga5

If I recall correctly, I'm using this with my emacs/org-mode set up to print things to PDF with certain formatting so I need to keep that set of files around.

Thanks,

Brad
--
Brad Fonseca
IM: Find me on Signal (https://signal.org/) on phone or desktop [if you know the number]
IM: @bradfonseca:matrix.org
User avatar
linuxbrad
 
Posts: 56
Joined: May 1st, '13, 04:36

Re: Update Errors Due to Disk Space on / Filesystem on Magei

Postby doktor5000 » Aug 27th, '17, 16:21

Then you might take a look at the list of biggest packages to see whether you really need them.
Code: Select all
rpm -qa --queryformat '%{size} %{name}\n' | sort -rn | head -50
will show you the biggest 50 packages.

In general, the easiest way to repartition is probably to reinstall, keeping your /home. You should go for a / partition of 50GB, if you are really limited on diskspace got for 20GB at the very least.
You could also repartition by resizing your existing partitions via a live cd such as gparted, but that may be more risky if you haven't done that before.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron