I've noticed that raspbmc stores logs on SD card, not in tmpfs. Digging deeper I've discovered it was changed recently as the raspbmc changelog for June update says:

/tmp and /var/log no longer stored in ZRAM tmpfs

I don't understand this decision. SD cards have limited number of write cycles so I would expect raspbmc to store logs out of it.

I am concerned about my SD card lifetime and would like to keep it live as long as possible. Should I move logs directory back to memory filesystem or to external location (I have a NAS server in my network)?

  • 1
    Just a note -- it is completely absurd to believe that what happens in /var/log could ever wear out your SD card. You could leave it on 24/7 and the card will live longer than you if that's all it's doing. Much longer -- see unix.stackexchange.com/questions/84902/… for the general point ("logging is not significant enough to worry about") and the math that proves it. It just does not matter.
    – goldilocks
    Sep 1, 2013 at 10:39

1 Answer 1


If you remove persistent-logs from cmdline.txt, logs will be stored in a tmpfs again.

  • Thanks for your answer. Impressed with responsiveness of the raspbmc creator! But I still don't understand why you decided to store logs on SD card by default. I think most users don't need persistent logs and if they stay with the default settings their SD cards may quickly wear out. Sep 1, 2013 at 0:13
  • Hi, it's because a small tmpfs will hinder package installation via apt. Sep 1, 2013 at 0:25
  • @MikołajPastuszko : Most users do want persistent logging, even if they don't know it. It will not wear your SD card out and very likely one day will save you a pile of headaches.
    – goldilocks
    Sep 1, 2013 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.