LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-21-2017, 12:33 AM   #1
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
Ran out of inodes during upgrade


I'm trying to upgrade my Debian from Jessie to Stretch. apt-get upgrade worked fine. Half-way during apt-get dist-upgrade I got some errors that the installation [I'm not sure at which step, but some step after downloading] couldn't create pipes because there was no space left on the device. I checked and my root filesystem is running out of inodes. /var and /home are on different filesystems, and have plenty of space/inodes. /tmp is FORCRYINGOUTLOUD not mounted as tmpfs, and "systemctl enable tmp.mount" says the file doesn't exist. (Thank you, systemd.)
Is my only option rebuilding a filesystem with more inodes, or is there some other thing I could try?
[update]
My system has become severely crippled (i.e. only rescue mode, even unable to establish an internet connection). Unless some guru likes the challenge of bringing this system back from the dead, I will reinstall. So hint for people running into this problem in the future: do not reboot.

Last edited by Weapon S; 06-21-2017 at 01:19 AM.
 
Old 06-21-2017, 01:17 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If you can't delete sufficient files you will have to reformat the filesystem.

I don't do Debian, but if /tmp ain't on tmpfs, it ain't the fault of systemd - I've been using it on other systems for years. Perhaps you should give the (Devian) devs a nudge.
 
Old 06-21-2017, 08:52 AM   #3
verndog
Member
 
Registered: Oct 2007
Posts: 278

Rep: Reputation: 67
Run this command to find where there hidden. Maybe a tmp dir. Then delete them.
Code:
sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
 
Old 06-22-2017, 07:10 AM   #4
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262

Original Poster
Blog Entries: 2

Rep: Reputation: 49
My system wasn't dead; I just didn't configure /tmp properly i.e. typo in fstab. I was peeved, because I was told systemctl enable tmp.mount would suffice. Instead you have to edit fstab, which might have been obvious, if there wasn't systemd. Devuan is a commendable project, but there are too many borderline unsupported programs I use already.
So the main difficulty was that /var and /home, the main candidates for pruning, had their own filesystem. I removed packages that were already queued for removal with "dpkg -r {package names}". Also I looked for programs as candidates for removal, and the Steam launcher was a good one. There weren't any other obvious contenders; it was the only program that had many files in a single package.
Eventually I used a live disk. With that I could relocate /usr to another partition. (gdisk, mkfs, cp -a, edit fstab). NB: I made a back-up of my root partition BUT I should have made a back-up of /var too, since it was on another partition. I wanted to update my system before moving it to a new filesystem/partition, because I wanted to use the new inline_data support for ext4. (I had to go through most of the trouble anyway.)
 
  


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
Upgrade to 13.1 causes segfault in program that ran under 13.0 tsg Slackware 15 03-15-2011 02:57 AM
Has anyone ran a bios upgrade under WINE? harryhaller Linux - Software 2 09-10-2008 07:37 AM
just ran upgrade-system and... xucaen Debian 10 10-09-2006 03:21 PM
Ran yum upgrade, now cannot boot billquinn Linux - General 1 12-03-2005 12:33 PM
Ran Swaret upgrade and lost sound Frank_Drebin Slackware 25 05-14-2004 08:38 AM

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

All times are GMT -5. The time now is 05:54 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