# Finding a misallocated file

**URL:** <https://forums.plex.tv/t/finding-a-misallocated-file/817379>\
**Category:** Plex Media Server\
**Tags:** server-linux, plex-web\
**Created:** [November 5, 2022, 4:54pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379 "2022-11-05T16:54:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![siggib007](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/siggib007/32/291694_2.png) [@siggib007](https://forums.plex.tv/u/siggib007)\
**Post date:** [November 5, 2022, 4:54pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/1 "2022-11-05T16:54:36Z")

</div>

Server Version#: 1.29.1.6316  
Player Version#:Web  
I have 712 titles on my Debian 11 based server as viewed from app.plex.tv site. There is one title I can not locate. I have verified that the file does exists in the media directory, filtered on duplicate and clicked into get info on every single duplicate file looking for this file without avail. I suspect it was incorrectly matched and it’s hiding amoungst my 712 titles under some name I suspect. What can I do to investigate this further?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 5, 2022, 5:00pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/2 "2022-11-05T17:00:28Z")

</div>

Start by pasting the actual file name of that file in here.  
Ideally including the folder path where it is located.  
Don’t forget to mention the type of the Plex library which is “looking” at that folder.

[https://support.plex.tv/articles/201543057-why-is-some-of-my-content-not-found/](https://support.plex.tv/articles/201543057-why-is-some-of-my-content-not-found/)

---

<div class="post-metadata">

**Author:** ![siggib007](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/siggib007/32/291694_2.png) [@siggib007](https://forums.plex.tv/u/siggib007)\
**Post date:** [November 5, 2022, 5:16pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/3 "2022-11-05T17:16:34Z")

</div>

/data/Media/Movies/K-M/LAKE\_HOUSE.m4v  
This is in a movies library, using Plex Movies as a scanner and agent.

---

<div class="post-metadata">

**Author:** ![siggib007](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/siggib007/32/291694_2.png) [@siggib007](https://forums.plex.tv/u/siggib007)\
**Post date:** [November 5, 2022, 5:19pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/4 "2022-11-05T17:19:16Z")

</div>

BTW that folder has 72 items and to my knowledge this is the only file I can not locate.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [November 5, 2022, 5:24pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/5 "2022-11-05T17:24:59Z")

</div>

You have naming issues.

My canned response is to see [https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/](https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/) and:  
If you want to save yourself a lot of time I would recommend using [Download - tinyMediaManager](https://www.tinymediamanager.org/download/release-v3/) and use `${title} (${year}) {imdb-${imdb}}` as the new name format.

Folder format:  
`${title} (${year})`

(Please note I linked to the v3 which is free to use)

Worst case you can do an export with [Releases · WebTools-NG/WebTools-NG · GitHub](https://github.com/WebTools-NG/WebTools-NG/releases) which should help you locate the miss-matched file. (You could also [plex dance](https://forums.plex.tv/t/the-plex-dance/197064) it, and then look at date added)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [November 5, 2022, 5:26pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/6 "2022-11-05T17:26:40Z")

</div>

4 issues:

- the folder `K-M` can throw off the scanner and try to to match the file to the folder name. Avoid these kinds of “grouping folders”. Instead, put every single movie into its own, individual folder.
- There is no good reason to use all-capital letters. Use the original spelling of this movie’s title. Look it up on [IMDb.com](http://IMDb.com) or [TheMovieDB.org](http://TheMovieDB.org) if you are unsure about it.
- add at least the movie’s theatrical release year in parentheses. Plex has no way to know which of the several “Lake House” movies you have there, unless you help it by specifying it further: [Find - IMDb](https://www.imdb.com/find?q=lake%20house&s=tt&ref_=fn_al_tt_mr)
- m4v files can contain embedded meta data which, if populated with spam, can throw off the scanner even more.  
Either check these tags thoroughly and clean them up or make sure to tell Plex to disregard them by disabling “Prefer local metadata” in the properties of the library.

So rename the file in this way:  
`/data/Media/Movies/Lake House (2010)/Lake House (2010).m4v`  
(change the release year to the actual one of your movie)  
Then perform the [Plex Dance](https://forums.plex.tv/t/the-plex-dance/197064) with it.

As told above, there is a naming guide for media, which is designed to prevent issues like this.

---

<div class="post-metadata">

**Author:** ![siggib007](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/siggib007/32/291694_2.png) [@siggib007](https://forums.plex.tv/u/siggib007)\
**Post date:** [November 5, 2022, 6:05pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/7 "2022-11-05T18:05:55Z")

</div>

While I appreciate your response and I acknowledge your good intention I am having a hard time seeing the logic in how 1 out of 72 titles in a folder isn’t imported due to a naming issue. Especially considering my entire library is structured the same way and was imported with around 98% accuracy.  
If I can just find what it was named as, like based on the filename, I can fix the match and all is good. Which is actually what my question was, how can I find a title that has been misnamed.  
I’m importing a library I already had in place, something I’ve had for years. Maybe about 1-2% of my entire library was misnamed and I was able to fix it by just fixing the match which was a lot less effort than renaming and reorganizing my entire library.  
FYI I did read that article prior to posting, and decided to post anyway as it was about as helpful as your answer.

---

<div class="post-metadata">

**Author:** ![siggib007](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/siggib007/32/291694_2.png) [@siggib007](https://forums.plex.tv/u/siggib007)\
**Post date:** [November 5, 2022, 6:42pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/8 "2022-11-05T18:42:28Z")

</div>

Thank you for that helpful and succinct response. That WebTools thing looks like the answer I was looking for. It’s not worst case, except it’s not a built in function, that’s actually the closest that comes to answer the question I asked.

---

<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:** [February 3, 2023, 6:42pm UTC](https://forums.plex.tv/t/finding-a-misallocated-file/817379/9 "2023-02-03T18:42:41Z")

</div>

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