Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Automounting USB NTFS drive
#1
This isn't strictly a moode problem, but with bookworm I'm not sure where to look for setting the mount parameters for a USB drive. Using the default settings, there's no problem reading the files or writing/editing using sudo, but I can't change the owner from root:root to pi:pi, or change the permissions to 777. The commands execute without errors, but the changes don't happen.

From the internet it seems that this is a characteristic of how a Windows formatted drive will automatically/default mount on a Linux system. There are solutions I can try, but I'm not sure where in the most current moode configuration the USB mount parameters are set.

Does anyone know how to have the system (auto)mount the USB drive with pi:pi ownership? 

Alternatively, does anyone know where I can find the parameters that control the mounting of USB drives in the moode/bookworm system configuration?

TIA
Michael

RPi4 —> HiFiBerry DAC+ —> Rotel RA01 —> Celestion DL8
Reply
#2
I believe that MoOde uses udisks2 to perform it's auto mounting.

It is possible to define default parameters for various types of mount in "/etc/udisks2/mount_options.conf".

There is an example file at "/etc/udisks2/mount_options.conf.example".

This may give you the ability to do what you want....

Full documentation of this is at "https://wiki.archlinux.org/title/Udisks"
Reply
#3
Moode uses udisks-glue for auto mounting. The config is in /etc/udisks-glue.conf

What format is the USB disk?
What usage scenario needs pi:pi as the owner?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(11-15-2024, 11:59 AM)Tim Curtis Wrote: Moode uses udisks-glue for auto mounting. The config is in /etc/udisks-glue.conf

What format is the USB disk?
What usage scenario needs pi:pi as the owner?

I'm transferring flac files onto the hard drive and I want to use WinSCP. I can't log in using root, and I can't write to the drive, or change the write permissions because the drive is in ntfs format (I used to plug it into my Windows machine when I was ripping CDs).

I either need to change the write permission or the owner, but I can't to either with the way the drive automounts. It's a known issue with ntfs, and it should be cureable with the write mount parameters.
Michael

RPi4 —> HiFiBerry DAC+ —> Rotel RA01 —> Celestion DL8
Reply
#5
Try changing the ntfs fmask and dmask params in /etc/udisks-glue.conf to 0000 which corresponds to 0777 (-rwxrwxrwx).
https://askubuntu.com/questions/429848/d...nt-options
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
(11-15-2024, 08:46 PM)Tim Curtis Wrote: Try changing the ntfs fmask and dmask params in /etc/udisks-glue.conf to 0000 which corresponds to 0777 (-rwxrwxrwx).
https://askubuntu.com/questions/429848/d...nt-options

Exactly what I was looking for. Worked like a charm. User Pi (and everyone else) now can write. No need to chown, but that should work if I wanted it to as well.

Thanks again, Tim!
Michael

RPi4 —> HiFiBerry DAC+ —> Rotel RA01 —> Celestion DL8
Reply


Forum Jump: