Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd automount is trying to unmount storage when used #335

Open
EdiDD opened this issue Dec 14, 2024 · 3 comments
Open

Systemd automount is trying to unmount storage when used #335

EdiDD opened this issue Dec 14, 2024 · 3 comments

Comments

@EdiDD
Copy link

EdiDD commented Dec 14, 2024

systemd 252 (252.31-1~deb12u1)

[Automount]    
Where=/mnt/disk1
TimeoutIdleSec=10m
[Mount]
What=/dev/disk/by-uuid/...
Where=/mnt/disk1

When stream data are read by some process like watching movie from disk1 errors like below appears in log every 10m:

Failed unmounting mnt-disk1.mount
Failed to expire automount, ignoring: No such device

Systemd automount should try unmounting storage only if no other process is using it.

@lurch
Copy link
Collaborator

lurch commented Jan 9, 2025

So does anything actually go wrong, or is this just a warning message which you could ignore without any ill effects?
Are you sure that this is a bug specific to Raspberry Pi OS Bookworm, and not a bug with the upstream systemd project?

@EdiDD
Copy link
Author

EdiDD commented Jan 10, 2025

It is not a warning. These are errors flooding log (but without any harmful consequences). I don't know if it is specific only to Raspberry Pi OS Bookworm. I have also submitted this bug report to upstream systemd.

@lurch
Copy link
Collaborator

lurch commented Jan 14, 2025

Are you able to provide more detailed reproduction steps please? What software are you using to play the movie? Which logfile is getting flooded with errors?
I'm not very familiar with systemd and automount, but I found this guide which got me going. As a test I tried setting the timeout to just 20 seconds, and I found that simply opening a terminal window and cd-ing into /mnt/disk1 was enough to stop it automatically unmounting the disk.

I have also submitted this bug report to upstream systemd.

Could you provide a link here to that bug-report? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants