- Disable the swap file
$ sudo sphys-swapfile swapoff - By modifing /etc/fstab, mount busy folders on external samba storage
- /home/user/Documents
- /var/www
- Selected folders on /var/log e.g. Apache2, custom cron
proc /proc proc defaults 0 0
Do 'sudo raspi-config' and make sure 'wait for network' is enabled for boot.
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
//storage/apps/rpi/www/ /var/www/ cifs credentials=/home/john/.smbcredentials,uid=www-data,gid=users,file_mode=0755,dir_mode=0755,iocharset=utf8,sec=ntlm 0 0
//storage/apps/rpi/log/apache2 /var/log/apache2 cifs credentials=/home/john/.smbcredentials,uid=root,gid=adm,file_mode=0755,dir_mode=0755,iocharset=utf8,sec=ntlm 0 0
//storage/apps/rpi/Documents /home/john/Documents cifs credentials=/home/john/.smbcredentials,uid=john,gid=john,file_mode=0755,dir_mode=0755,iocharset=utf8,sec=ntlm 0 0
//storage/apps/rpi/log/cron /var/log/cron cifs credentials=/home/john/.smbcredentials,uid=root,gid=adm,file_mode=0755,dir_mode=0755,iocharset=utf8,sec=ntlm 0 0 - /home/user/Documents
Reducing Flash card writes on RPi Raspbian
December 06, 2016
Reducing Flash card writes on RPi Raspbian
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment