Our forum migration to Discourse is underway and scheduled to last through June 21. During the migration, the forums will be read-only, except for a single temporary forum (contents of which will not be getting transferred). Read our announcement post for more information about the forum migration.
Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Problems mounting volumes through rar2fs

alexbass32alexbass32 Members, Plex Pass Posts: 3 Plex Pass

Hi there,

I m a really newcomer in Linux so please apologize me if my problem has a very simple solution, lets start.

I m trying to mount a volume through the use of rar2fs and I m coming into the following problems:

alexbass@Baratalia:/$ sudo rar2fs /dev/sdc1 /home/alexbass/Pelis

rar2fs: invalid source and/or mount point

mount command with the same values works smoothly

sudo mount /dev/sdc1 /home/alexbass/Pelis

alexbass@Baratalia:/$ cd /home/alexbass/Pelis
alexbass@Baratalia:~/Pelis$ ls
Documentales Estrenos lost+found PelisCJ Pelis Español Pelis VO Series TV


I m unable to mount the desired volume through the use of rar2fs this can be simply because rar2fs is intended to mount folders and not volumes, but I will elaborate later

If I try to mount an existing folder it appear to work but in despite of the fact that I use the -o allow_other option, Plex is not able to find any of the folder contained in the mounted volume.

alexbass@Baratalia:~$ sudo rar2fs /home/alexbass/Pelis /home/alexbass/Pelis2 -o allow_other
rar2fs[3037]: mounted /home/alexbass/Pelis2
alexbass@Baratalia:~$ cd /home/alexbass/Pelis2
alexbass@Baratalia:~/Pelis2$ ls
Documentales Estrenos lost+found PelisCJ Pelis Español Pelis VO Series TV

/dev/sdb1 is the disk that i want to show to Plex


Below the output of df -h and fdisk -l commands:

alexbass@Baratalia:~$ df -h
S.ficheros Tamaño Usados Disp Uso% Montado en
udev 1,9G 12K 1,9G 1% /dev
tmpfs 375M 1,3M 374M 1% /run
/dev/dm-0 290G 7,8G 267G 3% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
none 5,0M 0 5,0M 0% /run/lock
none 1,9G 160K 1,9G 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sda1 236M 130M 94M 58% /boot
/dev/sdc1 1,8T 1,5T 251G 86% /media/Repo
/home/alexbass/.Private 290G 7,8G 267G 3% /home/alexbass
/dev/sdb1 1,9T 1,8T 111G 95% /media/alexbass/Seagate Exp
alexbass@Baratalia:~$ sudo fdisk -l
[sudo] password for alexbass:

Disco /dev/sda: 320.1 GB, 320072933376 bytes
255 cabezas, 63 sectores/pista, 38913 cilindros, 625142448 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x000b972d

Dispositivo Inicio Comienzo Fin Bloques Id Sistema
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 625141759 312320001 5 Extendida
/dev/sda5 501760 625141759 312320000 8e Linux LVM

Disco /dev/sdb: 2000.4 GB, 2000398933504 bytes
255 cabezas, 63 sectores/pista, 243201 cilindros, 3907029167 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x7f71f0bf

Dispositivo Inicio Comienzo Fin Bloques Id Sistema
/dev/sdb1 * 2048 3907024895 1953511424 af HFS / HFS+

Disco /dev/mapper/ubuntu--vg-root: 315.7 GB, 315722039296 bytes
255 cabezas, 63 sectores/pista, 38384 cilindros, 616644608 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x00000000

El disco /dev/mapper/ubuntu--vg-root no contiene una tabla de particiones válida

Disco /dev/mapper/ubuntu--vg-swap_1: 4072 MB, 4072669184 bytes
255 cabezas, 63 sectores/pista, 495 cilindros, 7954432 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x00000000

El disco /dev/mapper/ubuntu--vg-swap_1 no contiene una tabla de particiones válida

Disco /dev/sdc: 2000.4 GB, 2000396746752 bytes
255 cabezas, 63 sectores/pista, 243201 cilindros, 3907024896 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x00273bb2

Dispositivo Inicio Comienzo Fin Bloques Id Sistema

/dev/sdc1 2048 3907024895 1953511424 83 Linux

Thanks a lot for your help.

Tagged:

