Bug#962594: grub-efi-amd64: GRUB-EFI reprots: /dev/sda: open failed

Steve McIntyre steve at einval.com
Wed Jun 10 15:09:37 BST 2020


Hi!

On Wed, Jun 10, 2020 at 04:00:52PM +0200, Heinrich Schuchardt wrote:
>Package: grub-efi-amd64
>Version: 2.04-7
>Severity: minor
>
>Dear Maintainer,
>
>update grub-efi creates messages:
>
>Removing linux-image-5.4.0-4-amd64 (5.4.19-1) ...
>/etc/kernel/postrm.d/initramfs-tools:
>update-initramfs: Deleting /boot/initrd.img-5.4.0-4-amd64
>/etc/kernel/postrm.d/zz-update-grub:
>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
>
>This does not make any sense since I have only 2 NVME devices installed:
>
>$ lsblk
>
>NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
>nvme1n1             259:0    0   477G  0 disk
>├─nvme1n1p1         259:1    0   980M  0 part
>├─nvme1n1p2         259:2    0   260M  0 part  /boot/efi
>├─nvme1n1p3         259:3    0   128M  0 part
>├─nvme1n1p4         259:4    0 474.8G  0 part
>└─nvme1n1p5         259:5    0   808M  0 part
>nvme0n1             259:6    0 223.6G  0 disk
>├─nvme0n1p1         259:7    0   999M  0 part
>├─nvme0n1p2         259:8    0  1000M  0 part  /boot
>└─nvme0n1p3         259:9    0 221.6G  0 part
>  └─nvme1n1p3_crypt 254:0    0 221.6G  0 crypt
>    ├─LVM1-root     254:1    0  48.8G  0 lvm   /
>    └─LVM1-home     254:2    0 172.8G  0 lvm   /home
>
>I would not expect any message for non-existing devices.

But I assume you must have a /dev/sda device file. I see similar
locally on my laptop, where /dev/sda is a SATA drive and /dev/sdb is
an SD reader with nothing inserted:

# ls -al /dev/sd?
brw-rw---- 1 root disk 8,  0 Jun 10 06:25 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr 19 03:15 /dev/sdb

$ sudo fdisk -l /dev/sd?
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: CT2000MX500SSD1 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 98589918-89BC-48F0-9D29-CFD892E47618

Device       Start        End    Sectors  Size Type
/dev/sda1     2048    1050623    1048576  512M EFI System
/dev/sda2  1050624    1550335     499712  244M Linux filesystem
/dev/sda3  1550336 3907028991 3905478656  1.8T Linux filesystem

fdisk: cannot open /dev/sdb: No medium found

Your system is probably similar...

-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
"I can't ever sleep on planes ... call it irrational if you like, but I'm
 afraid I'll miss my stop" -- Vivek Das Mohapatra



More information about the Pkg-grub-devel mailing list