[GH-ISSUE #429] Using librespot with read-only filesystems #276

Closed
opened 2026-02-27 19:29:46 +03:00 by kerem · 1 comment
Owner

Originally created by @jamminen on GitHub (Jan 29, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/429

Hi all,
I got my raspberry pi 3 and Raspotify working OK, but I have now a problem after following these instructions:
https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79

First, Raspotify couldn't start. I figured I needed to modify /etc/fstab to include
tmpfs /var/cache tmpfs nosuid,nodev 0 0

(if I remember correctly)

Now Raspotify starts and I see it working using Spotify on a phone. Apparently I can also connect to it since I can see from logs that librespot tries to start playing, but librespot_playback panicks with an error "PermissionDenied" or something similar.

My question is, what do I need to change to make librespot work in my modified, read-only system?
(Sorry for not having the exact logs with me right now, I can add them later if needed)

Originally created by @jamminen on GitHub (Jan 29, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/429 Hi all, I got my raspberry pi 3 and Raspotify working OK, but I have now a problem after following these instructions: https://medium.com/swlh/make-your-raspberry-pi-file-system-read-only-raspbian-buster-c558694de79 First, Raspotify couldn't start. I figured I needed to modify /etc/fstab to include tmpfs /var/cache tmpfs nosuid,nodev 0 0 (if I remember correctly) Now Raspotify starts and I see it working using Spotify on a phone. Apparently I can also connect to it since I can see from logs that librespot tries to start playing, but librespot_playback panicks with an error "PermissionDenied" or something similar. My question is, what do I need to change to make librespot work in my modified, read-only system? (Sorry for not having the exact logs with me right now, I can add them later if needed)
kerem closed this issue 2026-02-27 19:29:46 +03:00
Author
Owner

@jamminen commented on GitHub (Jan 31, 2020):

I changed /etc/fstab to include
tmpfs /var tmpfs nosuid,nodev 0 0

so the whole folder /var was written to memory instead of only a few subfolders of /var. After this modification the system works.

<!-- gh-comment-id:580631640 --> @jamminen commented on GitHub (Jan 31, 2020): I changed /etc/fstab to include tmpfs /var tmpfs nosuid,nodev 0 0 so the whole folder /var was written to memory instead of only a few subfolders of /var. After this modification the system works.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#276
No description provided.