[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-06-01 Thread Mauricio Faria de Oliveira
Verification done on focal-proposed; all good.

Host:
---

$ sudo dd if=/dev/sda of=/dev/null
dd: failed to open '/dev/sda': No medium found

$ lxc launch ubuntu:focal lp1834250
$ lxc config device add lp1834250 host-sda unix-block source=/dev/sda 
path=/dev/sda
$ lxc shell lp1834250

Container:
---

# lsb_release -cs
focal

focal-updates: error messages

# dpkg -s lvm2 | grep Version:
Version: 2.03.07-1ubuntu1

# vgs
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found

# strace -e openat vgs 2>&1 | grep /dev/sda
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
  /dev/sda: open failed: No medium found
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
  /dev/sda: open failed: No medium found
# vgs
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found

focal-proposed: no error messages; same syscall behavior

# echo 'deb http://archive.ubuntu.com/ubuntu focal-proposed main' 
>>/etc/apt/sources.list
# apt update
# apt-cache madison lvm2 | grep focal-proposed
  lvm2 | 2.03.07-1ubuntu1.1 | http://archive.ubuntu.com/ubuntu 
focal-proposed/main amd64 Packages
# apt install lvm2

# dpkg -s lvm2 | grep Version:
Version: 2.03.07-1ubuntu1.1

# vgs
#

# strace -e openat vgs 2>&1 | grep /dev/sda
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)


** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-06-01 Thread Robie Basak
Hello Scott, or anyone else affected,

Accepted lvm2 into focal-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/lvm2/2.03.07-1ubuntu1.1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: lvm2 (Ubuntu Focal)
   Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-05-30 Thread Mauricio Faria de Oliveira
** Patch added: "lp1834250_lvm2_focal.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+attachment/5593897/+files/lp1834250_lvm2_focal.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-05-30 Thread Mauricio Faria de Oliveira
Uploaded to Focal, and tagged block-proposed-focal.

Attaching slightly modified debdiff (local build version),
for users who want to build lvm2 before a SRU is released.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-05-30 Thread Mauricio Faria de Oliveira
** Description changed:

  [Impact]
  
   * `update-grub` (actually `vgs`) complains about
     'No medium found' on systems with card readers
     that have no card in.
  
   * This may confuse users who aren't sure whether
     it means problems occurred with the bootloader,
     and concern their ability to safely boot again.
  
   * The workaround is to add a filter to LVM config,
     but this might be hard to find and error prone.
     (And not even seem relate to `update-grub` at
     all, specially on non-LVM storage layouts.)
-[See comment #16]
+    [See comment #16]
  
  [Test Plan]
  
   * Run `vgs` on a system with a card reader
     and check for 'No medium found' messages.
  
-  * Run `strace -f -e openat vgs` to confirm
-system calls/error codes have no changes.
+  * Run `strace -f -e openat vgs` to confirm
+    system calls/error codes have no changes.
  
-  * [See comment #20]
+  * [See comment #20]
  
  [Where problems could occur]
  
   * The patch changes syscall error reporting on the
     'scan' path, so problems could occur when listing
     LVM resources in block devices (e.g., list volume
     groups with `vgs`).
  
   * There's little to no changes upstream on this area,
     and the change is present in Jammy; both help with
     a lower chance of regression.
  
- [Info]
+ [Other Info]
  
-  * This upload is being staged (`block-proposed-focal`)
+  * `block-proposed-focal`: The upload is being staged 
     as it's just a cosmetic change, but affects `lvm2`,
     which is present in so many systems, triggering a
     lot of upgrades/boot risk (in case something else
     broke and this upgrade could reveal it indirectly).
  
   * So, it will probably only be released once a more
     serious issue has to be fixed in `lvm2`.
+ 
+  * Scope: Jammy has the fix, and Impish will EOL soon.
  
  [Original Bug Description]
  
  sudo update-grub
  
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Generating grub configuration file ...
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
  Found linux image: /boot/vmlinuz-5.0.0-17-generic
  Found initrd image: /boot/initrd.img-5.0.0-17-generic
  Found linux image: /boot/vmlinuz-5.0.0-16-generic
  Found initrd image: /boot/initrd.img-5.0.0-16-generic
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
    /dev/sdc: open failed: No medium found
    /dev/sdd: open failed: No medium found
    /dev/sde: open failed: No medium found
    /dev/sdf: open failed: No medium found
  Adding boot menu entry for EFI firmware configuration
  done
  
  --
  
  lsblk
  
  NAME MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
  sda8:00  3.7T  0 disk
  ├─sda1 8:10  512M  0 part  /boot/efi
  ├─sda2 8:20  732M  0 part  /boot
  └─sda3 8:30  3.7T  0 part
    └─sda3_crypt   253:00  3.7T  0 crypt
  ├─kubuntu--vg-swap_1 253:10  976M  0 lvm   [SWAP]
  └─kubuntu--vg-roo

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-05-30 Thread Mauricio Faria de Oliveira
Setup:
--

Add '/dev/sda' from the host to a Focal LXD container:

$ lxc launch ubuntu:focal 'focal-container'
$ lxc config device add 'focal-container' 'lxc-dev-sda' unix-block 
source='/dev/sda' path='/dev/sda'


Device:
---

$ grep ^ /sys/block/sda/{removable,device/{vendor,model,rev}}
/sys/block/sda/removable:1
/sys/block/sda/device/vendor:Generic-
/sys/block/sda/device/model:SD/MMC
/sys/block/sda/device/rev:1.00


Original:
---

Error messages:

$ sudo vgs
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found

$ echo $?
0

NOTE syscalls/error codes for /dev/sda:

$ sudo strace -f -e openat vgs 2>&1 | grep /dev/sda
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
  /dev/sda: open failed: No medium found
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
  /dev/sda: open failed: No medium found


Patched:
---

No messages:

$ sudo vgs

$ echo $?
0

SAME syscalls/error codes for /dev/sda:

$ sudo strace -f -e openat vgs 2>&1 | grep /dev/sda
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_DIRECT|O_NOATIME) = -1 
ENOMEDIUM (No medium found)
openat(AT_FDCWD, "/dev/sda", O_RDONLY|O_NOATIME) = -1 ENOMEDIUM (No 
medium found)


** Description changed:

+ [Impact]
+ 
+  * `update-grub` (actually `vgs`) complains about
+'No medium found' on systems with card readers
+that have no card in.
+
+  * This may confuse users who aren't sure whether
+it means problems occurred with the bootloader,
+and concern their ability to safely boot again.
+ 
+  * The workaround is to add a filter to LVM config,
+but this might be hard to find and error prone.
+(And not even seem relate to `update-grub` at 
+all, specially on non-LVM storage layouts.)
+ 
+ [Test Plan]
+ 
+  * Run `vgs` on a system with a card reader
+and check for 'No medium found' messages.
+ 
+ [Where problems could occur]
+ 
+  * The patch changes syscall error reporting on the
+'scan' path, so problems could occur when listing
+LVM resources in block devices (e.g., list volume
+groups with `vgs`).
+
+  * There's little to no changes upstream on this area,
+and the change is present in Jammy; both help with
+a lower chance of regression.
+
+ [Info]
+ 
+  * This upload is being staged (`block-proposed-focal`)
+as it's just a cosmetic change, but affects `lvm2`,
+which is present in so many systems, triggering a
+lot of upgrades/boot risk (in case something else
+broke and this upgrade could reveal it indirectly).
+
+  * So, it will probably only be released once a more
+serious issue has to be fixed in `lvm2`.
+ 
+ [Original Bug Description]
+ 
  sudo update-grub
  
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Generating grub configuration file ...
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: open failed: No medium found
-   /dev/sdd: open failed: No medium found
-   /dev/sde: open failed: No medium found
-   /dev/sdf: open failed: No medium found
-   /dev/sdc: o

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-05-30 Thread Mauricio Faria de Oliveira
** Also affects: lvm2 (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Changed in: lvm2 (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: lvm2 (Ubuntu)
   Importance: Low => Undecided

** Changed in: lvm2 (Ubuntu Focal)
   Status: New => In Progress

** Changed in: lvm2 (Ubuntu Focal)
   Importance: Undecided => Low

** Changed in: lvm2 (Ubuntu Focal)
 Assignee: (unassigned) => Mauricio Faria de Oliveira (mfo)

** Tags added: sts-sponsor-mfo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2022-01-05 Thread Maciek Sakrejda
I also ran into this on 20.04. Comment#16 (albeit with different device
filters, also for SD card readers) worked for me as a workaround.

Opaque errors from GRUB always make me uneasy, since I always worry my
machine may not come back after the next reboot. I'm sure I'm not alone.
Is there anything we can do to help fix this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-09-17 Thread anand
In MacBook Pro 2015, the inbuilt SD Card Reader needs to be filtered
out.  Comment#16 helped me fix the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-04-17 Thread Frank vdL
Mind the trailing "|" in above comment.

Hence the correct way is :

global_filter = [ "r|/dev/disk/by-id/.*Reader_058F312D81B.*|" ]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-04-13 Thread Andreas
You can prevent lvm2 from scanning the card reader by using the global filter.  
Instead of using drive letters for the filter, like  'sde' which is liable to 
change,  use the id of the device(s).

E.g.:
# ls -l /dev/disk/by-id/ | grep sd[e-h]

lrwxrwxrwx 1 root root9 Apr 13 11:06 
usb-Generic_USB_CF_Reader_058F312D81B-0:1 -> ../../sdf
lrwxrwxrwx 1 root root9 Apr 13 11:06 
usb-Generic_USB_MS_Reader_058F312D81B-0:3 -> ../../sdh
lrwxrwxrwx 1 root root9 Apr 13 11:06 
usb-Generic_USB_SD_Reader_058F312D81B-0:0 -> ../../sde
lrwxrwxrwx 1 root root9 Apr 13 11:06 
usb-Generic_USB_SM_Reader_058F312D81B-0:2 -> ../../sdg


Since all card reader slot device ids contain the unique 'Reader_058F312D81B',  
you can use the following global filter in lvm.conf.

"r|/dev/disk/by-id/.*Reader_058F312D81B.*" # filter out card reader
slots

Good luck!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-03-20 Thread Andy Igoshin
ubuntu 20.04.1

# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.8.0-45-generic
Found initrd image: /boot/initrd.img-5.8.0-45-generic
Found linux image: /boot/vmlinuz-5.8.0-44-generic
Found initrd image: /boot/initrd.img-5.8.0-44-generic
File descriptor 4 (pipe:[48288]) leaked on lvs invocation. Parent PID 6394: 
/bin/sh
File descriptor 5 (pipe:[48288]) leaked on lvs invocation. Parent PID 6394: 
/bin/sh
File descriptor 9 (pipe:[48291]) leaked on lvs invocation. Parent PID 6394: 
/bin/sh
  /dev/sdd: open failed: No medium found
  /dev/sdd: open failed: No medium found
Adding boot menu entry for UEFI Firmware Settings
done

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop07:00 31.1M  1 loop /snap/snapd/11036
loop17:10 32.3M  1 loop /snap/snapd/11107
sda  8:00  1.1T  0 disk 
├─sda1   8:10  512M  0 part /boot/efi
├─sda2   8:208G  0 part [SWAP]
└─sda3   8:30  1.1T  0 part /
sdb  8:16   0 10.9T  0 disk 
└─sdb1   8:17   0 10.9T  0 part /var/CommuniGate
sdc  8:32   0  1.1T  0 disk 
└─sdc1   8:33   0  1.1T  0 part /var/CommuniGate/SystemLogs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-02-22 Thread Julian Andres Klode
This comes from lvs in lvm2

** Package changed: grub2 (Ubuntu) => lvm2 (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2021-02-16 Thread EvilSupahFly
It's now 2021, and this issue is still present, even after upgrading to
Linux Mint 20.1 (likely due to Mint being a Ubuntu derivative):

```
[~] $ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found background: /boot/boot.png
Found background image: /boot/boot.png
Found linux image: /boot/vmlinuz-5.10.15-051015-lowlatency
Found initrd image: /boot/initrd.img-5.10.15-051015-lowlatency
  /dev/sdh: open failed: No medium found
  /dev/sdi: open failed: No medium found
  /dev/sdh: open failed: No medium found
  /dev/sdi: open failed: No medium found
done
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2020-04-27 Thread Gordon
Confirmed from comment #11 by mbdev

Adding a global_filter to line 151 just after the default section
corrected the problem.

Before adding the filter to /etc/lvm/lvm.conf I was getting this:

```
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
Found linux image: /boot/vmlinuz-5.3.0-46-lowlatency
```

After adding the comment, it seems to be corrected:

```
$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-46-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-46-lowlatency
Found linux image: /boot/vmlinuz-5.3.0-45-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-45-lowlatency
Found linux image: /boot/vmlinuz-5.3.0-42-lowlatency
Found initrd image: /boot/initrd.img-5.3.0-42-lowlatency
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
```

Wondering if there is any way to detect removable media not connected
which was the source of my issue since my internal drives are NVMe and
do not use SDx, those were USB keys as I recall.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2020-02-11 Thread Mateusz Bysiek
I'm running 19.10 x64 (up to date as of today), LVM setup. Originally
installed 19.04 and upgraded. This affects me too. Or, affected rather,
because after following advice from comment #9 above it seems fixed.
Details follow.

```
$ sudo update-grub2
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
Found linux image: /boot/vmlinuz-5.3.0-29-generic
Found initrd image: /boot/initrd.img-5.3.0-29-generic
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
```

It goes on, but I'm skipping it.

```
$ lsblk
nvme0n1 259:00 931.5G  0 disk  
├─nvme0n1p1 259:10   512M  0 part  /boot/efi
├─nvme0n1p2 259:20   732M  0 part  /boot
└─nvme0n1p3 259:30 930.3G  0 part  
  └─nvme0n1p3_crypt 253:00 930.3G  0 crypt 
├─ubuntu--vg-root   253:10 929.3G  0 lvm   /
└─ubuntu--vg-swap_1 253:20   976M  0 lvm   [SWAP]
```

Above I'm skipping bunch of loop## from output of lsblk.

The Ubuntu "Disks" app identified the /dev/sda as "Generic- SD/MMC". It
seems it's a built-in card reader of my ThinkPad. I decided to follow
comment #9 above to filter out that device from LVM. And, advice from
comment #9 fixed the issue! Thanks a lot Zer00Cool!

What I did exactly is:

1. grep for "global_filter" in lvm.conf - that file is really long...

```
$ grep -Fn "global_filter" /etc/lvm/lvm.conf
142:# Configuration option devices/global_filter.
146:# Use global_filter to hide devices from these LVM system components.
148:# global_filter are not opened by LVM.
150:# global_filter = [ "a|.*/|" ]
```

2. After the commented out "global_filter" setting (line 150 in my
case), I added the following:

```
global_filter = [ "r|/dev/sda|" ]
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2020-01-20 Thread Leonid Barchan
Thank you, Zer00Cool, it helps. Here it was without any new device,
right after an installation with LVM.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2019-12-26 Thread Zer00CooL
For me, but, sorry, in french !

# L'errreur affichée sur Debian lors de la mise à jour du Grub avec update-grub 
:
/dev/sdb: open failed: No medium found

# La commande lsblk ne montre aucune partition sdb.

# La commande "sudo dmesg |grep sdb" affiche :
[3.48717] sd 6:0:0:0 [sdb] Attached SCSI removable disk

# Je suppose donc que c'est le multi-lecteur de carte SD que j'ai
ajouté, et, connecté en interne à la machine.

# Si ce lecteur n'est pas utilisé pour des fonctions lvm, l'ajouter au 
global_filter dans "/etc/lvm/lvm.conf".
sudo nano /etc/lvm/lvm.conf
# Ajouter la ligne suivante permettra de retirer les lignes "/dev/sdb: open 
failed: No medium found" :
global_filter = ["r|/dev/sdb|"]

# Exemple complémentaire :
# Accepte chaque périphériques de blocs :
# filter = [ "a|.*/|" ]
# Rejeter le lecteur de CD :
# filter = [ "r|/dev/cdrom|" ]

Résolu pour moi, avec ça !
Les messages d'erreur ne sont plus affichés dans mon cas.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2019-11-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2 (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2019-10-22 Thread Ivan Dimitrov
I am seeing the same behaviour. The system was installed with the 19.10
beta on LVM and kept up to date.

$ lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1259:00   477G  0 disk 
├─nvme0n1p1259:10   512M  0 part /boot/efi
└─nvme0n1p2259:20 476.4G  0 part 
  └─vgkubuntu-root 253:00 475.5G  0 lvm  /

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2019-10-19 Thread Alejandro Alexiades
Hi,

Same problem here. I want to skip the GRUP so I modify the grub file,
but once I run the command sudo update-grub the terminal show me the
same issue.

Thanks and if I can do anything tell me.

Alex

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1834250] Re: update-grub complains about non-existent drives (due to cardreader)

2019-07-01 Thread Sebastien Bacher
** Summary changed:

- update-grub complains about non-existent drives
+ update-grub complains about non-existent drives (due to cardreader)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834250

Title:
  update-grub complains about non-existent drives (due to cardreader)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1834250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs