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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-29-2012, 02:38 AM
|
#1
|
Member
Registered: Nov 2007
Posts: 57
Rep:
|
compilation error, no free space, how to clean up?
I am unable to compile my codes. When I try I get this error:
Code:
fatal error: error writing to /tmp/ccU2CdiZ.s: No space left on device
compilation terminated.
If I do I get
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 188G 187G 0 100% /
none 3.9G 288K 3.9G 1% /dev
none 4.0G 0 4.0G 0% /dev/shm
none 4.0G 80K 4.0G 1% /var/run
none 4.0G 0 4.0G 0% /var/lock
none 4.0G 0 4.0G 0% /lib/init/rw
/dev/sda1 184M 25M 151M 14% /boot
/dev/sda7 267G 222G 32G 88% /home
which means there is plenty of space in my /home directory.
Only place seems to be occupied is /dev/sda6. Should that be cleared?
My /tmp has nothing in it.
Can anyone help?
Thanks
|
|
|
05-29-2012, 02:50 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
Your / directory is at 100% and that's why you're getting the error. Since /var/log is in there too, I'd start by looking there and do some cleaning up by removing old log files that might be taking up lots of space over time. Assuming you're using Ubuntu you might also remove all downloaded packages in /var/cache/apt by using
That for starters. Next look at whatever 'old' files you might have that can be deleted. There's nobody but you who knows what exactly you have on your system. Just 'compiling away' without cleaning up the house results in this.
Kind regards,
Eric
|
|
|
05-29-2012, 02:50 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
/ should be freed anyway, otherwise your system will die soon....
in the linux world there is a variable TMPDIR to define the dir to be used instead of /tmp.
see: http://gcc.gnu.org/onlinedocs/gcc/En...Variables.html
Last edited by pan64; 05-29-2012 at 02:56 AM.
Reason: additional info
|
|
|
05-29-2012, 03:04 AM
|
#4
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
Thanks. Actually the system is screwed up by some other users and I am not in a position right now to find out what they have done exactly. I am trying to clean it up and avoid a fresh installation. But I do not know what are the files that can be safely deleted. I did a , but did not make any difference.
EricTRA, you suggested deleting old files. Could you also suggest which directories I should look at to delete these files?
pan64, Thanks for your suggestion on TMPDIR. However I should free up my system anyway.
Thanks
|
|
|
05-29-2012, 03:08 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
you can try du -sh * in any dir to find which subdir contains most of that 188 GB
|
|
|
05-29-2012, 03:18 AM
|
#6
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
I did a du -sh * to find out the biggest directory. Except /home and /media everything else looks alright. Could you have a look and suggest what am I missing?
Code:
7.8M /bin
19M /boot
4.0K /cdrom
288K /dev
17M /etc
222G /home
0 /initrd.img
150M /lib
13M /lib32
0 /lib64
16K /lost+found
169G /media
4.0K /mnt
4.9G /opt
du: cannot access `/proc/3395/task/3395/fd/4': No such file or directory
du: cannot access `/proc/3395/task/3395/fdinfo/4': No such file or directory
du: cannot access `/proc/3395/fd/4': No such file or directory
du: cannot access `/proc/3395/fdinfo/4': No such file or directory
du: cannot access `/proc/6956': No such file or directory
du: cannot access `/proc/7019': No such file or directory
du: cannot access `/proc/7020': No such file or directory
0 /proc
8.9G /root
8.3M /sbin
4.0K /selinux
200K /srv
0 /sys
20K /tmp
3.5G /usr
273M /var
0 /vmlinuz
Thanks,
|
|
|
05-29-2012, 03:24 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
what is in /media?
|
|
|
05-29-2012, 03:34 AM
|
#8
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
It is an external hard drive connected. Could that be the issue?
|
|
|
05-29-2012, 03:42 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
no, an external drive cannot be the issue, just I'm not sure. In your original post you sent the result of df -h and there is no /media.
|
|
|
05-29-2012, 03:47 AM
|
#10
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
It was always connected. df -h shows the same output, i.e, without /media. What could be wrong?
|
|
|
05-29-2012, 03:52 AM
|
#11
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
so try: df -h /media/.
|
|
|
05-29-2012, 04:57 AM
|
#12
|
Member
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125
Rep:
|
Look like /media is not mounted to an external drive, it's just filling up your / (/dev/sda6)
|
|
|
05-29-2012, 05:11 AM
|
#13
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
This is what I get.
Code:
df -h /media/
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 188G 187G 0 100%
How to go ahead now?
|
|
|
05-29-2012, 05:13 AM
|
#14
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
so yes, it is not an external drive. Here is an idea:
You may mount your drive to /media1 or whatever and move the important content from /media.
|
|
|
05-29-2012, 06:34 AM
|
#15
|
Member
Registered: Nov 2007
Posts: 57
Original Poster
Rep:
|
I deleted some 8 GB stuff from /media and now this is what it looks like
Code:
df -h /media/
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 188G 180G 0 100% /
Can you imagine what is happening?
|
|
|
All times are GMT -5. The time now is 12:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|