Thanks for the clarifying, one question though, in that one liner the .cache dir is being copied not moved onto Live-usb-storage, so what's the benefit of that? Will I end up having two .cache dirs, one in /home and the other one in Live-usb with the same content? Sorry, I haven't used symlinks that much if any at all.Yep, the Live-usb-Storege folder is owned by the user, so you can move and symlink those to the Live-usb-storage folder:
Here a example one liner for the ~/.cache folderCode: Select all
cp -a ~/.cache ~/Live-usb-storage && mv ~/.cache ~/.cache.old && ln -s ~/Live-usb-storage/.cache ~/.cache && rm -r ~/.cache.old
Great! Thanks!Sure you can remove the kernel not used by the Live-init, do a remaster afterwards so it get cleared also from the linuxfs.
EDIT: Ok, I took a closer look at your one liner and I got what it does so I tried in some dirs in my /home, the biggest ones and now
Code: Select all
df -ih /home
S.ficheros Nodos-i NUsados NLibres NUso% Montado en
/dev/loop2 59K 480 58K 1% /home