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

gnome-disk-utility User Session Defaults issue



Hi.

I am using Debian Unstable (64-bit), Cinnamon desktop environment.
-----------------------------------------------------------------------
lsblk output:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111.8G  0 disk
├─sda1   8:1    0    28G  0 part /
├─sda2   8:2    0     1K  0 part
├─sda5   8:5    0   7.9G  0 part [SWAP]
└─sda6   8:6    0    76G  0 part /home
sr0     11:0    1  1024M  0 rom

---------------------------------------------------------------------
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"

----------------------------------------------------------------------
/etc/fstab contents:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>                            <mount point> <type>
<options>          <dump> <pass>
#
# / was on /dev/sda1 during installation
UUID=1af49d67-02c1-4601-b020-ca70e78e6da8  /              ext4
errors=remount-ro  0      1
#
# /home was on /dev/sda6 during installation
UUID=561e0ea6-46ef-41bd-9a51-f840352d918c  /home          ext4
defaults           0      2
#
# swap was on /dev/sda5 during installation
UUID=93082123-a386-41ce-8067-fafbf5892691  none           swap
sw                 0      0
#
/dev/sr0                                   /media/cdrom0  udf,iso9660
user,noauto        0      0

------------------------------------------------------------------------

I have gnome-disk-utility (a.k.a. the "Disks" program) installed.

In "Disks", for each partition (/, swap, or home), on the primary
(only) ssd, if the partition is highlighted and the "gears" icon is
clicked, a menu pops up with one of the choices being "Edit Mount
Options".  When "Edit Mount Options is clicked, a window titled "Mount
Options" appears.

Near the top of the mount options window is a slide switch labeled
"User Session Defaults".  If you rest the mouse pointer on the slide
switch, a popup text box says "Switch off User Session Defaults to
manage mount point and mount options for the device.  The options
correspond to an entry in the /etc/fstab file."

Until recently, for all partitions on the main ssd, the slide switch
was "on" by default, with the slide background colored blue, and all
of the text in the fields for the options in the window were "greyed
out".

But now, for all partitions on the main ssd, the slide switch is "off"
by default, the slide background is colored grey, and the text in the
options fields is black, not grey, and is editable.

Now if I slide the switches to "on", and click "OK" to save the
changes (requires authentication by user sudo password), the computer
will not reboot after shutdown.  Using a rescue disk to inspect
/etc/fstab on the main ssd reveals that changing the User Session
Defaults switches for each partition has caused the corresponding
entries to be deleted from /etc/fstab.

Replacing /etc/fstab with a backed up good copy allows the computer to
boot as normal.

BUT, restoring the backed up /etc/fstab causes the "Disks" slider
switches to change back to "off" by themselves! No matter what I try,
I can not get /etc/fstab and the User Session Defaults switches to not
change each other.  Very strange . . .

Note 1: all of this behavior affects only the partitions on the main
ssd.  It does not affect the "Disks" Edit Mount Options windows for
the dvd drive or any external usb drives that are plugged in. For any
drive other than the main ssd, the User Session Defaults switches
default to "on", as expected.

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.

-----------------------------------------------------------------

Here are the /dev/disk/* entries, with no external devices attached:

/dev/disk/by-id:
total 0
drwxr-xr-x 2 root root 280 May  7 20:22 ./
drwxr-xr-x 7 root root 140 May  7 15:06 ../
lrwxrwxrwx 1 root root   9 May  7 15:06
ata-HL-DT-ST_DVD+_-RW_GU90N_KZSZ73G1632 -> ../../sr0
lrwxrwxrwx 1 root root   9 May  7 15:06
ata-KINGSTON_SV300S37A120G_50026B77490A7CE8 -> ../../sda
lrwxrwxrwx 1 root root  10 May  7 15:06
ata-KINGSTON_SV300S37A120G_50026B77490A7CE8-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  7 15:06
ata-KINGSTON_SV300S37A120G_50026B77490A7CE8-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  7 15:06
ata-KINGSTON_SV300S37A120G_50026B77490A7CE8-part5 -> ../../sda5
lrwxrwxrwx 1 root root  10 May  7 15:06
ata-KINGSTON_SV300S37A120G_50026B77490A7CE8-part6 -> ../../sda6
lrwxrwxrwx 1 root root   9 May  7 15:06 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root   9 May  7 15:06 wwn-0x50026b77490a7ce8 -> ../../sda
lrwxrwxrwx 1 root root  10 May  7 15:06 wwn-0x50026b77490a7ce8-part1
-> ../../sda1
lrwxrwxrwx 1 root root  10 May  7 15:06 wwn-0x50026b77490a7ce8-part2
-> ../../sda2
lrwxrwxrwx 1 root root  10 May  7 15:06 wwn-0x50026b77490a7ce8-part5
-> ../../sda5
lrwxrwxrwx 1 root root  10 May  7 15:06 wwn-0x50026b77490a7ce8-part6
-> ../../sda6

/dev/disk/by-label:
total 0
drwxr-xr-x 2 root root  80 May  7 20:22  ./
drwxr-xr-x 7 root root 140 May  7 15:06  ../
lrwxrwxrwx 1 root root  10 May  7 15:06 '\x2f' -> ../../sda1
lrwxrwxrwx 1 root root  10 May  7 15:06 '\x2fhome' -> ../../sda6

/dev/disk/by-partuuid:
total 0
drwxr-xr-x 2 root root 120 May  7 20:22 ./
drwxr-xr-x 7 root root 140 May  7 15:06 ../
lrwxrwxrwx 1 root root  10 May  7 15:06 cff3c8f8-01 -> ../../sda1
lrwxrwxrwx 1 root root  10 May  7 15:06 cff3c8f8-02 -> ../../sda2
lrwxrwxrwx 1 root root  10 May  7 15:06 cff3c8f8-05 -> ../../sda5
lrwxrwxrwx 1 root root  10 May  7 15:06 cff3c8f8-06 -> ../../sda6

/dev/disk/by-path:
total 0
drwxr-xr-x 2 root root 160 May  7 20:22 ./
drwxr-xr-x 7 root root 140 May  7 15:06 ../
lrwxrwxrwx 1 root root   9 May  7 15:06 pci-0000:00:1f.2-ata-1 -> ../../sda
lrwxrwxrwx 1 root root  10 May  7 15:06 pci-0000:00:1f.2-ata-1-part1
-> ../../sda1
lrwxrwxrwx 1 root root  10 May  7 15:06 pci-0000:00:1f.2-ata-1-part2
-> ../../sda2
lrwxrwxrwx 1 root root  10 May  7 15:06 pci-0000:00:1f.2-ata-1-part5
-> ../../sda5
lrwxrwxrwx 1 root root  10 May  7 15:06 pci-0000:00:1f.2-ata-1-part6
-> ../../sda6
lrwxrwxrwx 1 root root   9 May  7 15:06 pci-0000:00:1f.2-ata-2 -> ../../sr0

/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

-----------------------------------------------------------------

So, I would just like for the old behavior to return:

1)  The computer boots, without issue.

3)  User Session Defaults will show in the "Disks" program as turned
"on" (and stay that way)!

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

Thanks in advance for any help on this!


Reply to: