Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
so i have got my server up and running and my 3TB hdd is shared over my network over samba, now comes streaming media via plex as well as a few other minor detail such as the second hdd not auto mounting on restart.
so i have been reading about editing my fstab file so that devices automatically mount on boot this subject first came up when searching why i can not find any sub directories in Plex while using the browse option to set up libraries (see article here: http://ubuntuforums.org/showthread.php?t=2087341 )
i attempted to edit my fstab and i had horrible results i had to remove the add'd line so i must have done something wrong, what im hoping for is that someone can help me write the line that i do need to add in the fstab so i dont make this error again.
i have no idea what a umask is but in a quick google search it said it assigns read and write permissions.....personally seeing as how this drive is also my samba drive as well as where my media is stored i would like read write and execute privileges to it when it is auto mounted.
so what im looking for is is this peice of code ready to copy and paste right to my fstab file? what would you guys change about it? i didnt do anything crazy that will screw something up like to many spaces or anything did i?
i have been known to not have correct linux punctuations shall we call it? before where to many spaces screwed me up every time in the CLI
Only one group can be given here. The mounted disk will belong to the user and group specified, like any file does. Do an ls -l in any directory and you will see what I mean. Each file belongs to one user and one group. If you want the disk to belong to you, it's easiest to use your login group. But in practice you seldom need to give these options; the default ones usually work just fine.
A umask is simply a mask which determines the default permissions of any new files created on the disk.
Last edited by hazel; 03-21-2016 at 02:58 AM.
Reason: Wrong information edited out.
The uid, gid, and umask options do not apply to Linux native filesystems like ext2/3/4. They are for filesystems like FAT that don't support Unix-style ownership and permissions. To set ownership and permissions in ext2/3/4 filesystems, use chown, chgrp, and chmod while the filesystem is mounted.
As was mentioned before, you should not use both LABEL and UUID. Use one or the other.
The fstab format does not support quoted strings. The quote characters will be taken literally. To represent a space character, use its octal escape %040.
for example, but you should know what do you really need:
UUID=686f24ec-b686-4dda-b4b6-0a69a2d6602e /media/korn16ftl3/Network_Storage/ type=ext4 sync,auto,rw 0 0
take care about that space (replaced to _)
for example, but you should know what do you really need:
UUID=686f24ec-b686-4dda-b4b6-0a69a2d6602e /media/korn16ftl3/Network_Storage/ type=ext4 sync,auto,rw 0 0
take care about that space (replaced to _)
I don't think you want that "type=" there. Also, if this is an external drive, I suggest including the "nofail" option so that the machine will still boot even if the drive is not present or fails to mount for some other reason. And, the "auto" and "rw" options are the default, and so need not be included.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.