INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Raspberry Pi Install Problem  (Read 2316 times)

MonMul

  • Recent member
  • *
  • Posts: 38
Raspberry Pi Install Problem
« on: June 17, 2024, 04:47:30 am »

I have downloaded 32.0.53 on to my raspberry pi 3. Previous to this, I was running version Media Center 24 for many years satisfactorily. The download seemed to go well but just at the end I had  message which said that one file had not installed and that there was more information in the detailed report.....My question is where can I find the detailed report and how do I fix the situation?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72255
  • Where did I put my teeth?
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #2 on: June 17, 2024, 05:16:15 am »

Thanks for the link, but I cannot see anything there that might help me find our where the report on the file, which would not install, can be found.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7697
  • Autumn shade...
Re: Raspberry Pi Install Problem
« Reply #3 on: June 17, 2024, 06:33:03 am »

If installing from the terminal what error exactly do you see?
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04.1 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #4 on: June 17, 2024, 12:29:39 pm »

I have downloaded 32.0.53 on to my raspberry pi 3. Previous to this, I was running version Media Center 24 for many years satisfactorily. The download seemed to go well but just at the end I had  message which said that one file had not installed and that there was more information in the detailed report.....My question is where can I find the detailed report and how do I fix the situation?

You can see debug output by running `./installJRMC --debug`. Which distribution and version are you using?
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #5 on: June 17, 2024, 05:11:55 pm »

"If installing from the terminal what error exactly do you see?"


musicpi@raspberrypi:~/Downloads $ sudo dpkg -i MediaCenter-32.0.53-armhf.deb
(Reading database ... 101774 files and directories currently installed.)
Preparing to unpack MediaCenter-32.0.53-armhf.deb ...
Unpacking mediacenter32:armhf (32.0.53-armhf) ...
dpkg-deb (subprocess): decompressing archive 'MediaCenter-32.0.53-armhf.deb' (size=45852560) member 'data.tar': lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive MediaCenter-32.0.53-armhf.deb (--install):
 cannot copy extracted data for './usr/bin/mediacenter32' to '/usr/bin/mediacenter32.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 MediaCenter-32.0.53-armhf.deb
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #6 on: June 17, 2024, 05:13:50 pm »

You can see debug output by running `./installJRMC --debug`. Which distribution and version are you using?

Debian GNU/Linux 11 (bullseye)
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #7 on: June 17, 2024, 05:20:46 pm »

You can see debug output by running `./installJRMC --debug`. Which distribution and version are you using?

musicpi@raspberrypi:~/Downloads $ ./install MediaCenter-32.0.53-armhf.deb -debug
bash: ./install: No such file or directory
musicpi@raspberrypi:~/Downloads $ sudo dpkg -i MediaCenter-32.0.53-armhf.deb -debug
dpkg: error: cannot access archive '-debug': No such file or directory
musicpi@raspberrypi:~/Downloads $ ./installMediaCenter-32.0.53-armhf.deb -debug
bash: ./installMediaCenter-32.0.53-armhf.deb: No such file or directory
musicpi@raspberrypi:~/Downloads $ ./installJRMC -debug
bash: ./installJRMC: No such file or directory
musicpi@raspberrypi:~/Downloads $
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #8 on: June 17, 2024, 06:40:39 pm »

OK, wasn't sure if you were using native tools or my script.

It looks like your downloaded DEB file is possibly corrupt so you should try redownloading it.
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #9 on: June 17, 2024, 11:27:08 pm »

OK, wasn't sure if you were using native tools or my script.

It looks like your downloaded DEB file is possibly corrupt so you should try redownloading it.

See screenshot attached.....downloaded again...and got the same result!
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7697
  • Autumn shade...
Re: Raspberry Pi Install Problem
« Reply #10 on: June 18, 2024, 06:49:42 am »

You should probably use the installJRMC script instead of trying to manually install the .deb file in this case.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04.1 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13780
Re: Raspberry Pi Install Problem
« Reply #11 on: June 18, 2024, 08:21:25 am »

sudo dpkg -i MediaCenter-32.0.53-armhf.deb -debug

Don't add that switch to dpkg.

Also what architecture are you using?
cat /proc/version
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #12 on: June 18, 2024, 02:22:27 pm »

You should probably use the installJRMC script instead of trying to manually install the .deb file in this case.

Thank you for that suggestion, where will I find this script?
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #13 on: June 18, 2024, 02:42:00 pm »

sudo dpkg -i MediaCenter-32.0.53-armhf.deb -debug

Don't add that switch to dpkg.

Also what architecture are you using?
cat /proc/version

'
musicpi@raspberrypi:~/Downloads $ sudo dpkg -i MediaCenter-32.0.53-armhf.deb
(Reading database ... 106205 files and directories currently installed.)
Preparing to unpack MediaCenter-32.0.53-armhf.deb ...
Unpacking mediacenter32:armhf (32.0.53-armhf) over (32.0.53-armhf) ...
dpkg: dependency problems prevent configuration of mediacenter32:armhf:
 mediacenter32:armhf depends on python (>= 2.7) | python2 (>= 2.7) | python3.

dpkg: error processing package mediacenter32:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for shared-mime-info (2.0-1) ...
Errors were encountered while processing:
 mediacenter32:armhf

musicpi@raspberrypi:~/Downloads $ cat /proc/version
Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023
musicpi@raspberrypi:~/Downloads $
"
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7697
  • Autumn shade...
Re: Raspberry Pi Install Problem
« Reply #14 on: June 18, 2024, 02:53:11 pm »

You're trying to use the 32-bit armhf build on a 64-bit arm64 (aarch64) OS, which won't work unless multiarch support is enabled, which I would not recommend doing. Instead just download and use the arm64 build of MC32, which should then install and work fine. Make sure you uninstall the partially installed armhf version first (sudo apt remove mediacenter32:armhf).
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04.1 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #15 on: June 18, 2024, 06:38:42 pm »

You're trying to use the 32-bit armhf build on a 64-bit arm64 (aarch64) OS, which won't work unless multiarch support is enabled, which I would not recommend doing. Instead just download and use the arm64 build of MC32, which should then install and work fine. Make sure you uninstall the partially installed armhf version first (sudo apt remove mediacenter32:armhf).

Thank you for that suggestion, but I am afraid that did not work either! See attached screenshot.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7697
  • Autumn shade...
Re: Raspberry Pi Install Problem
« Reply #16 on: June 18, 2024, 07:05:21 pm »

Do a sudo apt-get install -f or sudo apt install vulkan-icd and that should install the dependency then try the install again.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04.1 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #17 on: June 18, 2024, 07:10:01 pm »

Do a sudo apt-get install -f or sudo apt install vulkan-icd and that should install the dependency then try the install again.

Thank you, that worked with no errors!
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #18 on: June 18, 2024, 07:26:56 pm »

Thank you, that worked with no errors!

Now ,I have two media centers on here MC 24 and MC 32....both working....I want to keep MC 24 for the time being ...just in case MC 32 has any problems. I cannot seem to find a StartUp Appliactions App on the RPi where I can switch from MC 24 to MC 32 as the start up option. What am I missing please?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7697
  • Autumn shade...
Re: Raspberry Pi Install Problem
« Reply #19 on: June 18, 2024, 07:35:36 pm »

Open MC24, go to MC24's Tools menu and select Options. In the Options window go to the Startup section and under Linux Startup if it Run on Linux startup: says Media Center, Media Server or Media Center and Media Server select Nothing then hit OK on the Options window then close MC24 and that should stop it from autostarting. If it already says nothing but it's autostarting try setting it to Media Center and press OK on the Options window then reopen the Options window and go back and set it to Nothing.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04.1 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #20 on: June 18, 2024, 07:40:28 pm »

Now ,I have two media centers on here MC 24 and MC 32....both working....I want to keep MC 24 for the time being ...just in case MC 32 has any problems. I cannot seem to find a StartUp Appliactions App on the RPi where I can switch from MC 24 to MC 32 as the start up option. What am I missing please?

Ah! found it under .config/autostart
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #21 on: June 18, 2024, 07:46:26 pm »

Open MC24, go to MC24's Tools menu and select Options. In the Options window go to the Startup section and under Linux Startup if it Run on Linux startup: says Media Center, Media Server or Media Center and Media Server select Nothing then hit OK on the Options window then close MC24 and that should stop it from autostarting. If it already says nothing but it's autostarting try setting it to Media Center and press OK on the Options window then reopen the Options window and go back and set it to Nothing.

Thank you so much for all your help, it is much appreciated....keep up the good work!
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #22 on: June 19, 2024, 02:45:55 am »

Thank you so much for all your help, it is much appreciated....keep up the good work!

OK, I seemed to have it all set up and running (as per MC24), I can see all the songs and the lists....but the darn thing will not play anything...it just refuses to play! I have tried with the hard disk connected directly to the RPi and with it connected through a powered hub. Through the hub I got one song from the playlist and then it would not play anymore....though I could see the songs etc....it just would not play! What am I missing please?
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #23 on: June 19, 2024, 05:50:35 am »

OK, I seemed to have it all set up and running (as per MC24), I can see all the songs and the lists....but the darn thing will not play anything...it just refuses to play! I have tried with the hard disk connected directly to the RPi and with it connected through a powered hub. Through the hub I got one song from the playlist and then it would not play anymore....though I could see the songs etc....it just would not play! What am I missing please?

So for example in the screenshot....despite clicking on play all...it only played the one piece and then stopped.....I must be doing something wrong....but this worked on MC 24!!
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #24 on: June 20, 2024, 10:49:09 am »

I would check that your library entries are pointing at the correct file location on your disk and that you have selected a proper Audio Output in the settings.
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #25 on: June 20, 2024, 11:04:47 pm »

Open MC24, go to MC24's Tools menu and select Options. In the Options window go to the Startup section and under Linux Startup if it Run on Linux startup: says Media Center, Media Server or Media Center and Media Server select Nothing then hit OK on the Options window then close MC24 and that should stop it from autostarting. If it already says nothing but it's autostarting try setting it to Media Center and press OK on the Options window then reopen the Options window and go back and set it to Nothing.

It appears, Awesome Donkey. that we have been down this path before....(see my latest posting on not being able to play any music).....https://yabb.jriver.com/interact/index.php/topic,118444.msg819447.html#msg819447

I am sure I took your advice then (6 years ago) and made a back up disk.....but I have no idea where to even start looking for it.

As I have the same sort of problem now, I guess the answer is to reformulate the sd, download MC again, and compile the library once more.....unless you have any further advice. The sd does not seem to be corrupted as far as I can tell....and I do have a back up somewhere of the library. Awaiting your very useful input (as always) before going down this road. Thank you for all your help over the years.
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #26 on: June 21, 2024, 12:18:07 am »

I would check that your library entries are pointing at the correct file location on your disk and that you have selected a proper Audio Output in the settings.

Yes that seems to be a problem, thank you for the pointer; as, when I try to play something directly from the Media Centre on the RPI I get the message "Check the filename in the library matches the filename on the disk". I am really not sure what this exactly means and how I go about doing that?
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #27 on: June 21, 2024, 12:32:25 am »

I would check that your library entries are pointing at the correct file location on your disk and that you have selected a proper Audio Output in the settings.

See attached
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13780
Re: Raspberry Pi Install Problem
« Reply #28 on: June 21, 2024, 08:23:35 am »

See attached
Is /media/musicpi/Jukebox1 mounted? Either it's not or it's not for the user you are running MC under.
From a terminal under the user running MC do:
mount | grep musicpi
report results.


Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #29 on: June 23, 2024, 11:38:46 pm »

Is /media/musicpi/Jukebox1 mounted? Either it's not or it's not for the user you are running MC under.
From a terminal under the user running MC do:
mount | grep musicpi
report results.

musicpi@raspberrypi:~ $ mount | grep musicpi
/dev/sda on /media/musicpi/JukeBox11 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
musicpi@raspberrypi:~ $

Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13780
Re: Raspberry Pi Install Problem
« Reply #30 on: June 24, 2024, 08:04:13 am »

musicpi@raspberrypi:~ $ mount | grep musicpi
/dev/sda on /media/musicpi/JukeBox11 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
musicpi@raspberrypi:~ $
I assume JukeBox11 above is a typo and you meant JukeBox1?

At any rate it looks like it is mounted as the root user.
Since it's an ext4 filesystem you need to change the permissions on mount (and files) to make it readable/writeable as the user or group MC is running under.
What does
ls -l /media/musicpi/JukeBox1
show?
What user are you running MC under (don't use root or sudo).

Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #31 on: June 24, 2024, 05:04:41 pm »

I assume JukeBox11 above is a typo and you meant JukeBox1?

At any rate it looks like it is mounted as the root user.
Since it's an ext4 filesystem you need to change the permissions on mount (and files) to make it readable/writeable as the user or group MC is running under.
What does
ls -l /media/musicpi/JukeBox1
show?
What user are you running MC under (don't use root or sudo).

musicpi@raspberrypi:~ $ ls -l /media/musicpi/JukeBox1
ls: cannot open directory '/media/musicpi/JukeBox1': Permission denied
musicpi@raspberrypi:~ $ whoami
musicpi
musicpi@raspberrypi:~ $

I just ran it again.....apparently it is not a typo....I am totally mystified as to how this might have happened. How do I correct this please!

musicpi@raspberrypi:~ $ mount | grep musicpi
/dev/sdb on /media/musicpi/JukeBox11 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
musicpi@raspberrypi:~ $

musicpi@raspberrypi:~ $ ls -l /media/musicpi
total 8
drwx------  2 root    root    4096 May  8 11:17 JukeBox1
drwxr-xr-x 28 musicpi musicpi 4096 Nov 21  2022 JukeBox11
musicpi@raspberrypi:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
PARTUUID=c944c51e-01  /boot           vfat    defaults          0       2
PARTUUID=c944c51e-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
musicpi@raspberrypi:~ $


Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #32 on: June 24, 2024, 05:29:56 pm »

musicpi@raspberrypi:~ $ ls -l /media/musicpi/JukeBox1
ls: cannot open directory '/media/musicpi/JukeBox1': Permission denied
musicpi@raspberrypi:~ $ whoami
musicpi
musicpi@raspberrypi:~ $

I just ran it again.....apparently it is not a typo....I am totally mystified as to how this might have happened. How do I correct this please!

musicpi@raspberrypi:~ $ mount | grep musicpi
/dev/sdb on /media/musicpi/JukeBox11 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
musicpi@raspberrypi:~ $

musicpi@raspberrypi:~ $ ls -l /media/musicpi
total 8
drwx------  2 root    root    4096 May  8 11:17 JukeBox1
drwxr-xr-x 28 musicpi musicpi 4096 Nov 21  2022 JukeBox11
musicpi@raspberrypi:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
PARTUUID=c944c51e-01  /boot           vfat    defaults          0       2
PARTUUID=c944c51e-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
musicpi@raspberrypi:~ $
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13780
Re: Raspberry Pi Install Problem
« Reply #33 on: June 25, 2024, 12:25:49 pm »


Your 2 screen shots doesn't really line up.
Your external drive is apparently mounted on JukeBox11 not JukeBox1
Do a
ls -l /media/musicpi/JukeBox11
and
sudo ls -l /media/musicpi/JukeBox1
and
sudo blkid

Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #34 on: June 25, 2024, 06:07:23 pm »

Your 2 screen shots doesn't really line up.
Your external drive is apparently mounted on JukeBox11 not JukeBox1
Do a
ls -l /media/musicpi/JukeBox11
and
sudo ls -l /media/musicpi/JukeBox1
and
sudo blkid

Something distinctly weird is indeed going on....I have no idea where the JukeBox11 came from...least, I don't remember!!

musicpi@raspberrypi:~ $ ls -l /media/musicpi/JukeBox11
total 112
drwxrwxrwx 126 musicpi musicpi  4096 Aug 19  2021  Blues
drwxrwxrwx   3 musicpi musicpi  4096 Sep 23  2011  Chinese
drwxrwxrwx  55 musicpi musicpi  4096 Apr  1  2017 'Classical Various'
drwxrwxrwx  43 musicpi musicpi  4096 Nov 20  2011  Country
drwxrwxrwx   3 musicpi musicpi  4096 Oct 19  2011  Economics
drwxrwxrwx  36 musicpi musicpi  4096 Jan 23  2013 'Female Singers'
drwxrwxrwx  88 musicpi musicpi  4096 Apr  1  2017  Folk
drwxrwxrwx   5 musicpi musicpi  4096 Sep 23  2011  French
drwxrwxrwx   3 musicpi musicpi  4096 Nov 20  2011  Guitars
drwxrwxrwx  30 musicpi musicpi  4096 Apr 30  2017  Irish
drwxrwxrwx 138 musicpi musicpi 12288 Nov 20  2011  Jazz
drwxrwxrwx   6 musicpi musicpi  4096 Nov 20  2011  Latin
drwxr-xr-x   2 musicpi musicpi  4096 Nov 22  2022  Library
drwxrwxrwx  12 musicpi musicpi  4096 Nov 20  2011  Musical
drwxrwxrwx   6 musicpi musicpi  4096 Nov 20  2011 'New Age'
drwxrwxrwx   3 musicpi musicpi  4096 Nov 20  2011  NZ
drwxrwxrwx  29 musicpi musicpi  4096 Aug 19  2021  Opera
drwxrwxrwx  65 musicpi musicpi  4096 Aug 19  2021  Pop
drwxrwxrwx  28 musicpi musicpi  4096 Nov 20  2011 'Punk etc'
drwxrwxrwx   9 musicpi musicpi  4096 Mar 26  2017 'Rap etc'
drwxrwxrwx   5 musicpi musicpi  4096 Nov 20  2011  Reggae
drwxrwxrwx 247 musicpi musicpi 12288 Nov 20  2011  Rock
drwxrwxrwx  73 musicpi musicpi  4096 Nov 20  2011  Soul
drwxrwxrwx   5 musicpi musicpi  4096 Aug 19  2021  Spoken
musicpi@raspberrypi:~ $ ls -l /media/musicpi/JukeBox1
ls: cannot open directory '/media/musicpi/JukeBox1': Permission denied
musicpi@raspberrypi:~ $ sudo blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="3772-58CD" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="c944c51e-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="ee7f279a-1fe9-4c98-9f3c-83c7173683b7" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="c944c51e-02"
/dev/sda: LABEL="JukeBox1" UUID="0a9923e8-f4f1-414c-b973-3e4ff48b5644" BLOCK_SIZE="4096" TYPE="ext4"
musicpi@raspberrypi:~ $
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #35 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: [Select]
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

Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #36 on: June 25, 2024, 07:34:53 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: [Select]
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

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:~ $

Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #37 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.
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #38 on: June 25, 2024, 07:59:50 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.

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

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2621
Re: Raspberry Pi Install Problem
« Reply #39 on: June 25, 2024, 08:04:28 pm »

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

Code: [Select]
sudo umount /media/musicpi/JukeBox1 && sudo chown musicpi:musicpi /media/musicpi/JukeBox1 && sudo systemctl daemon-reload && sudo mount -a
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.
Logged

MonMul

  • Recent member
  • *
  • Posts: 38
Re: Raspberry Pi Install Problem
« Reply #40 on: June 25, 2024, 08:22:06 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.

All seems to be working properly now, thank you so much for your time and your patience....I really appreciate it! You are a star!
Logged
Pages: [1]   Go Up