Visit Our UNIX and Linux User Community


/usr is full


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory /usr is full
# 1  
Old 06-13-2002
Question /usr is full

My /usr partition ran out of space, now i'm sitting here and thinking what to do :(
What would be your suggestions? I have /home partition which is 20% full and I don't think that I will ever use the whole space. is there a way to resize my partitions without data loss?
What I was actually thinking in the beginning is to buy a new HDD, copy everything from my current /usr volume to my new HDD and then mount the new hdd instead of my old /usr. what do you think about this kind of solution?
Thanks in advance!
# 2  
Old 06-13-2002
Hi,
I would buy a new hdd, you'll need always new spaces.
ladwig
# 3  
Old 06-13-2002
How is your file system laid out?

Normally, /usr should not grow all that much (unless you are adding a load of software)

It may be that you just have 'junk' out there - but you must be careful about what you remove.

Check out the du command and find. Look for files created in the last few days, weeks, months to figure out what is causing the partition to fill.

See if you can change where these files need to be (especially if they are some type of logs or that sort)
# 4  
Old 06-13-2002
personally I don't use the info-pages so i removed them, probably just saved a few megs but that's at least something Smilie

just now I actually did a check on my own /usr partition and noticed some programs I never use.. For example the python programming language, which I haven't programmed in for a long time..
# 5  
Old 06-14-2002
well, my /usr wasn't that big big in the first place - 1.5GB I just installed RedHat 7.2 a week ago. installed only what I needed and I had 500mb left after installation. after that I just added few programs (zsh, opera, webmin...) and made some updates through redhat network update and ximian red carpet. now i have only 100mb left on my /usr. "du" didn't show any junk, just the stuff that is supposed to be there.
# 6  
Old 06-14-2002
One more way you can solve the problem you are having with by freeing the hdd space. This case solve your problem a lil-bit then the harder way " Buying a new HDD "

This command will print the number of blocks used by each directory and file in the root. Most likely, the largest number printed is where you should be looking. You can then cd to that directory, and examine it. If it has sub-directories, you might use:

find . -type d -exec du -s {} \;

You can search for "large" files by cd'ing to a suspect directory ( or even starting at /, if you must), and typing

find . -size +5000 -print

will print the names of all files over 5,000 blocks (2,560,000) bytes. This may find many, many files, so you might want to refine it with larger numbers. You might also want to sort it:

find / -size +2000 -exec ls -s{} \; | sort -nr | more


Check the largest and dummy files or directories that you confirmed not using it and remove. Might save your time and your Expenses a bit.
This User Gave Thanks to killerserv For This Post:
# 7  
Old 06-15-2002
yo, tnx for help everyone. found few dummy files and freed some 300mb. so I'm ok for some time now Smilie
tnx again

Previous Thread | Next Thread
Test Your Knowledge in Computers #193
Difficulty: Easy
Python was selected the Programming Language of the Year in 2007, 2010, and 2018.
True or False?

8 More Discussions You Might Find Interesting

1. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

2. AIX

100% Inode full with only 67% FS full.

AIX Version 6.1 and 7.1. I understand that when the OS initially creates the FS and inodes, its pretty strict, but not always tuned to a 1:1 ratio. I see the same thing when adding a whole disk LV to a separate device. It seems that when we expand a filesystem the inodes don't get tuned... (5 Replies)
Discussion started by: mrmurdock
5 Replies

3. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

4. Shell Programming and Scripting

How to extract strings from full path when full path is not fixed

/Path/snowbird9/nrfCompMgrRave1230100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird6/nrfCompMgrRave1220100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird14/nrfCompMgrRave920100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.... (0 Replies)
Discussion started by: Shirisha
0 Replies

5. Solaris

/usr/sap/psu file systems full.

Hi Ive been facing a prob today in SAP which is been installed in solaris .the prob is one of my file systems tat is /usr/sap/psu is gettin full.i chkd the file named core which gets generated so i was asked to delete that file after doing tat my file systems space was 90%,but the prob is that... (0 Replies)
Discussion started by: madanmeer
0 Replies

6. UNIX for Advanced & Expert Users

how can i use /usr/ucb/ps to give the full user

Hi, on solaris I need the full ps output, and process this. With /usr/ucb/ps auxwww I get the output as wanted, but the user is cut off to 8 long. With ps -o ruser I can get the full username, but I do not have the full output. Is it possible to get long output, with the full username? ... (1 Reply)
Discussion started by: dimpie
1 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. AIX

What is the cause of USR filesystem full

we are using aix 5.3 and we notice that the filesystem /usr is almost full. we have an oracle database running on the server.what are the cause why this filesystem is almost full.what should we do to free some space on this filesystem beside increase the size?thanks (4 Replies)
Discussion started by: paulexis
4 Replies

Featured Tech Videos