LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-25-2007, 01:00 PM   #1
Koppie
Member
 
Registered: May 2006
Location: San Francisco, CA
Distribution: Kubuntu Feisty Fawn
Posts: 41

Rep: Reputation: 15
Partition filled up and now I can't start Xorg


I accidentally filled up my root partition and now Xorg won't start. I've cleaned out about 350 megs but still nothing. For some reason it won't let me view man pages either.

First I should explain I have a 60 gig hard drive divided into three partitions:
5 GB: windows (fat)
5 GB: linux (ext3)
1 GB: swap
45 GB: personal files (ext3)

My linux partition is the one that filled up. Now, when I reboot, I get to the KDM, but it won't let me actually log in. I can log on using the console, but when I startx it goes back to the command line. Other than missing some fonts, I can't tell what's wrong.

Now I'm going to miss class because I need to fix this. Sorry to sound like such a newb. Can anyone help me please?
 
Old 01-25-2007, 01:02 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
So what gives
df -h

and
ls -lad /tmp

(just a guess..)
 
Old 01-25-2007, 01:03 PM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
tail /var/log/Xorg.0.log would help also
tail ~/.xsession-errors

By the way, in kdm, to switch to the console type ctrl alt f1
 
Old 01-25-2007, 01:05 PM   #4
Koppie
Member
 
Registered: May 2006
Location: San Francisco, CA
Distribution: Kubuntu Feisty Fawn
Posts: 41

Original Poster
Rep: Reputation: 15
Ha ha, fixed it!

http://www.mail-archive.com/debian-u.../msg70667.html

Solution: sudo chmod 777 /tmp

When I was trying to clean out room on my hard drive, one of the things I did was delete the /tmp directory. Looks like Linux recreated it, but with the wrong permissions. Giving 777 permission allows Xorg to boot!

Sorry for the false alarm!

Edit: Thanks to nx5000 for the super-fast response!

Last edited by Koppie; 01-25-2007 at 01:17 PM.
 
Old 01-25-2007, 01:21 PM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You're welcome!
 
Old 01-25-2007, 01:44 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm glad you've got your system working again. Just a small point though, /tmp normally has permissions 1777, not 0777. This lets users create and delete their own files, but not the files belonging to other users.
 
Old 01-26-2007, 02:11 PM   #7
Koppie
Member
 
Registered: May 2006
Location: San Francisco, CA
Distribution: Kubuntu Feisty Fawn
Posts: 41

Original Poster
Rep: Reputation: 15
Hey, any tips on how to reduce the size of the installation? One nice thing on windows is it tells you how large your installed programs are. A linux install shouldn't need to fill up 5 gigs; how do I bring it back down again?

Thanks!
 
Old 01-26-2007, 02:22 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by Koppie
A linux install shouldn't need to fill up 5 gigs
That depends on what you're using it for...

You can use the Kubuntu package manager to see what is installed and then remove packages where you know what they do and also know you don't need them. For example if you have 2 web browsers, you can remove the one you don't use.

You can also use du to see where large disk usage occurs:
Code:
du -csh /*
If, for example, that tells you that there is a lot of space under /var being used:
Code:
du -csh /var/*
And so on until you see what is using up the space. If you know you don't need it, remove it (but don't guess).

Tools like logrotate can help manage disk usage by archiving and overwriting old copies of logs instead of just getting larger and larger.

Hope that helps...
 
  


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
xorg wont start any more lowebb Linux - General 1 08-23-2006 03:31 AM
My home partition is getting filled up by something. dYz Linux - Newbie 14 08-09-2006 09:44 AM
.xsession-errors filled my root partition now i cant boot suse10.0 64bit ianio Linux - Hardware 1 03-23-2006 04:40 AM
Xorg wont start mapster Linux - Newbie 4 09-17-2005 08:02 AM
xorg Won't Start!! Urgent!! kasra_23 Linux - Newbie 5 05-02-2005 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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