Jump to content

Change micro SD paths to memory mount paths - CUPS package


davigre

Recommended Posts

Sorry, I change this topic to the correct path:

 

http://forum.armbian.com/index.php/topic/630-change-micro-sd-paths-to-memory-mount-paths-cups-package/

 

I want to write microSD card as less as possible and CUPS package uses the following path's by default (although can be changed):

/var/cache/cups
/var/log/cups
/var/run/cups
/var/run/cups/printcap
/var/spool/cups
/var/spool/cups/tmp

But I think this paths are pointing to micro SD card (except .'/var/log') (or not?)

root@pcduino3nano:/etc/cups# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.3G  1.1G  6.0G  16% /
devtmpfs        500M     0  500M   0% /dev
tmpfs           128M  212K  128M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           128M     0  128M   0% /run/shm
tmpfs           256M     0  256M   0% /tmp
ramlog-tmpfs    256M  2.2M  254M   1% /var/log

Which is the best strategy so this path's points to memory and Not to microSD? 

 

I propose changing the path''s to something like '/tmp/cups/...', But I need to 'mkdir /tmp/cups/...' in the boot process after 'mount' but before CUPS start, How can I make this? I found that can be done in '/etc/rc.local' file. Is this correct ?

 

Thank you.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines