How do I get my Plex media server running on startup?

I just got this error

Error creating file system: Command-line ‘mkfs.exfat -n ‘External Storage’ '/ dev/sda1" exited with non-zero exit status 249:
stdout: °
exFAT format fail!
stderr: ‘input string is too long
*(udisks-error-quark, 0)

How do you suggest I split my 500 gb disk? 350-150? ext4-exfat

your using the partition-manager ? you deleted the existing partition and tried to create a new exfat-partition ? may you tell us in detail what you were doing. the error message without knowing from what application it rised isn’t helpful.

please post the output of

lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
1 Like

Sorry, i am using the gnome-disks-utility application for this. I formatted the entire disk and now am trying to create a new partition.

Output of lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME:

PATH           PTTYPE PARTTYPE                             FSTYPE PARTTYPENAME
/dev/loop0                                                        
/dev/loop1                                                        
/dev/loop2                                                        
/dev/loop3                                                        
/dev/loop4                                                        
/dev/loop5                                                        
/dev/loop6                                                        
/dev/loop7                                                        
/dev/loop8                                                        
/dev/loop9                                                        
/dev/sda       dos                                                
/dev/sda1      dos    0x83                                        Linux
/dev/nvme0n1   gpt                                                
/dev/nvme0n1p1 gpt    c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat   EFI System
/dev/nvme0n1p2 gpt    e3c9e316-0b5c-4db8-817d-f92df00215ae        Microsoft reserved
/dev/nvme0n1p3 gpt    ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ntfs   Microsoft basic data
/dev/nvme0n1p4 gpt    de94bba4-06d1-4d40-a16a-bfd50179d6ac ntfs   Windows recovery environment
/dev/nvme0n1p5 gpt    0fc63daf-8483-4772-8e79-3d69d8477de4 ext4   Linux filesystem

Also, what are these loops? Should they be there?

Use gparted. It’s much better. :wink:

Um, you would normally create the partitions first, and then format them. :wink:

They are just loopback devices in virtual memory, commonly used for mounting things like Snaps or filesystem images.

1 Like

shouldn’t you use gparted ?

attention: if you never used a partition manager in the past then please get some infos about it before using it. there are a lot of helpful basic videos at youtube for example.
gparted should be the choice at gnome

1 Like

Okay that worked. What should be the exfat-ext4 split?

Well, that’s up to you… How many more multimedia files are you looking to store, and just how much space do you want to share with Mickeysoft Windblows? :stuck_out_tongue:

Ever since i installed Manjaro ive been hooked so i doubt i will be using Mycrowloft Windoze much, so… 350-150 sounds good?

Make it 400/100. :wink:

Aye aye captain

1 Like

Edit: Don’t forget to create the mountpoints. I would propose /srv/mmedia for the multimedia stuff and perhaps /home/hydra/Exfat for the Wintendo stuff. :arrow_down:

sudo mkdir /srv/mmedia && mkdir /home/hydra/Exfat

Then, be sure that the exfat partition gets mounted with the proper ownership and permissions. And make sure that you add the nofail mount option in /etc/fstab for both of them, given that they’re on an external and thus removable storage medium. This mount option will prevent the system from stalling if the drive is not plugged in at boot time.

Again, once both partitions have been created and formatted, you should add these two lines to /etc/fstab — or adapt the lines if gparted added them itself — whereby you use the UUIDs that you glean from…

lsblk -o NAME,MOUNTPOINT,UUID

:arrow_down:

UUID=the-uuid-of-the-ext4-partition   /srv/mmedia        ext4   auto,nofail,defaults                                   0   0
UUID=the-uuid-of-the-exfat-partition  /home/hydra/Exfat  exfat  auto,nofail,uid=1000,gid=1000,utf8,umask=022,defaults  0   0
2 Likes

This has been of great help! Also how/where do i mount the windows partition on my internal SSD?

Ah, you could mount that under your $HOME as well, e.g. /home/hydra/Windows. Suggested /etc/fstab line below… :arrow_down:

UUID=the-uuid-of-the-windows-partition  /home/hydra/Windows  ntfs-3g  auto,nofail,uid=1000,gid=1000,utf8,umask=022,defaults  0   0

Be sure to use the ntfs-3g designation and not ntfs or ntfs3, because the latter two will ruin your filesystem.

Another thing to watch out for is that Fast Boot and Hybrid Sleep must be disabled in Windows, because with those enabled, Windows will not fully shut down its filesystems, leading the Linux kernel to believe that they are damaged and thus mounting them in read-only mode so as to prevent further damage.

1 Like

Ok im glad to say this worked amazingly. No hassles. Thanks a lot @Olli and @Aragorn . You all have been of immense help. Keep helping and supporting the community!

2 Likes

and @Mirdarthos as well, i couldnt tag you because of limit.

1 Like

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