LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-07-2024, 01:30 PM   #1
Hasek39
Member
 
Registered: Jul 2015
Location: Pittsburgh, PA, US
Distribution: Slackware
Posts: 120

Rep: Reputation: Disabled
Cannot update to release 39 likely because of no space in /root


I still haven't updated my Fedora installation to the current 39 and would like to do so before 40 is released. Somehow it didn't work via GUI Software so I tried a command line upgrade.
Code:
sudo dnf upgrade --refresh
failed with the following output
Code:
[MIRROR] vim-common-9.1.181-1.fc38.x86_64.rpm: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
[FAILED] vim-common-9.1.181-1.fc38.x86_64.rpm: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
(1072-1073/1121): th 84% [================-   ]  23 MB/s | 2.0 GB     00:16 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  vim-common-2:9.1.181-1.fc38.x86_64: Download failed: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
and it doesn't allow me to procedure with the upgrade further
Code:
[hasek@fedora-laptop ~]$ sudo dnf system-upgrade reboot
[sudo] password for hasek: 
Error: system is not ready for upgrade
Furthermore I suspect an additional problem may be that I have a very low space available in /root
Code:
[hasek@fedora-laptop ~]$ sudo du -hs /*
4.0K	/afs
0	/bin
324M	/boot
0	/dev
37M	/etc
138G	/home
0	/lib
0	/lib64
16K	/lost+found
8.0K	/media
4.0K	/mnt
8.1G	/opt
du: cannot access '/proc/9679/task/9679/fd/3': No such file or directory
du: cannot access '/proc/9679/task/9679/fdinfo/3': No such file or directory
du: cannot access '/proc/9679/fd/3': No such file or directory
du: cannot access '/proc/9679/fdinfo/3': No such file or directory
0	/proc
62M	/root
du: cannot access '/run/user/1000/doc': Permission denied
du: cannot access '/run/user/1000/gvfs': Permission denied
2.2M	/run
0	/sbin
4.0K	/srv
0	/sys
8.0K	/tmp
17G	/usr
44G	/var
Can anybody kindly walk me through cleaning possible temporary logs or whatever it may be taking disk space in /root/ and how to proceed with completing the system upgrade?
 
Old 04-07-2024, 08:56 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
There is nothing unusual with the du output you ran. I get the same output when I run it. Why do you thing that the /root user directory is full as nothing is shown for it in your output.

What happened when you ran the suggested command: dnf clean packages

The output shows a little over 200GB used so how large is the drive?
Running df -h / should show the size, space used and available for the / filesystem partition.
 
Old 04-07-2024, 09:06 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
I believe the OP was referring to the /(root) partition and not root's home directory. By default Fedora creates a separate /boot partition with LVM volumes for / and swap. As posted without seeing the output of df we can not tell if / is full or not.
 
Old 04-07-2024, 09:27 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What is the output of

Code:
df -h
 
Old 04-08-2024, 12:06 PM   #5
Hasek39
Member
 
Registered: Jul 2015
Location: Pittsburgh, PA, US
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: Disabled
Code:
[hasek@fedora-laptop ~]$ df -h
Filesystem                               Size  Used Avail Use% Mounted on
devtmpfs                                 4.0M     0  4.0M   0% /dev
tmpfs                                    3.8G     0  3.8G   0% /dev/shm
tmpfs                                    1.6G  2.0M  1.6G   1% /run
/dev/mapper/fedora_localhost--live-root   69G   69G     0 100% /
tmpfs                                    3.8G  8.0K  3.8G   1% /tmp
/dev/nvme0n1p2                           974M  278M  629M  31% /boot
/dev/nvme0n1p1                           599M   46M  554M   8% /boot/efi
/dev/mapper/fedora_localhost--live-home  156G  138G  9.7G  94% /home
tmpfs                                    772M  172K  772M   1% /run/user/1000
Click image for larger version

Name:	low disk space on filesystem root.jpg
Views:	4
Size:	118.9 KB
ID:	42678
 
Old 04-08-2024, 03:00 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
I believe the OP was referring to the /(root) partition and not root's home directory
As did I but better to know than to guess. Your / partition is full so you need to delete or move data. First place tostart would be /var/log to see if you have a lot of large log files. Your /home partition is 94% full so basically, you need new drives. You will have problems very soon with your /home partition.
 
Old 04-08-2024, 04:56 PM   #7
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 482

Rep: Reputation: 179Reputation: 179
Quote:
basically, you need new drives.
That is my recommendation also. NVME drives are not that expensive all the way up to 1TB anymore. Time to upgrade!

{edited} should add, try cleaning. If that doesn't work, then backup data you want to save on an external drive and install 39, then restore data files.

Last edited by rclark; 04-08-2024 at 07:34 PM.
 
Old 04-08-2024, 05:28 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Try clearing out all the old stuff.

dnf clean all
 
Old 04-10-2024, 12:47 PM   #9
Hasek39
Member
 
Registered: Jul 2015
Location: Pittsburgh, PA, US
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: Disabled
Code:
[hasek@fedora-laptop ~]$ sudo dnf clean all
[sudo] password for hasek: 
1163 files removed
However it seems like I still don't have much of a free space
Code:
[hasek@fedora-laptop ~]$ df -h
Filesystem                               Size  Used Avail Use% Mounted on
devtmpfs                                 4.0M     0  4.0M   0% /dev
tmpfs                                    3.8G     0  3.8G   0% /dev/shm
tmpfs                                    1.6G  2.0M  1.6G   1% /run
/dev/mapper/fedora_localhost--live-root   69G   66G     0 100% /
tmpfs                                    3.8G  8.0K  3.8G   1% /tmp
/dev/nvme0n1p2                           974M  278M  629M  31% /boot
/dev/nvme0n1p1                           599M   46M  554M   8% /boot/efi
/dev/mapper/fedora_localhost--live-home  156G  139G  9.6G  94% /home
tmpfs                                    772M  3.8M  768M   1% /run/user/1000
Why does it say that 0 is available out of 69G while 66G is used? How should I go about cleaning /var/log/? Can I just run
Code:
sudo rm -rf /var/log/*
or may there be something important? I do not use any of the logs and have no idea what is stored there.
Code:
[hasek@fedora-laptop ~]$ ls /var/log/
anaconda                  dnf.librepo.log.3    messages
audit                     dnf.librepo.log.4    messages-20240317
blivet-gui                dnf.log              messages-20240324
boot.log                  dnf.log.1            messages-20240331
boot.log-20240302         dnf.log.2            messages-20240410
boot.log-20240306         dnf.log.3            ppp
boot.log-20240323         dnf.log.4            private
boot.log-20240328         dnf.rpm.log          qemu-ga
boot.log-20240401         dnf.rpm.log.1        README
boot.log-20240405         firewalld            samba
boot.log-20240410         gdm                  secure
btmp                      glusterfs            secure-20240317
btmp-20240401             hawkey.log           secure-20240324
chrony                    hawkey.log-20240317  secure-20240331
cron                      hawkey.log-20240324  secure-20240410
cron-20240317             hawkey.log-20240331  speech-dispatcher
cron-20240324             hawkey.log-20240410  spooler
cron-20240331             httpd                spooler-20240317
cron-20240410             journal              spooler-20240324
cups                      lastlog              spooler-20240331
dnf.librepo.log           libvirt              spooler-20240410
dnf.librepo.log.1         maillog              sssd
dnf.librepo.log.2         maillog-20240317     swtpm
dnf.librepo.log-20201122  maillog-20240324     tallylog
dnf.librepo.log-20201129  maillog-20240331     wtmp
dnf.librepo.log-20201206  maillog-20240410     wtmp-20230401
 
Old 04-11-2024, 03:59 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by Hasek39 View Post
How should I go about cleaning /var/log/? Can I just run "sudo rm -rf /var/log/*"
It's your system, you can destroy it however you wish. Don't expect us to dig you out of the mess you create though.

Run the du command against /var and /usr to make sure you know where the usage is highest, rather than guessing.

As for the rounding error, that's just a rounding error.
 
Old 04-11-2024, 05:02 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
you can use ncdu and also someone implemented a dtt (can be found somewhere in LQ too). But you know what can be removed.
69 GB should be enough for a clean install.
/ (root fs) and /home are both almost full, so probably you will need a new disk (if you want to keep everything).
 
Old 04-11-2024, 07:53 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Discussion on deleting files in /var/log at the site from the link below:

https://askubuntu.com/questions/1000...var-log-folder


Quote:
Why does it say that 0 is available out of 69G while 66G is used
The system reserves 5% for it's own use.
 
Old 04-12-2024, 12:38 PM   #13
Hasek39
Member
 
Registered: Jul 2015
Location: Pittsburgh, PA, US
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: Disabled
Thanks to everyone here for guiding me the right way -- I did some digging down my files and the root of the problem was /var/cache/PackageKit/ taking up 26G of space. I cleaned it up using pckon as described here. I also uninstalled Matlab because I wasn't using it for several years and got about 5G more space in /opt/. It allowed me to upgrade to 39 and my disc usage stats look like this now
Code:
hasek@fedora-laptop:~$ df -h
Filesystem                               Size  Used Avail Use% Mounted on
/dev/mapper/fedora_localhost--live-root   69G   32G   34G  48% /
devtmpfs                                 4.0M     0  4.0M   0% /dev
tmpfs                                    3.8G     0  3.8G   0% /dev/shm
efivarfs                                 246K   84K  158K  35% /sys/firmware/efi/efivars
tmpfs                                    1.6G  2.2M  1.6G   1% /run
tmpfs                                    3.8G  8.0K  3.8G   1% /tmp
/dev/nvme0n1p2                           974M  283M  624M  32% /boot
/dev/nvme0n1p1                           599M   48M  552M   8% /boot/efi
/dev/mapper/fedora_localhost--live-home  156G  140G  8.6G  95% /home
tmpfs                                    773M  164K  773M   1% /run/user/1000
Guess I need to take a look at /home/ in my spare time as well.

Thanks again for all you guys being so kind and helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Magicka 2 Linux Release Likely After The Initial Launch LXer Syndicated Linux News 0 02-27-2015 04:14 PM
Gabe Newell confirms release of SteamBox, likely with Linux OS TobiSGD Linux - Games 2 12-12-2012 01:23 PM
How likely is it that Linux will because of in-fighting? Dogs General 48 05-09-2010 08:10 PM
LXer: Firefox 3 beta 4 code freeze tonight, beta 5 release looks likely LXer Syndicated Linux News 0 02-28-2008 11:20 AM
cannot login because file system check fails because of bad magic number trutnev Linux - Newbie 1 03-23-2004 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration