Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show LVM2 PV file systems and notice that the lvm2 package has to be installed in order to mount them #556

Open
davidhedlund opened this issue Jun 11, 2023 · 1 comment

Comments

@davidhedlund
Copy link

davidhedlund commented Jun 11, 2023

[I've also proposed this solution for GNOME: https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/49]

These GNU/Linux distributions has LVM2 PV installed by default.

  • Ubuntu Server has LVM2 PV pre-selected in its installation.
  • Trisquel pre-selects LVM2 PV in a LUKS container by default during its installation.

However, Ubuntu does not inform that it cannot mount LMV2 PV without the lvm2 package installed. So it's moderately difficult for people to find why disk drives with Ubuntu Server, nor Trisquel, are not mounted in Ubuntu.

Expected behaviour

I expected that the device is listed, and when you click on it a pop-up dialog box show something like gparted (see below): "The following list of software packages is requried for lvm2 pv file system support: lvm2."

Screenshot at 2023-06-11 23-42-44

Actual behaviour

LVM2 PV without the lvm2 package installed

Screenshot from 2023-06-11 23-29-30
Screenshot from 2023-06-11 23-29-51

Screenshot at 2023-06-11 23-31-36
Screenshot at 2023-06-11 23-32-11

LVM2 PV with the lvm2 package installed + reboot

$ sudo apt-get install lvm2
[sudo] password for x: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  lvm2
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 1 154 kB of archives.
After this operation, 4 129 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 lvm2 amd64 2.03.11-2.1ubuntu4 [1 154 kB]
Fetched 1 154 kB in 1s (1 002 kB/s)   
Selecting previously unselected package lvm2.
(Reading database ... 308105 files and directories currently installed.)
Preparing to unpack .../lvm2_2.03.11-2.1ubuntu4_amd64.deb ...
Unpacking lvm2 (2.03.11-2.1ubuntu4) ...
Setting up lvm2 (2.03.11-2.1ubuntu4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.1) ...
update-initramfs: Generating /boot/initrd.img-5.19.0-43-generic
$ reboot

Screenshot from 2023-06-11 23-38-37

Screenshot at 2023-06-11 23-42-44

LVM-on-LUKS, without the lvm2 package installed

It can be a disconcerting experience to enter a password and then suddenly the file system thumbnail disappear. This can lead people to believe that they have either entered the wrong password or that the file system is damaged, which could result in them deciding to delete it in a worst-case scenario.

2023-05-29-194149_1920x1080_scrot
2023-05-29-194153_1920x1080_scrot
2023-05-29-194157_1920x1080_scrot
2023-05-29-194207_1920x1080_scrot
2023-05-29-194209_1920x1080_scrot

LVM-on-LUKS, with the lvm2 package installed

It mounted the file system. Screenshots not really needed, see the "LVM2 PV with the lvm2 package installed + reboot" section instead.

Steps to reproduce the behaviour

MATE general version

Package version

Linux Distribution

Ubuntu 22.04

Link to bugreport of your Distribution (requirement)

@davidhedlund davidhedlund changed the title Show LVM devices and notice that the lvm2 package has to be installed in order to mount them Show LVM2 PV file systems and notice that the lvm2 package has to be installed in order to mount them Jun 11, 2023
@davidhedlund
Copy link
Author

Should I merge this issue to another repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant