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

Steve Wormley steve at wormley.com
Mon Jun 27 11:53:56 PDT 2005


> # 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





More information about the vox-tech mailing list