LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-10-2004, 06:43 AM   #1
fallen26
LQ Newbie
 
Registered: Jul 2004
Location: Pakistan
Posts: 4

Rep: Reputation: 0
no space left in /


Hi All,
i have setup a server in RH9, i have installed postgres and CGI on it, now the problem is the there is no space left in /, how can i increase space in / as i have empty space available in /boot and /tmp. how can i increase space in / as system is not allowing users to create database init.

regards

Asad
 
Old 08-10-2004, 07:00 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
This rather depends on how much space you have available.

If you've just made a clean install, then it may be tidiest to do a new install, repartitioning the hard disks giving more space to the / partition.

Otherwise, you can copy a directory recursively like this:
Code:
cp -rp --no-dereference /var/ /boot
This will create a copy of your /var directory under your /boot partition.
If this completes successfully (and you don't run out of space on /boot!) then you can delete the original /var/ partition with:
Code:
rm -rf /var
And then link /var to the copy (/boot/usr) with:
Code:
ln -h /var /boot/usr
Note: Don't do this with /usr unless you are very careful. Programs like the “ln” command live under /usr and deleting them while running could cause all sorts of problems.

Also, make sure that the directory you're linking isn't mounted as a seperate partition.

You may also be able to clean up some space by running
Code:
strip /usr/bin/*
to remove unused code and resources from your system executables.

You can gain some more space by using gzexe to compress executable files. They will uncompress into memory when you try to run them, so you take both a performance hit and a RAM hit.

If you have free space in /tmp and RAM to space, then you could try deleting everything under /tmp, unmounting it, remounting /tmp as a tmpfs (in-memory) filesystem (see this thread on tmpfs), and remounting the /tmp partition somewhere where you need more space.

Hope that helps,

— Robert J. Lee
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no space left on /var BUT THERE IS!! branden_burger Linux - Software 5 05-31-2005 01:44 AM
No space left on the device ashwinipahuja Programming 1 06-24-2004 12:05 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
Seeing HD space left? fusion1911 Slackware 5 10-04-2003 09:34 AM
space left SMB3Master Linux - General 2 09-30-2003 08:29 PM


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