Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to prune root directory FreeBSD 6.2? Post 302162611 by lmalinofsky on Tuesday 29th of January 2008 12:08:25 PM
Old 01-29-2008
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..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

scripts in root directory

Is it good practice to leave scripts in the root directory? if no, why is it not? (1 Reply)
Discussion started by: stephen adebayo
1 Replies

2. UNIX for Advanced & Expert Users

What change in freeBSD OS to allow root logging using ssh?

Hi everybody, ] I would like to ask just simpe and short question. I am using freeBSD 6.0 and Debian Sarge. From Debian console I can log as root using ssh to bsd mashine but not vice versa. When I say in bsd console su I got sorry output, it does not allow me to su to root when I am logged... (5 Replies)
Discussion started by: 100days
5 Replies

3. UNIX for Dummies Questions & Answers

root directory

root directory is going out of space. how can i free up memory by deleting unwanted file. which files are safe to remove.i checked tmp dir. also. but no files. thanks (1 Reply)
Discussion started by: ajantha
1 Replies

4. UNIX for Advanced & Expert Users

Damaged root directory ..

With the cpio command of a Unix File System for error I have replaced the directory “.. “ (when you give the command “ls -la” under root you see at the beginning the hidden directory “. “ followed by a hidden file who is called “..” ) I have the copy on a cartridge of the whole file system, but... (3 Replies)
Discussion started by: SISQUEZ
3 Replies

5. UNIX for Dummies Questions & Answers

How to display only Owner and directory/sub directory names under particular root

hai, I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc". (here "oasitqtc" is the owner of the directory or sub directory.) i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Discussion started by: gagan4599
6 Replies

6. Ubuntu

Root directory not available!

I am using Ubuntu 10.10. I want to access root home directory (~) through GUI and want access to its content. I login from administrator who is the only login user and have all rights for it. I can access the content through terminal but can't do it through GUI. Remedy my problem (5 Replies)
Discussion started by: nixhead
5 Replies

7. Web Development

What is a root directory

Hey guys. I am learning PHP and I just started a few minutes ago and it said after you maked your first hello world php file to upload it to your root directory in your webserver. What is your root directory? Is it where like all the appearance of the website is held (like what we see when we enter... (6 Replies)
Discussion started by: orszhak
6 Replies

8. Solaris

root directory is full

root directory in server / is full 100% , i already tried to delete any core file , log , .. still files under /proc directory take more than 4 G.. what you advice please i don't want to format the server and install again and re partition , i tried the FORMAT tools ! but it seems i cant do... (5 Replies)
Discussion started by: moata_u
5 Replies

9. UNIX for Dummies Questions & Answers

Removing directory with leading hyphen from root directory

I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p". # ls -l / total 198 <snip> drwxr-xr-x 4 root root 4096 Dec 3 14:18 opt drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: edstevens
2 Replies

10. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
UNTITLED
LOCAL UNTITLED NAME
glutMouseFunc -- Sets the mouse-button callback for the current window. LIBRARY
OpenGLUT - input SYNOPSIS
#include <openglut.h> void glutMouseFunc(void( *callback )( int button, int state, int x, int y )); PARAMETERS
callback Client hook for mouse-buttons. DESCRIPTION
Whenever a mouse button is pressed or released in an OpenGLUT window, OpenGLUT checks if that window has a mouse-button (Mouse) callback reg- istered. If so, OpenGLUT gives the event to the handler. button is the button number, starting from 0. state is GLUT_UP or GLUT_DOWN to indicate the button's new state. The other parameters are the mouse coordinates. Mouse wheel motion can be reported as buttons. If you do not request otherwise, a wheel spun forward will act like a button clicking down, immediately followed by clicking up. Spinning the same wheel backward will act like a different button clicking. Mouse wheel pseudo-buttons are added after all real buttons. While the button is held and the mouse is dragged, you receive mouse-motion events (glutMotionFunc()), even if the mouse is dragged out of the window. This callback is bound to the current window . CAVEATS
Reporting the wheel as buttons is actually inherited from X. freeglut added code to support this on WIN32. OpenGLUT inherited that support from freeglut. Old GLUT defines the symbols GLUT_LEFT_BUTTON, GLUT_RIGHT_BUTTON, and GLUT_MIDDLE_BUTTON. However, mice can have more than 3 buttons, so these symbols are deprecated. Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent. SEE ALSO
glutMotionFunc(3) glutPassiveMotionFunc(3) glutMouseWheelFunc(3) Epoch
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy