![]() |
Automounting USB NTFS drive - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: Automounting USB NTFS drive (/showthread.php?tid=7091) |
Automounting USB NTFS drive - MJR42 - 11-15-2024 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 RE: Automounting USB NTFS drive - Nykkuno - 11-15-2024 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" RE: Automounting USB NTFS drive - Tim Curtis - 11-15-2024 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? RE: Automounting USB NTFS drive - MJR42 - 11-15-2024 (11-15-2024, 11:59 AM)Tim Curtis Wrote: Moode uses udisks-glue for auto mounting. The config is in /etc/udisks-glue.conf 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. RE: Automounting USB NTFS drive - Tim Curtis - 11-15-2024 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/dmask-and-fmask-mount-options RE: Automounting USB NTFS drive - MJR42 - 11-15-2024 (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). 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! |