bizzs 0 Posted April 1, 2023 Posted April 1, 2023 Hello everyone, I am linux novice and I am running emby on ubuntu 20.04. I installed a new sd sata hard drive and I added my old hard drive as a secondary because it has all my media. Ubuntu automatically mounted the second hard drive by itself to dev/sda2. I am trying to load the library back in to emby but I cannot locate the folder paths within the choices. I believe it may be a permissions problem and I need some guidance on how to change this. My user is "me" and the video path is: me@Tvh:/media/me/27cc144a-6f14-4c72-b0a8-60003ba868c6/home/Videos. What are the command lines I should use to get this fixed? Thanks
bizzs 0 Posted April 1, 2023 Author Posted April 1, 2023 I have read that and it did not help me Thnks Lisa
bizzs 0 Posted April 1, 2023 Author Posted April 1, 2023 I tried all kind of changes and I think I mucked it up.. Help?
Luke 39644 Posted April 1, 2023 Posted April 1, 2023 1 hour ago, bizzs said: I tried all kind of changes and I think I mucked it up.. Help? What exactly did you do? Why do you think you mucked it up?
woenk 62 Posted April 1, 2023 Posted April 1, 2023 When you type lsblk what du you get ? the path /media/me/27cc144a-6f14-4c72-b0a8-60003ba868c6/home/Videos looks really weird. would understand having the videos in the home directory, but normally there should still be the username below home and something like 27cc144a-6f14-4c72-b0a8-60003ba868c6 would drive me mad I would make a new directory under /media , something like "olddisk" and then a mount /dev/sda2 /media/olddisk. This should ensure that you definatley mounted that partition to the mountpoint. then look in there if the files are there and where they are. Something like "me@Tvh" should not be needed on a local storage, emby should give you the folder view of the local storage.
bizzs 0 Posted April 2, 2023 Author Posted April 2, 2023 woenk, I will try to explain this but maybe I am stating it wrong. My original drive was a 14tb. I had Ubuntu, emby and all my media installed on it. I switched out that 14tb drive and added a 2tb ssd as my main operating system with ubuntu 20.04 and emby reinstalled. I added the 14tb back as a slave drive because it had all my media on it. The 14tb was automatically mounted by ubuntu and I can read, write and execute all files without a problem. Ubuntu named the 14tb drive (dev/sda2) "27cc144a-6f14-4c72-b0a8-60003ba868c6" I am trying to set my library back up in emby but, emby is not seeing the 14tb drive. I opened terminal within the the 14tb and the path yo my media was /media/me/27cc144a-6f14-4c72-b0a8-60003ba868c6/home/Videos. I could not find that address within emby's library path choices so I tried to manually add that path into the emby library. It would not save that path address. This lead me to believe that either there is a permissions problem with emby not seeing this drive. I tried many terminal commands that were posted within the forums and nothing worked. From me messing with these commands, my 14tb drive is now owned by emby server and the user is displayed as emby. Any suggestions one what I should do to make emby see this drive without losing all the data on it? Thanks
bizzs 0 Posted April 2, 2023 Author Posted April 2, 2023 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 4K 1 loop /snap/bare/5 loop1 7:1 0 63.3M 1 loop /snap/core20/1828 loop2 7:2 0 63.3M 1 loop /snap/core20/1852 loop3 7:3 0 73M 1 loop /snap/core22/583 loop4 7:4 0 241.6M 1 loop /snap/firefox/2432 loop5 7:5 0 346.3M 1 loop /snap/gnome-3-38-2004/119 loop6 7:6 0 349.7M 1 loop /snap/gnome-3-38-2004/137 loop7 7:7 0 239.9M 1 loop /snap/firefox/2487 loop8 7:8 0 460.3M 1 loop /snap/gnome-42-2204/65 loop9 7:9 0 460.4M 1 loop /snap/gnome-42-2204/68 loop10 7:10 0 91.7M 1 loop /snap/gtk-common-themes/1535 loop11 7:11 0 45.9M 1 loop /snap/snap-store/638 loop12 7:12 0 49.8M 1 loop /snap/snapd/18357 loop13 7:13 0 304K 1 loop /snap/snapd-desktop-integration/49 loop14 7:14 0 428K 1 loop /snap/snapd-desktop-integration/57 loop15 7:15 0 49.8M 1 loop /snap/snapd/18596 sda 8:0 0 12.7T 0 disk ├─sda1 8:1 0 512M 0 part └─sda2 8:2 0 12.7T 0 part sdb 8:16 0 1.8T 0 disk ├─sdb1 8:17 0 512M 0 part /boot/efi └─sdb2 8:18 0 1.8T 0 part /var/snap/firefox/common/host-hunspell /
TMCsw 165 Posted April 2, 2023 Posted April 2, 2023 You need to mount the disk manually because Ubuntu/Debian does strange things with permissions on any thing mounted (auto or manually) under the /media directory. Fallow https://pimylifeup.com/raspberry-pi-mount-usb-drive/ (even though it’s for a Pi and usb it still applies). You can skip down to: Retrieving the Disk UUID and Type since you already know that it’s /dev/sda2 and i assume you know if it's NTFS/ext4...
bizzs 0 Posted April 3, 2023 Author Posted April 3, 2023 Thanks for the help guys, I remounted drive like you guys instructed and path is recognized. I got another problem and I will make a new post. Thanks Again!!
bizzs 0 Posted April 6, 2023 Author Posted April 6, 2023 Hello Guys, I got another problem with the mount. Everything was working great until the electricity went out and my server rebooted. When the reboot was finished, the drive was unmounted. I remounted it and then I attempted to reboot it, but it hangs up spinning. I have to manually shut down the server to allow it to boot back up, but the mount is gone. I have been researching google and messing with this all day and I cannot find a working solution. Needs some help please!! Luv you guys, Thanks Lisa
Junglejim 383 Posted April 6, 2023 Posted April 6, 2023 fstab is usually the place to mount drives, just google and I'm sure you will work it out.
Luke 39644 Posted April 6, 2023 Posted April 6, 2023 @bizzs please let us know if this helps. Thanks.
TMCsw 165 Posted April 6, 2023 Posted April 6, 2023 Yes the link I gave above explains how to set up the fstab But if that doesn't solve the problem, perhaps the power failure caused some kinda disk corruption? Then you should google for that or 'fsck'
bizzs 0 Posted April 6, 2023 Author Posted April 6, 2023 (edited) Thanks fellows for the responses. I have been messing around with this all day and this is what I did. I updated my system to Ubuntu 22.10. After I did this, I followed everyone's instructions and the google searches on mounting a hard drive. I must of tried hundreds of other people's ideas with zero results. Every time I changed something in the system and rebooted it, the system would hang and not reset. I would have to manually shut the system down over, and over so I decided to try something different. I formatted the main drive and reinstalled the current version of Ubuntu (TMCsw idea) and updated. I reinstalled the secondary hard drive and had the same results on reboot. The secondary hard drive just would not mount. I used a program on called gparted and deleted the primary boot sda1 from the secondary drive. I redid all this fstab stuff and mounted the sda2. I rebooted and the system and it was still hanging. I manually restarted the system and the secondary hard drive had stayed mounted. I thought everything was good and it was fixed. I thought wrong!! I reinstalled emby, other software and created all folders within root. I rebooted the system and its still hanging up. Anytime I change something in the system and reboot, or turn the system off, the screen hangs when exiting and the ubuntu symbol stays on screen with the circle scrolling. Any Ideas on what I should do to correct this? Could this be an Ubuntu bug of some sort? I never had this problem with the old version of Ubuntu and I think this problem has to do with the update to the 20.10. I need to fix this because I make changes by remote desktop and it is a pia to keep running up and down to the basement to manually restart my computer. Thanks Guys always for your help and input!! Lisa~ Edited April 6, 2023 by bizzs mispelling
TMCsw 165 Posted April 7, 2023 Posted April 7, 2023 3 hours ago, bizzs said: I formatted the main drive and reinstalled the current version of Ubuntu (TMCsw idea) and updated. Excuse me? where did i suggest or recommend that ?
Solution bizzs 0 Posted April 7, 2023 Author Solution Posted April 7, 2023 (edited) My apologies to TMCsw. Relax, I was half a sleep when I posted. I meant to write “fsck” I took it upon myself to format and reinstall. This process was not a big deal for me because the primary drive just had Ubuntu on it Luke, I noticed that anytime I add or change something within the system, including permissions the reboot will hang. For example, I installed Emby and VLC. I rebooted. It will exit out of Desk top like it’s going to reboot and the Ubuntu symbol wording displays with the circle spinning. It will not move past that point to a full reboot unless I manually push the power button to shut it off and turn it back in. I thought something was corrupted and I did the fsck LIKE TMCsw suggested (Got it right this time!!) This did not help so I formatted and reinstalled 22.10 many of times and the problem still exists. So, either I’m doing something wrong or this may be a bug with Ubuntu. Thoughts? Thank you Lisa Edited April 7, 2023 by bizzs Correct
bizzs 0 Posted April 7, 2023 Author Posted April 7, 2023 Hey all, I tried and tried to fix the ubuntu 20.10 power down problem with no success. I reinstalled and formatted the hard drive many times and my problem still existed. I came to the conclusion that there must be a bug within the 20.04 and 20.10. I decided to try linux mint 21.1 and everything seems to work fine. It reboots and powers down without hesitation and the secondary drive did mount and stayed mounted during rebbot. I am not familiar with mint, but it is user friendly. It is very time consuming trying to figure out where everything is located because I have been using ubuntu for many years. I hope to return to ubuntu whenever they decide to update. For now, I am now trying to get the Mullvad vpn to port foward. Mullvad sucks! I keep getting locked out of there website. Can anyone recommend a vpn service that uses openvpn linux with emby and has the port forwarding features?
dean6965 2 Posted June 2, 2024 Posted June 2, 2024 a free app to manage permissions instead of using the multipule comand solutions that dont work for everybody not terminal savy, the App is Eiciel and is so simple to use just click and add emby user to my media folder, https://rofi.roger-ferrer.org/eiciel/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now