我几乎完成了 Plex 媒体服务器的设置,但是在尝试安装外部 1.5TB(sdc)时出了点问题...它已安装到 ubuntu,但 Plex 看不到文件...
不知道该怎么做,所以我会给出sudo fdisk -l
、sudo blkid
和sudo gedit /etc/fstab
,希望这足以发现问题。
$ sudo gedit /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=2f16dad8-494b-4cce-b3d6-aead00238b17 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e881ffcf-37ab-43d1-b1a4-eb00581b7110 none swap sw 0 0
UUID=543E2FD13E2FAB46 /mnt/media_sdb1 ntfs-3g defaults 0 0
UUID=E46014BE6014997E /media/external ntfs-3g defaults,umask=0022,fmask=0133 0 0
$ sudo blkid
/dev/sda1: UUID="2f16dad8-494b-4cce-b3d6-aead00238b17" TYPE="ext4"
/dev/sda5: UUID="e881ffcf-37ab-43d1-b1a4-eb00581b7110" TYPE="swap"
/dev/sdb1: LABEL="I LOVE YOU !" UUID="543E2FD13E2FAB46" TYPE="ntfs"
/dev/sdc2: LABEL="KILLUMINATI - ONE" UUID="E46014BE6014997E" TYPE="ntfs"
$ sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007f670
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 471801855 235899904 83 Linux
/dev/sda2 471803902 488396799 8296449 5 Extended
/dev/sda5 471803904 488396799 8296448 82 Linux swap / Solaris
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x47d9be29
Device Boot Start End Blocks Id System
/dev/sdb1 2048 2930274303 1465136128 7 HPFS/NTFS/exFAT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 3907029167 1953514583+ ee GPT
答案1
我发现这一页简要介绍与 Plex 相关的 Linux 系统权限。从阅读中可以看出,Plex 确实创建了一个用户plex
来运行。如果您已将 Plex 配置为将媒体文件存储在外部驱动器上,则 Plex 需要权限才能访问存储在那里的文件。我不建议让 Plex 成为外部驱动器的所有者;在外部驱动器上创建一个目录来存储媒体,并将 Plex 指向该目录(您必须在 Plex 配置中执行此操作)。
sudo mkdir /media/external/plexmedia
sudo chown plex /media/eternal/plexmedia
sudo chmod 755 /media/external/plexmedia
答案2
尝试将 Plex 添加到 plugdev 组。
打开终端(按ControlAltT)并输入
sudo gpasswd -a plex plugdev
输入以下命令验证 plex 是否已添加到 plugdev 组:
groups plex
它应该显示 plex 属于哪些组。接下来,重新启动计算机并启动 plex 以验证这是否已解决问题。