External HDD Linux

/dev/sdb1 on /mnt type ext4 (rw,relatime)

so it took that.

that means what I have for /etc/fstab is correct.

cat /etc/fstab | grep sdb1

should return

/dev/sdb1    /disks/usb4T     ext4   defaults,auto,nofail,bg 1 2

indeed it does

ok, almost there.

sudo umount /mnt
sudo mount /disks/usb4T

hmm

mount: /disks/usb4T: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error

and directory /disks/usb4T exists? (ls -la /disks)

Also, which Linux distribution? It looks like Ubuntu. Is this Mint or some other derivative?

its ubuntu.

sh: 16: directory: not found

you forgot one of my commands:

sudo mkdir -p /disks/usb4T

now go back and issue the mount command

So I’ve just done sudo mkdir -p /disks/usb4T, followed by ```
sudo mount /disks/usb4T


I got the same error:
mount: /disks/usb4T: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.

I’m sorry but I’ve given you everything you need to know.

If you’re going to use LInux, you need to master these skills.

We’re here to help with PMS on Linux but we are not equipped or staffed to teach linux.

I can only suggest you avail yourself of google to search for how-to’s and other tutorials

PS: I’m sorry for the typing error with ``` take those off (just like we did elsewhere) and it should work

when i type
```
hello
```

it looks like

hello

That’s why i use it

Ok thanks for the assistance

Just me again. Finally managed to get it to mount to /disks/usb4T and stay mounted when I reboot! yay me. STEEP learning curve this has been for me.

On to permissions now (section f) which I am…you guessed it…struggling with.

Could you help me with the exact command Chuck? Would be ever grateful I’ve been tackling this all weekend lol.

Linux permissions are in two layers:

A. The permissions on the directories before you mount the external drive.
B. The permissions within the filesystem of the drive itself.
C. Where they meet, the mount point, must be handled for both individually.

  1. unmount the drive (you must do this first)
  2. sudo chown -R your_linux_name /disks (this makes your username the owner of the base directory)
  3. chown -R 755 /disks (This sets the permissions so you own the directories but PMS reads)
  4. sudo mount /disks/usb4T (mount it back up)
  5. Now we set all the permissions on the USB disk for you and PMS
find /disks/usb4T -type d -exec chmod 755 {} \;
find /disks/usb4T -type f -exec chmod 644 {} \;

What these two do are: Set permissions on the directories and files so you can r/w them but Plex can read them (only).

It worked!

Cheers mate really do appreciate it!

Having seen the level of skills needed here, now you have something to use as foundation for what you need master.

The number of tutorials out there and how-to’s (with demonstrations / experiments / self-help ) is staggering.

Linux is easy to learn if you take the time and start slowly. Master one skill before moving to the next. By this, I mean " see what /bin/ls can do. It will amaze you.

Linux has a built-in electronic manual. man ls will give you ALL the options and their usages.

As much as it was troubling, I did enjoy finally managing to crack it in the end.

Like you say, I now have something small that I can build on.

Once again, thank you.

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