LinuxQuestions.org
Visit Jeremy's Blog.
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 12-19-2003, 11:52 AM   #1
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Rep: Reputation: 15
Unhappy Help needed. / is full!?


krs@Jenna:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 3804796 3638584 0 100% /
/dev/hda2 70929820 10336068 56932540 16% /home
krs@Jenna:~$



That is real just incase you're wondering or something. What could be takeing up so much room?? What do I do now!?
 
Old 12-19-2003, 12:10 PM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Try uninstalling stuff, deleting certain things from /var. Use 'du' to figure out where the big stuff is.
 
Old 12-19-2003, 12:14 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,309

Rep: Reputation: 139Reputation: 139
How big is your root partition and how long have you been running? One thing that can take up a lot of space is core dumps which you can get if you have segmentation faults while running a program. They're usually placed in the root directory and are hidden files named .core.xxxx. They can be safely deleted but you may need to be root to do so.
 
Old 12-19-2003, 12:30 PM   #4
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
My root dir (/) is about 4 GB. I have been running for less than 2 weeks though!

What is there in the /var folder?? Some of that stuff looks important to me. And how big can the core dumps be?? I don't have any. I did dir -all in / and all I got were folders, nothing hidden or special.

Last edited by Posty; 12-19-2003 at 12:32 PM.
 
Old 12-19-2003, 02:10 PM   #5
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
I tried in vain to uninstall Apache. I always thought that it was really big... it's not. My system's preformance is suffering now.

Someone in IRC told me about mount --bind or something. I don't know how to do this. Please, someone help me. This is urgent.
 
Old 12-19-2003, 02:15 PM   #6
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Run the following command as root:

# du / | sort n | tail -n 25 | sort nr

That will show you the 25 largest files. Post it here.

Also,
 
Old 12-19-2003, 02:16 PM   #7
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Also, what are you using this box for?
 
Old 12-19-2003, 02:19 PM   #8
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
This is just my desktop. My only PC. I use it for all my stuff. I don't run a server or anything like that. With the / partition being filled I am haveing trouble with some apps.

That command got me this:

root@Jenna:~# du | sort n | tail -n 25 | sort nr
sort: open failed: n: No such file or directory
sort: open failed: nr: No such file or directory
root@Jenna:~#

So yeah.
 
Old 12-19-2003, 03:05 PM   #9
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
Don't forget the '/' in the command...

du / | sort n | tail -n 25 | sort nr
 
Old 12-19-2003, 03:09 PM   #10
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
If this were me and my system I would start over. Back it all up and take a new approch. You have a 70+ gig drive it looks like. Put the bulk of your main install on there. Then you can put /var or /etc or whatever on the 4 gigger. Or you can make that something to the tune of /home/yourname/oggs, just keeping in mind that that directory can never exceed 4 gigs.

You could also put the swap file on that one.

You can try and remove files but what do you do in a couple weeks when you need to install a new program? Just avoid the upcoming headaches and reinstall.
 
Old 12-19-2003, 03:23 PM   #11
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
Damn... I can't believe I have to do this again. I am leaving tommrow morning on vacation for the holidays. I won't be back for a few weeks. I will have to do it then. Back up all of my stuff and then.. yeah.

But isn't there another way!? What about that mount --bind thing?? There HAS to be another way!
 
Old 12-19-2003, 03:33 PM   #12
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Switching your root & home? You have plenty of space on /home to copy the rest of the stuff on / onto there. Then delete the old root and put the home stuff there. You're not using too much space on that /home.
 
Old 12-19-2003, 04:03 PM   #13
Posty
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 62

Original Poster
Rep: Reputation: 15
No no... that wont work. I have too much stuff on my /home... and it grows more every day too. So that plan is not good...

What about resizeing the partitions? Is it possible to do that on ext3? If I boot with Knoppix I could probably use qtparted. Anyone know if this works?
 
Old 12-19-2003, 04:32 PM   #14
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Resizing is possible with resize2fs, but you can't move the beginning of the fs. So if your / comes first and the /home right after, the /home can't move to make space for /'s expansion. I have an idea. Shrink your home with resize2fs, and put the new / (or a /usr, that's probably taking alot of space) at the end of the disk. Resize2fs works by only resizing the ext filesystem, not the partition. You do that manually (& carefully) with fdisk. You use resize2fs to resize the filesystem. In fdisk ('fdisk -l') the partition will look the same, but when you do a df ('df -h') you'll notice the filesystem has shrunk. Now you use fdisk to destroy and recreate the partition with the smaller size. Careful; if you make the partition too small or do something else wierd, your data is toast. BTW, the /home IMO is still pretty big, split it in two or something, even if your going to keep the same stuff in that space.
 
Old 12-19-2003, 07:04 PM   #15
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Quote:
Originally posted by Tino27
Don't forget the '/' in the command...

du / | sort n | tail -n 25 | sort nr
I figured it would be cool to see the 25 biggest files on my drive, and was actually thinking of how to do this after trying the du command for the first time. However, I get the same errors:

root@dabasement:/home/scruff# du / | sort n | tail -n 25 | sort nr
sort: open failed: nr: No such file or directory

Whats the deal here? I can think of some variations I would like to use with this already, but I don't know why it's expecting 'nr' to be a directory. What's the ending nr for anyway?
 
  


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
Redhat Enterprise 3 - full install is needed. conm Linux - Software 2 07-02-2005 11:06 AM
My hd is full ... boumbo Fedora 3 02-20-2005 06:06 AM
Which distributions do not support --full-time for ls (ls --full-time)? GCS Linux - Distributions 0 07-28-2004 01:25 AM
Conexcant full driver needed :( the_imax Linux - Hardware 2 05-12-2004 09:12 AM
/ = 98.5% full lachlan Linux - Software 1 06-17-2002 04:37 AM


All times are GMT -5. The time now is 12:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration