More > JRiver Media Center 32 for Linux

Raspberry Pi Install Problem

<< < (8/9) > >>

BryanC:
Because /media/musicpi/Jukebox1 is not accessible by your unprivileged user 'musicpi' the OS or file manager is appending a 1 and mounting it to a new directory. What likely happened is that you had mounted it as root in the past and are now trying to mount as musicpi.

If you want to mount as an unprivileged user (recommended):

* Unmount the existing mount: `sudo umount /media/musicpi/JukeBox11`
* Chown the mount dir: `sudo chown musicpi:musicpi /media/musicpi/JukeBox1`
* Create an entry in /etc/fstab with the `user` option: UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0
* Remount: `mount /media/musicpi/JukeBox1`One-liner:


--- Code: ---sudo umount /media/musicpi/JukeBox11 && sudo chown musicpi:musicpi /media/musicpi/JukeBox1 && echo 'UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0' | sudo tee -a /etc/fstab && mount /media/musicpi/JukeBox1
--- End code ---


MonMul:

--- Quote from: BryanC on June 25, 2024, 07:20:06 pm ---Because /media/musicpi/Jukebox1 is not accessible by your unprivileged user 'musicpi' the OS or file manager is appending a 1 and mounting it to a new directory. What likely happened is that you had mounted it as root in the past and are now trying to mount as musicpi.

If you want to mount as an unprivileged user (recommended):

* Unmount the existing mount: `sudo umount /media/musicpi/JukeBox11`
* Chown the mount dir: `sudo chown musicpi:musicpi /media/musicpi/JukeBox1`
* Create an entry in /etc/fstab with the `user` option: UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0
* Remount: `mount /media/musicpi/Jukebox1`One-liner:


--- Code: ---sudo umount /media/musicpi/JukeBox11 && sudo chown musicpi:musicpi /media/musicpi/JukeBox1 && echo 'UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0' | sudo tee -a /etc/fstab && mount /media/musicpi/Jukebox1
--- End code ---

--- End quote ---

Thank you for that......but....!!!

musicpi@raspberrypi:~ $ sudo umount /media/musicpi/JukeBox11 && sudo chown musicpi:musicpi /media/musicpi/JukeBox1 && echo 'UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0' | sudo tee -a /etc/fstab && mount /media/musicpi/Jukebox1
UUID=0a9923e8-f4f1-414c-b973-3e4ff48b5644 /media/musicpi/JukeBox1 ext4 defaults,x-systemd.device-timeout=0,nofail,user 0 0
mount: /media/musicpi/Jukebox1: can't find in /etc/fstab.
musicpi@raspberrypi:~ $

BryanC:
Oops, had a typo in the last command: `mount /media/musicpi/JukeBox1`.

No need to rerun the one-liner again, just the mount command, your /etc/fstab should be good to go.

MonMul:

--- Quote from: BryanC on June 25, 2024, 07:47:05 pm ---Oops, had a typo in the last command: `mount /media/musicpi/JukeBox1`.

No need to rerun the one-liner again, just the mount command, your /etc/fstab should be good to go.

--- End quote ---

musicpi@raspberrypi:~ $ mount /media/musicpi/JukeBox1
mount: /media/musicpi/JukeBox1: /dev/sda already mounted on /media/musicpi/JukeBox1.
musicpi@raspberrypi:~ $

BryanC:
Hmm, that's not where it was mounted before, in any case this should fix it:


--- Code: ---sudo umount /media/musicpi/JukeBox1 && sudo chown musicpi:musicpi /media/musicpi/JukeBox1 && sudo systemctl daemon-reload && sudo mount -a
--- End code ---

Depending on the state of the permissions of your files in the /media/musicpi/JukeBox1 directory, you may also want to run `sudo chown musicpi:musicpi -R /media/musicpi/JukeBox1` after the disk has been mounted to set the correct user permissions so they are r/w by musicpi.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version