You are not logged in.
Hi,
Here is what I did (as root), trying to free memory on 3.5GB root-partition:
# cp -a /usr/lib /home/sys/lib
# cd /usr
# mv lib lib.bak
# ln -s /home/sys/lib lib
zsh: command not found: lnNow, trying to execute any binary I get "no such file or directory". Providing the full path to the binary fails as well.
In panic, I've modified my $PATH. Also I tried to find solutions and tried the commands below.
# ldconfig -l -v /home/sys/lib/libc-2.22.so
# ldconfig -l -v /home/sys/lib/*My current $PATH is
# echo $PATH
/home/sys/lib/bin:/home/sys/lib:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/user/.texlive/2015/bin/i386-linux:/home/user/.texlive/bin/i386-linux:/home/sys/libCan someone help me back on track? The system is encrypted so booting a live-system seems not trivial. Would be my next resort though.
Last edited by panuh (2015-10-09 08:19:03)
Offline
I'm not sure if those ldconfig commands did the equivalent of this, but try setting your LD_LIBRARY_PATH to /home/sys/lib.
I have to say though, this procedure is poorly thought out and flawed. Symlinking /usr/lib to somewhere else will not work long term (if at all) -- as soon as you to update your system, you will find that pacman refuses to install anything to /usr/lib, due to the way it handles symlinks. Also, you really shouldn't be undertaking this sort of procedure on a running system.
A better solution would be to boot a LiveCD/USB, resize your partitions, and undo what you have just done. Alternatively, create a new partition for /usr (see the wiki for caveats though).
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks, WorMzy for your reply. It's definitely helpful for the future
I already assumed this was bad practice and expected problems but I didn't anticipate losing all access to the system.
Unfortunately I had to leave the machine and when I came back it had locked up completely (black screen) so I'll have to move on to fixing it via live-usb.
I've marked the thread as [ABANDONED] since the issue wasn't solved but can't be solved anymore either. I hope that's correct.
For the record, I was trying to move the /usr directory to the /home partition out of laziness.
Simply resizing the root partition was no option for me because in this eeepc 901 there are two storage units of which one only holds 3.5 GB. I installed the system on that one and decided to use the other, rather small 32GB drive as my /home. In the end I ran out of storage on the smaller drive.
I will probably move the whole system to the larger drive and put the tiny primary drive to some other use.
Last edited by panuh (2015-10-09 08:30:25)
Offline