[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem adding lines to /etc/fstab



On Fri, Dec 30, 2016 at 05:17:21AM -0600, Richard Owlett wrote:
> >>>/dev/sda7       /media/sda7     ext2    users,rw     0       0
> >>>/dev/sda8       /media/sda8     ext2    users,rw     0       0

> In this case I am dealing with the only hard drive existing 
> internal to the laptop.

Then why are you using "users" at all?  Just let it mount with the
default options.  You know, after you figure out what kind of file
system it should contain, and after you adjust the ownerships and
permissions on the files therein, if you select a Unix-type file
system.

You don't have a problem that in the realm of fstab yet.  You have
a problem with the basic understanding of file systems.  Once you
understand how a file system works, the fstab line for a static mount
from a self-constrained single device is just a trivial afterthought.

The ONLY way an fstab line will contain any interesting stuff is if you
opt to use a DOS-type file system, in which case you will need to use
mount options that lay some phony Unix-type metadata on top of it.
E.g. "mount -o uid=richard,gid=goodusers,umask=002  ..."
This would PRESENT the metadata-less files as if they are actually
owned by user richard, group goodusers, permissions 664 (-rw-rw-r--)
and 775 (drwxrwxr-x).  This is just one possible example.


Reply to: