Les Partages de Memiks
Tag cloud
Picture wall
Daily
Plugins
  • ► Play Videos
RSS Feed
  • RSS Feed
  • ATOM Feed
  • Daily Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Display

Filter untagged links
Move /var/log from the / partition to the /home partition · GitHub https://gist.github.com/alghanmi/3181115
Sat Nov 24 19:26:40 2018 archive.org
QRCode

Moving /var/log from SSD on / to regular HDD on /home/var_log

http://backdrift.org/how-to-use-bind-mounts-in-linux

sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

sudo mkdir /home/var_log
sudo chown root:root /home/var_log/
sudo chmod 755 /home/var_log/

echo "# bind /var/log to /home/var_log" | sudo tee -a /etc/fstab
echo "/home/var_log /var/log none bind 0 0" | sudo tee -a /etc/fstab

sudo mv /var/log /home/var_log

sudo shutdown -r now

Pas mal ce petit script pour déplacer le /var/log hors du SSD (bon par contre j'ai adapté le "lieu" ;) ).

log move ssd
2987 links
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn