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 > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2018, 08:11 AM   #1
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 858

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
"No space left on device" but supposedly I have about 5GB available


I have a separate /home partition.

Lately I began to get all kinds of "low disk space" alerts.

Today I got the same and bash began complaining about "No space left on device". But I had supposedly 3 GB available (according to filelight and also confirmed via df -h).

I moved a multi-gigabyte file out of the partition to no avail.

I use -current (64-bit) with AlienBob's Plasma 5 packages, in case this helps.

Can anyone help me locate the cause of this problem? Thanks in advance.
 
Old 04-25-2018, 08:24 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
You need 5% for the system. If you have a 20GB drive, having 3GB available would be OK. It it's a 1TB drive, not. What's the output of df -h? What's filling up, your /home partition or /?
 
Old 04-25-2018, 08:57 AM   #3
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 858

Original Poster
Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Quote:
Originally Posted by yancek View Post
You need 5% for the system. If you have a 20GB drive, having 3GB available would be OK. It it's a 1TB drive, not. What's the output of df -h? What's filling up, your /home partition or /?
The size of the physical drive is 256 GB (SSD).

The size of the partition is 47 GB. So, based on your parameters, I think I got plenty.

As for df -h output:

Code:
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            32M  1.3M   31M   4% /run
devtmpfs        8.0M     0  8.0M   0% /dev
/dev/sda6        50G   47G  916K 100% /
tmpfs           5.9G   64M  5.8G   2% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
/dev/sda7        48G   28G   18G  61% /home
/dev/sda2        96M   69M   28M  72% /boot/efi
Half of the SSD is occupied by a Windows partition which at this time is not mounted.
 
Old 04-25-2018, 09:04 AM   #4
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
While the system/root reserved is really useful on / (root) partition, maybe you will want to use at max your space within the /home partition.

IF you use EXT4, you have a way to remove this limitation:

Code:
tune2fs -r 0 /dev/sda7
To note that this command require a reboot or an umount/mount before to enjoy all your space as user.

I have the habit to use a similar command on any non-system partition, where I want any user to have full access to all space.

BTW, removing the reserved space has negative effects over the filesystem fragmentation. Not that this is so important for a SSD, but to take note about this misfeature.

Last edited by Darth Vader; 04-25-2018 at 09:05 AM.
 
1 members found this post helpful.
Old 04-25-2018, 09:06 AM   #5
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
I could bet the /tmp directory on sda6 is the cause of your problem.
 
1 members found this post helpful.
Old 04-25-2018, 09:09 AM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by elcore View Post
I could bet the /tmp directory on sda6 is the cause of your problem.
Yeah, also his root partition looks full.
 
Old 04-25-2018, 09:12 AM   #7
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 858

Original Poster
Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
I removed an old compilation directory from my root partition and cleaned the /tmp directory and now the problem seems to be gone. Thanks to all involved but I'll keep a close eye on my partitions.
Marking thread as solved (hopefully).
 
Old 04-25-2018, 12:35 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
I'd say the / partition looks full with less than 1MB available on a 50GB partition. I don't know what you are using the machine for but I've had systems installed for years and updated and never got to 15GB. Definitely something to keep an eye and at least now you know the source of the problem and how to treat it.
 
Old 04-25-2018, 12:42 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
If you have many small files, it could be that you've run out of inodes rather than out of free space.

To check:

df -i
 
4 members found this post 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
apt-get -f install fails due to "No space left on device" madkayaker Linux - Newbie 9 01-05-2014 09:39 PM
"No space left on device" - rootfs image build error sjremya Linux - Software 2 08-30-2010 12:16 AM
Moving a file into a large directory: "No space left on device" Jimantha Linux - General 2 09-09-2008 11:40 PM
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM

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

All times are GMT -5. The time now is 03:52 AM.

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