На разделе /usr закончилось место
Как перенести часть файлов в другое место?
На разделе /usr закончилось место. В то же время на разделе /root его полно.
Перенес часть папок из /usr/share в папку /usr2/share (которую создал на разделе /)
После этого сделал линки на эти папки. Пример:
ln -s /usr2/share/doc /usr/share/doc
Пока перенес /usr/share/doc, /usr/share/fonts, /usr/share/skypeforlinux
First step was to find the top ten space hogs:
# cd /usr/share
# du -sm * | sort -rn | head -10
/usr/share/doc was 759MB on my system. Space that could be useful for other purposes. With *nix you can move things around without breaking things. In my case I had plenty of free space on /home which was on a different partition:
# mkdir -p /home/share/doc
# mv /usr/share/doc/* /home/share/doc
# rmdir /usr/share/doc
# ln -s /home/share/doc /usr/share/doc
If you are really desparate, you can always mount an external hard drive and perform a similar relocation process. The thing to watch for in that case is that you don't move anything critical to the system startup to the external drive. /usr/src is another candidate, but I wouldn't move /usr/lib, too risky.
Опубликовано