[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No space left on device



On Mon, Jul 14, 2003 at 12:51:55PM -0400, Salman Haq wrote:
> 
>  Hi,
> 
>  When trying to compile some code, I got the following error:
> 
> cpp0: /tmp/ccFJJwQN.ii: No space left on device
> 
>  I then realized that /tmp is mounted on my root partition, which was
> full:
> 
> #df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda3             463M  440M  1.0k 100% /
> /dev/hda5              37G  2.5G   32G   8% /usr
> 
> # df -ih
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/hda3               120k     20k    100k   17% /
> /dev/hda5               4.7M    149k    4.5M    4% /usr
> 
>  Now, I realize that this a very bad partition scheme but I'm just a
> newbie. When I was installing debian a few months ago, I didn't intend to
> have this scheme. I wanted root to be mounted as '/' and everything else
> under '/usr' since thats the bigger partition. Unfortunately, most of
> everything is mounted under '/'. I wonder where I went wrong...
> 
>  Can I change this situation, without re-formatting/re-partitioning? Or,
> atleast for now, which files can I safely delete to free-up some space?

I recommend you use one huge / partition. This way you won't run into
this type of problem. You can delete logs in /var/log to get some free
space, then I suggest you install parted which will allow you to change
the size of your partitions. I suggest you shrink your /usr partition
down to 5-10 gigs (I doubt you will install more software than this) and
increase / to use up the extra space.

The /usr partition is usually used to install software. The / partition
holds everything that doesn't have its own partition, like /home, /var,
/etc, etc.

Bijan

Attachment: pgpbCiPwH5yUo.pgp
Description: PGP signature


Reply to: