LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2015, 03:30 AM   #1
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Rep: Reputation: Disabled
No space left on device when doing update.


I was trying to do an update using Update Manager and I got the error message:

No space left on device), E:IO Error saving source cache, E:The package lists or status file could not be parsed or opened.

I have attached a copy of my disk usage and it shows root as 100%. I thought that I had put the Home folder on it's own partition but I guess not.

I have also included the results of the ls -l command but fail to see what is using the space.

I am using LinuxMint Linux version 3.11-2-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.1 (Debian 4.8.1-10) ) #1 SMP Debian 3.11.8-1 (2013-11-13)

Thanks for your help in advance.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-1.png
Views:	70
Size:	20.6 KB
ID:	17572   Click image for larger version

Name:	Screenshot-2.png
Views:	77
Size:	43.8 KB
ID:	17574  
 
Old 02-14-2015, 03:55 AM   #2
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
You have filled up your / but your separate /home, /var, /usr partitions have lot of space left. It's hard to tell what filled up your 42.7 G of /, most likely '/tmp' is out of space, required for the updates. At any rate post the output of inside CODE tags:
Code:
$ df -h
$ cd /
$ sudo du -sh --exclude={"/home","/var","/usr","/proc","/dev","/sys"} * | sort -h

Last edited by GNU/Linux; 02-14-2015 at 04:03 AM.
 
Old 02-14-2015, 07:38 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
I love `ncdu` for this sort of thing:
Code:
# ncdu -x /
Unfortunately it's not in the Mint repositories, but you could always just build it from source:
http://dev.yorhel.nl/ncdu
 
1 members found this post helpful.
Old 02-14-2015, 02:36 PM   #4
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
df results

[100]r@r / $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 20G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 377M 988K 376M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 754M 76K 754M 1% /run/shm
/dev/sda2 121G 22G 93G 19% /home
tmpfs 754M 164K 753M 1% /tmp
none 4.0K 0 4.0K 0% /sys/fs/cgroup
r@r / $
I had problems with the du exclude pattern. I looked at the man for it but still could not make it work.
[1]r@r / $ $ sudo du -sh --exclude={"/home","/var","/usr","/proc","/dev","/sys"} * | sort -h
$: command not found
r@r / $ sudo du -sh
du: cannot access ‘./proc/15833/task/15833/fd/4’: No such file or directory
du: cannot access ‘./proc/15833/task/15833/fdinfo/4’: No such file or directory
du: cannot access ‘./proc/15833/fd/4’: No such file or directory
du: cannot access ‘./proc/15833/fdinfo/4’: No such file or directory
40G .
[1]r@r / $
I downloaded ncdu and extracted it but I wasn't sure how to run it. I tried doing an apt-get install ncdu but I got the error 28
[100]r@r / $ sudo apt-get install ncdu
[sudo] password for r:
Reading package lists... Error!
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
[100]r@r / $
When I look at the properties for root it thinks that I have 140 Tb on my Lenovo Z560 which has about 320 Gb. Attached is a screenshot.
Thank you.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-- Properties.png
Views:	28
Size:	23.3 KB
ID:	17577  
 
Old 02-14-2015, 02:38 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,665

Rep: Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259
Could be a few reasons for lack of space. Be sure to look at all of the ideas like filesytem issues, recycle bin and temp files.

I'd run a filesystem check on it first maybe.

Last edited by jefro; 02-14-2015 at 02:39 PM.
 
Old 02-14-2015, 02:40 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by rstuff View Post
E: Write error - write (28: No space left on device)
D'oh!

Sorry, stupid suggestion...
:/
 
Old 02-14-2015, 02:43 PM   #7
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 812

Rep: Reputation: 216Reputation: 216Reputation: 216
An intuitive gui tool to analyze disk space usage is baobab. That's also in the mint repositories.
Unless it happens to be installed on your system you'll probably have to install it in a live session and run it from there.

Last edited by joe_2000; 02-14-2015 at 02:44 PM. Reason: typo
 
Old 02-14-2015, 03:18 PM   #8
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
My log file is over 15 Gb. Kern and syslog are both using over 6 Gb and messages are using over 3 Gb. When I tried looking at my messages with my log file viewer my laptop locked up and I had to reboot. I tried running fsck on sda1 but it told me that the device was mounted.
Thank you
 
Old 02-14-2015, 03:19 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'd run tests on the hdd, not just fsck.
I have a 160 gig drive that I dropped that say it's 2TB.
 
Old 02-14-2015, 03:58 PM   #10
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
You are not supposed to type in the $ before sudo..... It's the shell prompt. Now try without $, and use code tags. Switch to Advanced mode, and use '#' which will insert code tags.
 
Old 02-14-2015, 04:55 PM   #11
yx0p
LQ Newbie
 
Registered: Feb 2015
Posts: 14

Rep: Reputation: Disabled
Yeah like GNU/Linux has stated finding out what the sizes of the folders within the / directory will help determine where you need to look and what you can clear up.
 
Old 02-14-2015, 05:12 PM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I would say check in /var/cache/apt, if it's full run as root #
Quote:
apt-get clean
apt-get update
apt-get upgrade
or as user $
Quote:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

Last edited by EDDY1; 02-14-2015 at 05:16 PM.
 
Old 02-14-2015, 11:20 PM   #13
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
[100]r@r / $ sudo du -sh --exclude={"/home","/var","/usr","/proc","/dev","/sys"} * | sort -h
du: cannot access ‘proc/19775/task/19775/fd/4’: No such file or directory
du: cannot access ‘proc/19775/task/19775/fdinfo/4’: No such file or directory
du: cannot access ‘proc/19775/fd/4’: No such file or directory
du: cannot access ‘proc/19775/fdinfo/4’: No such file or directory
0 dev
0 initrd.img
0 proc
0 sys
0 vmlinuz
4.0K lib64
4.0K mnt
4.0K srv
8.0K media
16K lost+found
28K tmp
1.3M run
5.2M root
9.5M bin
11M sbin
25M etc
31M boot
140M opt
193M lib
3.9G usr
15G var
21G home
r@r /

I have lots to learn. I must have cut to much with my cut and paste.

I did run the clean, update, and upgrade suggested by Eddy1. It seemed to run ok for the most part. I did get some errors but I don't think they were because of being out of space.

Thanks to everyone for your help.
 
Old 02-15-2015, 12:18 AM   #14
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
I have something in my proc folder called kcore that is using 140.7 Gb.

-r-------- 1 root root 140737486262272 Feb 14 21:12 kcore
 
Old 02-15-2015, 01:14 AM   #15
rstuff
Member
 
Registered: Jul 2011
Posts: 115

Original Poster
Rep: Reputation: Disabled
Kcore is a virtual file. http://www.linuxquestions.org/questi...t-is-it-14251/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No space left on Device Fra123X Linux From Scratch 8 09-30-2013 05:36 AM
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 03:50 PM
[SOLVED] No space left on device TheIndependentAquarius Linux - Newbie 32 01-10-2011 12:14 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
No space left on device clintdavis Linux - Software 2 05-04-2006 11:38 PM


All times are GMT -5. The time now is 10:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration