# Moving to a new Raspberry Pi

**URL:** <https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632>\
**Category:** Plex Media Server\
**Tags:** server-linux, server-linux-arm\
**Created:** [May 3, 2025, 5:48pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632 "2025-05-03T17:48:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [May 3, 2025, 5:48pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/1 "2025-05-03T17:48:35Z")

</div>

Server Version#: 1.41.6.9685  
Player Version#: N/A

I had Plex server running on an older raspberry pi with an old raspberry OS distribution. I wanted to move to a faster pi for various reason and refresh the install at the same time so built a new Pi, installed plex, copied the /var/lib/plexmediaserver/Library/ across and all the media (while it was stopped).

The new version of the OS has you login as a user other the pi, so the media now resides in /home/tom/Music rather than /home/pi/Music. I used chown -R plex:plex on /home/tom/Music and a chmod -R 755 on the same, and also did a chown -R on the Library as the permissions were wrong and everything was read only.

Upon start up, everything looks good, I can see the library, but nothing will play because it can’t find the files. Examining the paths everything is still looking for /home/pi/Music. A search of the guides etc suggests that I add the new location as a folder to the existing library, run Scan Library and I should be sorted…sadly not.

The location chooser can see /home/tom, but not Music inside of that. I can however type in the path /home/tom/Music, save it, run the scan, nothing.

I’m guessing I’ve probably got a permission issue, but not certain, and don’t know where to go from here.

Tom

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 3, 2025, 6:23pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/2 "2025-05-03T18:23:20Z")

</div>

Two things to do:

#### Fixing permissions:

1. For /var/lib/plexmediaserver (after having done the `chown`)

```auto
sudo find /var/lib/plexmediaserver -type d -exec chmod 755 {} \;
sudo find /var/lib/plexmediaserver -type f -exec chmod 644 {} \;

```

#### Media file permissions

– Same permissions as above for the media directories, with your username as the owner.

#### Changing media locations

For each library section

1. EDIT the section
2. ADD the new top level directory name (DO NOT REMOVE the old)
3. SAVE
4. Let it find the media at this new path and add that path to the DB
5. When complete,
6. EDIT the section again
7. DELETE the old directory path
8. SAVE
9. Let it remove the old path

When complete

1. Empty Trash
2. Clean Bundles
3. Optimize DB

---

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [May 3, 2025, 6:42pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/3 "2025-05-03T18:42:17Z")

</div>

> [@ChuckPa](#):
>
> `sudo find /var/lib/plexmediaserver -type f -exec chmod 644 {} \;`

Thanks for the quick reply, could you explain the Media files bit please? The lines before are chmod, but for media you say specify the user, so that would be chown? But you’re saying chown to tom:tom rather than plex:plex?

Tom

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 3, 2025, 7:38pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/4 "2025-05-03T19:38:23Z")

</div>

> [@ChuckPa](#):
>
> Same permissions as above for the media directories, with your username as the owner.

This one?

For media files,

1. You should own the media files ( e.g. `chown -R chuck:chuck xxxxx` )
2. You set 755 permission for all the directories (you have R/W/X, Plex has R/X)
3. You set 644 permission for all the files (You have RW, Plex only has R)

In Linux, non-privileged usernames need 'X" permission to reach into/through the directory. We don’t really “execute” a directory but we do “transit through” a directory.

Since `plex` is a non-privileged username, we need to grant it permission to read each directory and file as well as go deeper into each sub-directory (the scanner)

---

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [May 3, 2025, 8:02pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/5 "2025-05-03T20:02:29Z")

</div>

OK, that makes sense, so I now have

 ![image](https://global.discourse-cdn.com/plex/original/4X/4/f/6/4f6de1821cb9b69ff253ac1ff81b8ed90a14e30c.png)  
but when I try to add the location I get this  
 ![image](https://global.discourse-cdn.com/plex/original/4X/a/c/1/ac11a5cfa11b847dac2ab9316c599a4772b85588.png)  
suggesting that it can’t see Music, which has the permissions  
 ![image](https://global.discourse-cdn.com/plex/original/4X/3/b/f/3bf50f7d17fbe0a453b87cfd97e8c4625ad1bb5d.png)

If I add /Music on the end myself it doesn’t complain, but clicking Scan Library after does nothing - there is over 1.5GB so it should take a while I should image, but completes instantly.

Tom

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 3, 2025, 8:14pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/6 "2025-05-03T20:14:19Z")

</div>

sometimes `/home` is tricky.

1. `sudo chmod 755 /home`
2. `sudo chmod 755 /home/tom`

Now try.

Remember, Linux is strict about privacy. User `plex` can’t see `tom's` files unless `tom` gives permission

---

<div class="post-metadata">

**Author:** ![tomsimmons](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tomsimmons](https://forums.plex.tv/u/tomsimmons)\
**Post date:** [May 3, 2025, 8:24pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/7 "2025-05-03T20:24:20Z")

</div>

That’s got it!

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 1, 2025, 8:24pm UTC](https://forums.plex.tv/t/moving-to-a-new-raspberry-pi/916632/8 "2025-08-01T20:24:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
