Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4146

General discussion • Moving /var/log to external disk?

$
0
0
What is the best way to redirect /var/log content to an external disk? I have seen two basic methods, but neither seems to work?

1) symbolic link? Say the mount path of the disk is /mnt/var/log, then:

Code:

# ln -s /var/log /mnt/var/log
2) mount bind?

Code:

# nano /etc/fstab/var/log /mnt/var/log none bind 0# mount -a
Any suggestions?

Statistics: Posted by Schorschi — Thu Sep 12, 2024 4:02 am



Viewing all articles
Browse latest Browse all 4146

Trending Articles