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:
July 21: Defensive computing: Information security for individuals
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2005 Jun 27 11:57

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 /



> # cd /
> # mv /lib /usr/cruciallibs && ln -s /usr/cruciallibs /lib

And even if that works, when you reboot( / is mounted by the kernel)
and the system goes to mount /usr it will likely fail because mount(on my
systems at least) is linked to libraries which you moved to /usr and it can
no longer access.

ldd /bin/mount
        libblkid.so.1 => /lib/libblkid.so.1 (0x40021000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x40028000)
        libc.so.6 => /lib/libc.so.6 (0x4002b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Of course, it might not get that far:
ldd /sbin/init
        libc.so.6 => /lib/libc.so.6 (0x40021000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Or maybe you'd like to try a single user boot(/bin/sh)
ldd /bin/sh
        libncurses.so.5 => /lib/libncurses.so.5 (0x40021000)
        libdl.so.2 => /lib/libdl.so.2 (0x40060000)
        libc.so.6 => /lib/libc.so.6 (0x40063000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
(Obviously bash)

Now, you could probably make an initrd that mounts /usr or some other such
scheme, but I'd really recommend not moving /lib off the root drive, you're
generally asking for trouble.

-Steve Wormley



_______________________________________________
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:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.