Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

So THAT's where all my diskspace went.

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Author
Message
bblount
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Mon Nov 08, 2004 2:21 pm

So THAT's where all my diskspace went.

  • Quote

Post by bblount » Mon May 19, 2008 9:31 pm

I have a 14G root partition with /usr and other large dirs split out to other partitions. I was having big problems with the root device filling up. Finally I started searching around to find where all the space is going and I find this in my home directory.
$ ll -trSa | tail
-rw------- 1 ben users 2.4G 2008-05-19 17:13 .xsession-errors
$ tail .xsession-errors > .xsession-errors

Problem solved. This file was filled with trivial errors like "received an error processing data from the DCOP server!".

I bet I'm not the only one who has had this happen. I'm going to add it to my logrotate to prevent it from happening in the future. I guess this should teach me not to keep /home on the same partition as /.

Code: Select all

ls -lh ~/.xsession-errors
Top
hitachi
Guru
Guru
Posts: 478
Joined: Mon Feb 20, 2006 11:24 am
Location: Freiburg / Deutschland

  • Quote

Post by hitachi » Tue May 20, 2008 7:02 am

How long have you been running your system. Maybe you should try to solve those errors. I am running my system for 8 Month now and .xsession-errors is only 12K big.
Top
Anarcho
Advocate
Advocate
User avatar
Posts: 2970
Joined: Sun Jun 06, 2004 7:51 pm
Location: Germany

  • Quote

Post by Anarcho » Wed May 21, 2008 9:34 am

One question:

You have splitted /usr from your root partition but not /home? I always go the other way round.

If I ever want to reformat my root partition (for whatever reason) I'm not in the need of backuping my home data and all settings.
...it's only Rock'n'Roll, but I like it!
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Wed May 21, 2008 12:39 pm

Do you have an example of log rotation configuration for such a beast? I would think some trickery will be necessary in the postrotate script, because logrotate is run as root, yet .xsession-errors has to be owned by you. I would also think that there would be some problems if you stay logged in during the logrotation, because I'm not sure if X is ready to receive a signal to reopen the .xsession-errors logfile. If you simply run log rotation, X will continue logging to the old inode. But in the meantime, logrotate will have renamed and gzipped it, so the inode will be orphaned. what was supposed to keep going into .xsession-errors will likely go into the bit-bucket. (actually an anonymous file, to be recovered on the next mount or fsck.) Not being logged in during logrotate would solve the latter problem, but the postrotate script will clearly have to handle the former.

Plus, if .xsession-errors is on a networked filesystem your problems are probably even worse, because root has usually has no authority there. (see root_squash on NFS, for instance.)
.sigs waste space and bandwidth
Top
bblount
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Mon Nov 08, 2004 2:21 pm

  • Quote

Post by bblount » Thu May 22, 2008 3:27 pm

@Anarcho: When I redo my partitions I am going to do it that way. You are right, it makes things much easier.

@Depontius: Very interesting, I didn't think about that. Would something like: `tail .xsession-errors > .xsession-errors` work or does that make a new inode as well?
Top
neuron
Advocate
Advocate
User avatar
Posts: 2371
Joined: Tue May 28, 2002 7:43 pm

  • Quote

Post by neuron » Thu May 22, 2008 4:07 pm

hmm, I've never had a big .xsession-errors, it fills to a point and then puts in "...Too much output, ignoring rest..."
Top
Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic