The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
soft link for directory in root FS solaris123 SUN Solaris 2 04-01-2008 03:25 AM
root directory ajantha UNIX for Dummies Questions & Answers 1 05-15-2007 09:02 AM
What change in freeBSD OS to allow root logging using ssh? 100days UNIX for Advanced & Expert Users 5 01-19-2006 07:39 PM
scripts in root directory stephen adebayo Shell Programming and Scripting 1 07-29-2005 06:02 AM
Moved root directory to tmp stufine UNIX for Dummies Questions & Answers 8 11-23-2004 04:27 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-29-2008
lmalinofsky lmalinofsky is offline
Registered User
  
 

Join Date: Jan 2008
Location: Simsbury, CT and Northampton, MA
Posts: 1
How to prune root directory FreeBSD 6.2?

Hello,

Somehow my FreeBSD server has filled up its root directory. FILELIGHT shows no free space. I have already gotten rid of /boot/GENERIC and /BOOT/kernel.old (thinking these were really in / and not just linked) but that did no good. I'm too much of a noob to know what to prune out of my / directory (which is only 512MB, but I don't want to have to try resizing it, since I see what that involves). Any help MUCH APPRECIATED!

BTW I can no longer boot in single user mode (I assume this is because I removed /boot/GENERIC?

Thanks,

Leon

PS My slices are /, /var, /tmp and /usr

My / directory listing shows as follows:

$ ls -al
total 333
drwxr-xr-x 24 root wheel 1024 Jan 29 11:33 .
drwxr-xr-x 24 root wheel 1024 Jan 29 11:33 ..
-rw-r--r-- 2 root wheel 801 Jan 12 2007 .cshrc
drwx------ 2 root wheel 512 Oct 23 07:32 .mozilla
-rw-r--r-- 2 root wheel 251 Jan 12 2007 .profile
drwxr-xr-x 2 root wheel 1024 Oct 23 07:11 bin
drwxr-xr-x 6 root wheel 512 Jan 29 11:55 boot
drwxr-xr-x 2 root wheel 512 Oct 23 07:11 cdrom
drwxr-xr-x 2 root wheel 512 Dec 19 11:13 command
lrwxr-xr-x 1 root wheel 10 Oct 23 07:15 compat -> usr/compat
dr-xr-xr-x 4 root wheel 512 Dec 31 1969 dev
drwxr-xr-x 2 root wheel 512 Oct 23 07:11 dist
-rw------- 1 root wheel 4096 Jan 17 09:44 entropy
drwxr-xr-x 18 root wheel 2560 Jan 29 09:32 etc
lrwxrwxrwx 1 root wheel 8 Oct 23 07:47 home -> usr/home
-rw------- 1 root wheel 262144 Jan 29 11:25 kdm-bin.core
drwxr-xr-x 3 root wheel 1024 Oct 23 07:11 lib
drwxr-xr-x 2 root wheel 512 Oct 23 07:11 libexec
drwxr-xr-x 2 root wheel 512 Jan 12 2007 media
drwxr-xr-x 13 root wheel 512 Jan 7 10:54 mnt
drwxr-xr-t 3 root wheel 512 Dec 19 10:28 package
dr-xr-xr-x 2 root wheel 512 Jan 12 2007 proc
drwxrwxrwx 40 root wheel 1536 Jan 7 11:16 product
drwxr-xr-x 2 root wheel 2560 Oct 23 07:11 rescue
drwxr-xr-x 12 root wheel 1024 Jan 29 11:56 root
drwxr-xr-x 2 root wheel 2560 Oct 23 07:11 sbin
drwxr-xr-x 2 root wheel 512 Dec 19 11:13 service
lrwxrwxrwx 1 root wheel 11 Oct 23 07:11 sys -> usr/src/sys
drwxrwxrwt 41 root wheel 1024 Jan 29 11:55 tmp
drwxr-xr-x 23 root wheel 512 Jan 23 09:14 usr
drwxr-xr-x 27 root wheel 512 Jan 29 06:51 var

Last edited by lmalinofsky; 01-29-2008 at 01:44 PM..
  #2 (permalink)  
Old 01-29-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
That core file would be a good place to start (kdm-bin.core).
Otherwise:
Code:
du -skd * / | sort -n
Then look at things with large sizes. If you wish, you can pick a big directory and run the du command again (replace / with the dir name) to see what's overly large in there.

Also, /product looks suspicious, it's publicly writable (incredibly bad) and not on it's own partition. I'd bet your problem is in there somewhere.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0