Web lists-archives.com

Re: User rw Permissions on New Hard Drive




On Thu 07 Mar 2019 at 09:59:43 (-0700), Cousin Stanley wrote:
> Michael Stone wrote:
> > On Thu, Mar 07, 2019 at 07:11:36AM -0700, Cousin Stanley wrote:
> >>Stephen P. Molnar wrote:
> >>> ....
> >>> and my fstab is:
> >>>
> >>> # /etc/fstab: static file system information.
> >>> ....
> >>
> >>  I've found that labeling my disk partitions
> >>  and using  /dev/disk/by-label/xyzzy  lines
> >>  in the  /etc/fstab  file seems to be much easier
> >>  for my own small brain to comprehend.
> > 
> > If you want to use labels, it seems a lot more clear 
> > to use  LABEL=  rather than /dev/disk/by-label/
> 
>   I am aware of the  LABEL=  keyword for the disk labels
>   in the  /etc/fstab  file and would agree that
>   their use would be slightly more concise
>   and save a few key strokes.
> 
>   However, in my own mind not necessarily more clear
>   as  /dev/disk/by-label  shows me exactly
>   what sort of label is being referenced
>   and provides a reminder that I can check them
>   via  ls -Ahl /dev/disk/by-label .
> 
>   Taking a line from Tim Peters' Zen of Python ....
> 
>     Explicit is better than implicit

I prefer to populate fstab with canonical information that actually
belongs to the filesystems that are to be mounted. A filesystem
that has a label, has that label regardless of any OS. It's real,
defined in the filesystem's documentation.

All that stuff in /dev/disk/ is just an ephemeral bunch of
convenient symbolic links, presumably conjured up by udev or
somesuch, if not the linux kernel.

I'm not clear about which other sort of label might be referenced
by LABEL=.

Cheers,
David.