Answers

  • ChuckPAChuckPA Members, Plex Pass, Plex Ninja, Plex Team Member Posts: 22,850 Plex Team Member

    rar2fs reads a rar file then creates a mountable device. Once this device is created (the file opened), it can be mounted with the mount /dev/xxxxx /mount/someplace command. After mounted, you then set permissions so Plex can read it. "Read" permission is required. "Write" permission is never needed.

    Please DISABLE Verbose logging until requested

    Please search before posting

    Primary support: Linux, Synology, and QNAP

    Please remember to report back. This benefits others.

    Useful links

     Installation and Basic Setup |  Media Preparation (How to name your media files)  |  Linux Permissions 

     Handling TV Specials | Handling Movie extras  |  Nas Compatibility

     Reporting Plex Server issues | Plex Media Server FAQ | Linux Tips

     

    Other useful guides: Local Subtitles | The Plex "dance" | Synology FAQ | PMS Release Announcements

    Hosts: Fedora, QNAP, Synology, most Linux distros in VM

    No technical support via PM unless offered

    Please remember to mark the appropriate answer(s) which solved your issue.

     
  • NightNight Members, Plex Pass Posts: 521 Plex Pass
    edited July 2016

    Your fault is from you have not made the directory where you are mounting, and edit your command a bit to make it work better and with less overhead, eg like this
    so for your to work do this, you also need to mount sdc1 with the following command

    sudo mount /dev/sdc1 /mnt
    Then you need to find which name your system have assinged to it, and use that in your rar2fs.

    You also need to make a mountpoint directory for rar2fs like this(not from root user)
    mkdir /home/alexbass/Pelis

    finally you can use rar2fs
    sudo rar2fs -o allow_other --seek-length=2 /mnt/devicename /home/alexbass/Pelis/

    I've used this command on a system and it works flawlessly.
    rar2fs -o allow_other --seek-length=2 /mnt/8TB20160601/home/night/plex/mounts/mount1/

    Keep in mind rar2fs is READ ONLY, so you can not edit or write to the mounted rar2fs fstab-

    @ChuckPa -o command better way than permission for rar2fs in my experience.
    This will allow plex to work properly. with the -o allow_other no permission change is needed.

    Primary PMS: Ubuntu 16.10, 4.4. running on Intel i7 990x 3.7Ghz, 32GB ram passmark 9525. 
    Media Storage: Plex: Samsung 850Evo 500GB SSD, Media: shhh it's a secret 

    Network: 1000/1000mbit + IPv6
    Desktop Clients: 2x Windows, 1x Chromecast Ultra, 1x PS4

    Mobile Clients:  1x Samsung Galaxy S7 Edge 

    Remote Users: 8

  • alexbass32alexbass32 Members, Plex Pass Posts: 3 Plex Pass

    Dear @Night and @ChuckPa, thanks for your fast response.
    Following @Night instructions i succeded in mounting folder Pelis through the use of rar2fs, but anyway Plex is still unable to access the folder I guess it has something to do with permisions.

    Below result of command ls -l

    alexbass@Baratalia:~/Pelis$ ls -l
    total 68
    drwxrwxrwx 2 alexbass alexbass 4096 jul 14 15:37 Documentales
    drwxrwxrwx 30 alexbass alexbass 4096 jul 14 17:29 Estrenos
    drwxrwxrwx 2 alexbass alexbass 16384 mar 26 12:42 lost+found
    drwxrwxrwx 57 alexbass alexbass 20480 jul 14 17:33 PelisCJ
    drwxrwxrwx 90 alexbass alexbass 16384 jul 14 17:28 Pelis Español
    drwxrwxrwx 19 alexbass alexbass 4096 jul 14 15:46 Pelis VO
    drwxrwxrwx 29 alexbass alexbass 4096 jun 27 05:43 Series TV

    I run the command sudo chmod o=rwx Pelis

    To try to provide permisions to user Plex (I now only R was needed)

    Apparently nothing changed so I changed the permisions in the permisions tab of the folder in the graphic interface, since then every single folder an archive within the folder appear in underlined green, (as said I m very new in Linux and I dont really know what does it mean)

    The thing is that I can access the folder with the user alexbass but when I try to create a new Library in Plex, Plex cannot see any content in folder Pelis.

    I m pretty sure I m doing something wrong, thanks both for your help.

    Best.

  • NightNight Members, Plex Pass Posts: 521 Plex Pass
    edited July 2016

    by using the -o command in rar2fs, it should not be needed to change permissions, but try this

    sudo chown - R plex:plex dir

    plex is the user that should have read acccess, to the folders that rar2fs are mounting to. since that is the user that plex server is using.

    Please provide the rar2fs command you used to mount.

    Primary PMS: Ubuntu 16.10, 4.4. running on Intel i7 990x 3.7Ghz, 32GB ram passmark 9525. 
    Media Storage: Plex: Samsung 850Evo 500GB SSD, Media: shhh it's a secret 

    Network: 1000/1000mbit + IPv6
    Desktop Clients: 2x Windows, 1x Chromecast Ultra, 1x PS4

    Mobile Clients:  1x Samsung Galaxy S7 Edge 

    Remote Users: 8

  • alexbass32alexbass32 Members, Plex Pass Posts: 3 Plex Pass

    I used the sudo chown -R plex:plex dir and it started to change permissions although it stopped very soon saying "Changing property of """ Operation not allowed.

    chown: cambiando el propietario de «Pelis/Series TV/Modern Family/Season 7/Modern.Family.S07E18.SPANiSH.HDTV.x264-FCC/modern.family.s07e18.spanish.hdtv.x264-fcc.mp4»: Operación no permitida

    Anyway Plex is still unable to see the content of the folder.

    I used this to mount the unit

    sudo mount /dev/sdc1 /mnt
    263 ls
    264 fdisk -l
    265 sudo fdisk -l
    266 df -h
    267 sudo rar2fs -o allow_other --seek-length=2 /mnt /home/alexbass/Pelis/

    So I guess first thing will be set the proper permissions in folder in order to grant user alexbass property of all the files on it, while providind R rights to user Plex,

    Thanks again guys.

  • NightNight Members, Plex Pass Posts: 521 Plex Pass
    edited July 2016

    @alexbass32 said:
    I used the sudo chown -R plex:plex dir and it started to change permissions although it stopped very soon saying "Changing property of """ Operation not allowed.

    chown: cambiando el propietario de «Pelis/Series TV/Modern Family/Season 7/Modern.Family.S07E18.SPANiSH.HDTV.x264-FCC/modern.family.s07e18.spanish.hdtv.x264-fcc.mp4»: Operación no permitida

    Anyway Plex is still unable to see the content of the folder.

    I used this to mount the unit

    sudo mount /dev/sdc1 /mnt
    263 ls
    264 fdisk -l
    265 sudo fdisk -l
    266 df -h
    267 sudo rar2fs -o allow_other --seek-length=2 /mnt /home/alexbass/Pelis/

    So I guess first thing will be set the proper permissions in folder in order to grant user alexbass property of all the files on it, while providind R rights to user Plex,

    Thanks again guys.

    You don't want to mount your entire /mnt, only the "folde" in there which has the files you want eg /mnt/8TB20160601

    That would explain your permissions issue. also you neeed to use sudu chown that explains "Operación no permitida"

    Primary PMS: Ubuntu 16.10, 4.4. running on Intel i7 990x 3.7Ghz, 32GB ram passmark 9525. 
    Media Storage: Plex: Samsung 850Evo 500GB SSD, Media: shhh it's a secret 

    Network: 1000/1000mbit + IPv6
    Desktop Clients: 2x Windows, 1x Chromecast Ultra, 1x PS4

    Mobile Clients:  1x Samsung Galaxy S7 Edge 

    Remote Users: 8

  • eisendudeisendud Members, Plex Pass Posts: 3 Plex Pass

    Hallo

    Question: This rar2fs works great. And mount on bootup. But i wonder how to get rar2fs to mount or open up a .img or .iso inside a RAR system...
    Anyone?

    Eis

  • NightNight Members, Plex Pass Posts: 521 Plex Pass

    @eisendud said:
    Hallo

    Question: This rar2fs works great. And mount on bootup. But i wonder how to get rar2fs to mount or open up a .img or .iso inside a RAR system...
    Anyone?

    Eis

    `
    --img-type=".[;.;...]"
    additional image file type extensions

              The default image file types recognized by rar2fs  is  .img,  .nrg  and
              .iso.  This  option  will  allow  more  file extensions to be added. It
              affects the behavior of the --show-comp-img , --preopen-img and --fake-
              iso options.`
    

    That should be able to solve it for you,

    Primary PMS: Ubuntu 16.10, 4.4. running on Intel i7 990x 3.7Ghz, 32GB ram passmark 9525. 
    Media Storage: Plex: Samsung 850Evo 500GB SSD, Media: shhh it's a secret 

    Network: 1000/1000mbit + IPv6
    Desktop Clients: 2x Windows, 1x Chromecast Ultra, 1x PS4

    Mobile Clients:  1x Samsung Galaxy S7 Edge 

    Remote Users: 8

Sign In or Register to comment.