Move folder to other location
Hello,
is it possible, for example, to move folder: /var/log/ to the location /media/card/log So any programm which write to /var/log is now wrinting to /media/card/log I know with mount I can mount a folder to a partition. But I need several different folder at /media/card which ist mounted from mmcblk0p1 Thank you! |
Quote:
|
Open /etc/fstab in your text editor, and add this line:
Code:
/media/card/log /var/log/ none bind Code:
sudo mount -a |
I think there are many older and newer programs that will try to write to /var. Not sure you can change it on that side. You might be able to copy or move contents based on some script. An idea at this. https://unix.stackexchange.com/quest...rent-directory
|
All times are GMT -5. The time now is 04:08 PM. |