l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2005 Jun 27 17:35

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] I'm out of space on /
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] I'm out of space on /



Quoting Jay Strauss (me@heyjay.com):

> I'm out of space on /.  and the install is trying to write to /lib

[...]
> Will moving the contents of lib somewhere else, like /usr/mylib and soft 
> linking /lib->/usr/mylib work as a workaround?  Will my machine be able 
> to boot correctly?

I see no reason why not -- but personally I'd find some other
(long-term) solution.

Certain trees are part of the root filesystem for a very good reason,
and /lib is one of them.  The contents are libraries too critical to
system booting, maintenance, and recovery to be included in /usr/lib:
They're the ones you need available even if /usr cannot be mounted at
all.

Things that might more reasonably be moved off the root filesystem
include /boot, /home, /opt, /usr, and /var.

In your shoes I might move /lib off the root filesystem _briefly_ --
just long enough to give me enough free space on the root filesystem to
craft a better long-term solution.  (By preference, I would do that from
a bootable maintenance disk such as an LNX-BBC, Tom's Root-Boot, or
Knoppix disk.)  

You may also find the following Perl script ("largest20") useful, in
getting you some breathing room:  It finds and lists the biggest 20
files in the current directory or any subdirectory -- and can be
re-found as http://linuxmafia.com/pub/linux/utilities-general/largest20:


#!/usr/bin/perl -w
# You can alternatively just do:  
# find . -xdev -type f -print0 | xargs -r0 ls -l | sort -rn +4 | head -20
use File::Find;
@ARGV = $ENV{ PWD } unless @ARGV;
find ( sub { $size{ $File::Find::name } = -s if -f; }, @ARGV );
@sorted = sort { $size{ $b } <=> $size{ $a } } keys %size;
splice @sorted, 20 if @sorted > 20;
printf "%10d %s\n", $size{$_}, $_ for @sorted


If you can't find a way to reduce the contents of / down to comfortable
levels, I would strongly urge repartitioning your system -- since
running out of space on / is a serious problem.  Use one of the
aforementioned maintenance boot disks, then use one of the methods
detailed in "Copying Directory Trees" on http://linuxmafia.com/kb/Admin
to copy the contents of each filesystem to be re-created over to a
second system on your LAN.  Then, umount, use fdisk/cfdisk, mkfs.*, and
copy the contents back.

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!