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

Re: gnome-disk-utility User Session Defaults issue



Not using a DE, I might not be much help, sorry.
But you aroused my curiosity…

On Thu 07 May 2020 at 20:46:32 (-0400), Default User wrote:

> blkid output:
> 
> /dev/sda1: LABEL="/" UUID="1af49d67-02c1-4601-b020-ca70e78e6da8"
> BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cff3c8f8-01"
> /dev/sda5: UUID="93082123-a386-41ce-8067-fafbf5892691" TYPE="swap"
> PARTUUID="cff3c8f8-05"
> /dev/sda6: LABEL="/home" UUID="561e0ea6-46ef-41bd-9a51-f840352d918c"
> BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cff3c8f8-06"

I thought for a minute that you'd (mis)typed that in, but then
realised from /dev/disk that those LABELs are real. Did you
choose them, or were they chosen for you?

> # /etc/fstab: static file system information.
[…]
> UUID=1af49d67-02c1-4601-b020-ca70e78e6da8  /              ext4
> errors=remount-ro  0      1
> #
> UUID=561e0ea6-46ef-41bd-9a51-f840352d918c  /home          ext4
> defaults           0      2
> #
> UUID=93082123-a386-41ce-8067-fafbf5892691  none           swap
> sw                 0      0
> #
> /dev/sr0                                   /media/cdrom0  udf,iso9660
> user,noauto        0      0

[…]

> Note 2: in the Edit Mount Options window for each partition on the
> main ssd, the 'Identify As" field lists a UUID entry (ie,
> UUID="93082123-a386-41ce-8067-fafbf5892691 for the swap partition).
> But
> for any partition or drive other than on the main ssd, the 'Identify
> As" field lists either a device name entry (ie, /dev/sr0 for the dvd
> drive), or a /dev/disk/by-id entry (ie,
> usb-HP_v125w_8EIYHFB131ZYW5I4-0:0-part1, when an external usb device
> is plugged in.)
> 
> Therefore I wonder if this has something to do with entries in
> /dev/disks/*, but that is just speculation. And since I know nothing
> about /dev/disks/* and how it works, I am somewhat reluctant to do
> surgery there without knowing what I am doing.

Well, that seems logical enough. The 'Identify As" field corresponds
with the name of the filesystem in your /etc/fstab file, just so long
as the "UUID=" is part of the field's value, which you say it is.

Using the /dev/disk/by-id entry instead for an external device may be
designed to avoid the sort of problem shown by your sda2, which has
no UUID. (I would have thought that …/by-path is the least likely to
be absent or non-unique.)

> /dev/disk/by-uuid:
> total 0
> drwxr-xr-x 2 root root 100 May  7 20:22 ./
> drwxr-xr-x 7 root root 140 May  7 15:06 ../
> lrwxrwxrwx 1 root root  10 May  7 15:06
> 1af49d67-02c1-4601-b020-ca70e78e6da8 -> ../../sda1
> lrwxrwxrwx 1 root root  10 May  7 15:06
> 561e0ea6-46ef-41bd-9a51-f840352d918c -> ../../sda6
> lrwxrwxrwx 1 root root  10 May  7 15:06
> 93082123-a386-41ce-8067-fafbf5892691 -> ../../sda5

[…]

> 3)  A good /etc/fstab that doesn't change by itself when User Session
> Defaults is turned on or off!

As an emergency measure, you could   chattr +i /etc/fstab   to prevent
anything changing it, while you investigate. You might even get some
error messages occasionally, when some program tries to change it.

Cheers,
David.


Reply to: