Jump to content

Library path


johnsonb

Recommended Posts

johnsonb

Hello. I changed PC's for Emby and I can no longer see the USB drive (contains all my media and my backup files form the plugin Backup). According to the HD utility in Mint the device is /dev/sdb1 mounted at /media/bj/System F  the media files are in Media 1. Before the PC change the path was and insane

 

/mnt/usb-ATA_ST3000DM001-1CH1_0123456789ABCDE-0:0-part1/Media1/ 

 

If I select edit mount point in the disk util I get the above path.

 

that does not work either. My experience with Linux is pretty minimal and that may be why this is difficult for me. I can see the USB drive in file manager as /media/bj/System F 

 

thanks

Edited by johnsonb
Link to comment
Share on other sites

mastrmind11

so emby can't see the mount, or nothing can see the mount?  

Link to comment
Share on other sites

johnsonb

so emby can't see the mount, or nothing can see the mount?  

Hello. Emby Library setup does not see the mount no matter how I enter it, I am sure the problem is me. I can see the USB drive in other application and utilities. Pix shows the drive as usb-ATA_ST3000DM001-1CH1:System F

 

I tied that however Emby does not see it. 

 

thanks

Link to comment
Share on other sites

mastrmind11

ok so check your permissions on the mount. i'm guessing since this is a new server that your emby user doesn't belong to the group that has read access to the drive.  

Link to comment
Share on other sites

johnsonb

ok so check your permissions on the mount. i'm guessing since this is a new server that your emby user doesn't belong to the group that has read access to the drive.  

 

Ok, I am a Linux newbie (used it awhile but literally know nothing about it) and Emby. Do I do the permissions via the Users and Groups app? I have no login, it logs in automatically. I see the the Emby group however I am unable to grant it permissions or any kind, there is no option. That options not there. The only user I have is me.

 

thanks

Link to comment
Share on other sites

johnsonb

ok so check your permissions on the mount. i'm guessing since this is a new server that your emby user doesn't belong to the group that has read access to the drive.  

 

I think I figured a bit out. There is an emby group Emby created. There is no Emby user. I figured out how to add to groups and maybe the permissions I need are in there. What do I do about the Emby user? I tried to create an emby user (exactly that - emby) and I was unable to, it would not add. I figure that is because of the emby group.

 

I looked at chmod settings however it's usb drive and I could not select the correct drive from a terminal.

 

thanks for the help. I really hope I can get this working, I love Emby.

 

 

 

thanks

Edited by johnsonb
Link to comment
Share on other sites

mastrmind11

I think I figured a bit out. There is an emby group Emby created. There is no Emby user. I figured out how to add to groups and maybe the permissions I need are in there. What do I do about the Emby user? I tried to create an emby user (exactly that - emby) and I was unable to, it would not add. I figure that is because of the emby group.

 

I looked at chmod settings however it's usb drive and I could not select the correct drive from a terminal.

 

thanks for the help. I really hope I can get this working, I love Emby.

 

 

 

thanks

ok, some progress then.  when emby is installed, it will create its own user named emby, which is probably why you couldn't create it (it already exists).  i have no idea how to do any of this in the GUI since I haven't touched a linux UI in 20 years.  but basically you need to get to the command line before you do anything.  figure out where your usb drive is mounted and cd to that mount point.  from the root of the mount type ls -l and paste the contents back here.

Link to comment
Share on other sites

johnsonb

ok, some progress then.  when emby is installed, it will create its own user named emby, which is probably why you couldn't create it (it already exists).  i have no idea how to do any of this in the GUI since I haven't touched a linux UI in 20 years.  but basically you need to get to the command line before you do anything.  figure out where your usb drive is mounted and cd to that mount point.  from the root of the mount type ls -l and paste the contents back here.

 

Oddly enough there is no emby user (only me Bj). In Users and Groups I can enter the data for users named emby however I am not allowed to create it. There is an emby group that Emby created.

 

My USB drive is sdb1. I hope this is what you asked for. The drive is  /bj/System F/Media I      where the movies are. I am not tied to System F or Media I If spaces matter. I am not sure where the name System F ever came from. I have an SSD I boot from, a DVD and the usb drive.

 

 

total 4

drwxr-x---+ 3 root root 4096 Jun 9 02:20 bj

 

Had a buddy once who used SCO. A few times I was there and asked him to show me around a bit. I got dizzy from the CLI and his comfort level. So my possible venture into some flavor of Unix was very short lived.

 

thanks 

Edited by johnsonb
Link to comment
Share on other sites

mastrmind11

Oddly enough there is no emby user (only me Bj). In Users and Groups I can enter the data for users named emby however I am not allowed to create it. There is an emby group that Emby created.

 

My USB drive is sdb1. I hope this is what you asked for. The drive is  /bj/System F/Media I      where the movies are. I am not tied to System F or Media I If spaces matter. I am not sure where the name System F ever came from. I have an SSD I boot from, a DVD and the usb drive.

 

 

total 4

drwxr-x---+ 3 root root 4096 Jun 9 02:20 bj

 

Had a buddy once who used SCO. A few times I was there and asked him to show me around a bit. I got dizzy from the CLI and his comfort level. So my possible venture into some flavor of Unix was very short lived.

 

thanks 

can you cd into bj and ls -l from there?  i can already tell you that the issue is permissions (and you have a weird ACL on the root folder too, but we can figure that out if it becomes an issue down the road).  the bj drive is set to root/root, which is why emby isn't happy.  let's see what the permissions are on the subfolders and go from there.

 

also while I think about it, assuming emby is running right now, can you paste the output after running this on the cli?  ps aux | grep emby

thanks

Link to comment
Share on other sites

johnsonb

can you cd into bj and ls -l from there?  i can already tell you that the issue is permissions (and you have a weird ACL on the root folder too, but we can figure that out if it becomes an issue down the road).  the bj drive is set to root/root, which is why emby isn't happy.  let's see what the permissions are on the subfolders and go from there.

 

also while I think about it, assuming emby is running right now, can you paste the output after running this on the cli?  ps aux | grep emby

thanks

 

Here it all is.

 

bj@HTPC-L:/media/bj$ ls -l
total 160
drwxrwxrwx 1 bj bj 163840 Jun  7 15:45 'System F'
 
 
j@HTPC-L:/home$ ps aux | grep emby
bj        5837  0.0  0.0  14424  1088 pts/0    S+   12:55   0:00 grep --color=auto emby
emby     30411  0.2  1.9 4352596 156628 ?      Ssl  08:15   0:48 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Link to comment
Share on other sites

johnsonb

can you cd into bj and ls -l from there?  i can already tell you that the issue is permissions (and you have a weird ACL on the root folder too, but we can figure that out if it becomes an issue down the road).  the bj drive is set to root/root, which is why emby isn't happy.  let's see what the permissions are on the subfolders and go from there.

 

also while I think about it, assuming emby is running right now, can you paste the output after running this on the cli?  ps aux | grep emby

thanks

 

Just a quick msg - I sincerely appreciate your time and effort as messy as this my file system is.

Edited by johnsonb
Link to comment
Share on other sites

mastrmind11

Just a quick msg - I sincerely appreciate your time and effort as messy as this my file system is.

no worries dude.  the community is part of what makes emby great.

 

so you can see the issue pretty clearly here.  your permissions are completely jammed up.  you can also see the output of the ps command that emby is running as emby.  you can confirm the emby user exists by typing emby id on the command line.  

 

so, you have a permission problem.  one of the issues with playing with external drives via the GUI is that it mounts everything in gui land, and gui land doesn't play very nicely with command line land.  so, if you want to do this the correct way we need to unmount it in the gui and mount it via the command line.  if thats the approach you want to take, there are a few more steps involved.  however, if you just want to test out permissions (which can be reverted), cd to the bj folder and run the command chgrp -R emby.  this will give emby read permission to everything on the drive while maintaining your user r/w permission.  this is a hack because ultimately you want to create a real group and add all the users to that group that should have read or read/write permission (saves a lot of manual modding down the road).  give that a try and it should work for you.  once confirmed, we can work through how to set this mess up the correct way.

Link to comment
Share on other sites

johnsonb

no worries dude.  the community is part of what makes emby great.

 

so you can see the issue pretty clearly here.  your permissions are completely jammed up.  you can also see the output of the ps command that emby is running as emby.  you can confirm the emby user exists by typing emby id on the command line.  

 

so, you have a permission problem.  one of the issues with playing with external drives via the GUI is that it mounts everything in gui land, and gui land doesn't play very nicely with command line land.  so, if you want to do this the correct way we need to unmount it in the gui and mount it via the command line.  if thats the approach you want to take, there are a few more steps involved.  however, if you just want to test out permissions (which can be reverted), cd to the bj folder and run the command chgrp -R emby.

 

That is interesting about GUI mount and CLI mount. 

 

Entering the command chgrp -R emby    gives me  chgrp: missing operand after emby

 

The emby user shows up in the command id just as you said it would. How can a user exist on a command line utility and it not show in the Users and Groups utility? 

 

that gives me uid=999(emby) gid=999(emby) groups=999(emby),44(video)

 

thanks

Edited by johnsonb
Link to comment
Share on other sites

mastrmind11

That is interesting about GUI mount and CLI mount. 

 

Entering the command chgrp -R emby    gives me  chgrp: missing operand after emby

 

The emby user shows up in the command id just as you said it would. How can a user exist on a command line utility and it not show in the Users and Groups utility? 

 

that gives me uid=999(emby) gid=999(emby) groups=999(emby),44(video)

 

thanks

sorry, it's complaining because I forgot to add the folder name to the command.  just add the folder name or a space dot at the end of the chgrp command.

 

The reason emby isn't showing up in your gui is because it's not a real OS user in the sense that it has no home directory.  Emby is whats referred to as a system user, which gives it permission to run, but not interact with the gui.  It is a way to segregate users for security.  

Link to comment
Share on other sites

johnsonb

sorry, it's complaining because I forgot to add the folder name to the command.  just add the folder name or a space dot at the end of the chgrp command.

 

The reason emby isn't showing up in your gui is because it's not a real OS user in the sense that it has no home directory.  Emby is whats referred to as a system user, which gives it permission to run, but not interact with the gui.  It is a way to segregate users for security.  

Link to comment
Share on other sites

johnsonb

 

sorry, it's complaining because I forgot to add the folder name to the command.  just add the folder name or a space dot at the end of the chgrp command.

 

The reason emby isn't showing up in your gui is because it's not a real OS user in the sense that it has no home directory.  Emby is whats referred to as a system user, which gives it permission to run, but not interact with the gui.  It is a way to segregate users for security.  

 

 

The directory under /media/bj/ is literally listed as 'System F'  I tried the chgrp command and I got scrolling screens of  /System F/directory_name/filename Operation not permitted

Link to comment
Share on other sites

mastrmind11

The directory under /media/bj/ is literally listed as 'System F'  I tried the chgrp command and I got scrolling screens of  /System F/directory_name/filename Operation not permitted

because you have to run it as root (since root is the user with the write access).

 

add sudo before the command and enter your password.

Link to comment
Share on other sites

johnsonb

no worries dude.  the community is part of what makes emby great.

 

so you can see the issue pretty clearly here.  your permissions are completely jammed up.  you can also see the output of the ps command that emby is running as emby.  you can confirm the emby user exists by typing emby id on the command line.  

 

so, you have a permission problem.  one of the issues with playing with external drives via the GUI is that it mounts everything in gui land, and gui land doesn't play very nicely with command line land.  so, if you want to do this the correct way we need to unmount it in the gui and mount it via the command line.  if thats the approach you want to take, there are a few more steps involved.  however, if you just want to test out permissions (which can be reverted), cd to the bj folder and run the command chgrp -R emby.  this will give emby read permission to everything on the drive while maintaining your user r/w permission.  this is a hack because ultimately you want to create a real group and add all the users to that group that should have read or read/write permission (saves a lot of manual modding down the road).  give that a try and it should work for you.  once confirmed, we can work through how to set this mess up the correct way.

 

Hi. A gloomy rain day here today. I entered /media/bj/chgrp -R emby 'System F'     and it worked away for 30 seconds or so. I was hopeful but Emby can still not see the directory. I restarted the Emby server just for good measure.

 

thanks

Link to comment
Share on other sites

johnsonb

because you have to run it as root (since root is the user with the write access).

 

add sudo before the command and enter your password.

 

thanks. That was it. I never thought of that.

Link to comment
Share on other sites

mastrmind11

thanks. That was it. I never thought of that.

you don't want to change the group of just the System F folder, you want to change it from the root directory or no one besides the root user will be able to see anything.

Link to comment
Share on other sites

johnsonb
On 6/10/2020 at 10:23 AM, mastrmind11 said:

you don't want to change the group of just the System F folder, you want to change it from the root directory or no one besides the root user will be able to see anything.

Hi. issued the command from the /media folder. So that should cover    /media/bj/System F/Media I     No luck. My file system is haunted, Emby still cannot see the directory's or files. I cannot imagine I would issue the command from /

Wouldn't that give the emby group access to my whole file system.

thanks

Link to comment
Share on other sites

mastrmind11
16 minutes ago, johnsonb said:

Hi. issued the command from the /media folder. So that should cover    /media/bj/System F/Media I     No luck. My file system is haunted, Emby still cannot see the directory's or files. I cannot imagine I would issue the command from /

Wouldn't that give the emby group access to my whole file system.

thanks

run the command from the root of the mount, not the root of your entire file system.  so yeah that what you did should cover it.  what is the output from ls -l now from /media and /bj?

Link to comment
Share on other sites

johnsonb
49 minutes ago, mastrmind11 said:

run the command from the root of the mount, not the root of your entire file system.  so yeah that what you did should cover it.  what is the output from ls -l now from /media and /bj?

ls -l from /media

total 4
drwxr-x---+ 3 root emby 4096 Jun 10 10:06 bj


ls -l from /media/bj

total 160
drwxrwxrwx 1 bj bj 163840 Jun  7 15:45 'System F'

Link to comment
Share on other sites

mastrmind11
16 minutes ago, johnsonb said:

ls -l from /media

total 4
drwxr-x---+ 3 root emby 4096 Jun 10 10:06 bj


ls -l from /media/bj

total 160
drwxrwxrwx 1 bj bj 163840 Jun  7 15:45 'System F'

yeah it didn't do the recursive change, which is odd.  you sure you did -R in the command?  if not no biggie, run it again, or just change each subfolder manually.  but that's your problem, /system F is still not emby

 

edit: acutally that permission is 777 on /bj so that should be everyone.

i bet it's the acl.

is there any reason why you're married to this file structure?  it might be easier to just rename/move some stuff around to get this set up properly.

Edited by mastrmind11
Link to comment
Share on other sites

johnsonb

Hi. I am not married to the file structure at all. The only problem changing it would be if I have to remove everything and do a re-format. If I can do a convert then I am all set. I am pretty sure Partition Magic offers file system conversion. It is a 3tb drive with 2tb filled.

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...