1

In Grub, in addition to hd5, which is my actual drive, there are hd0 through hd4. Trying to ls them says they have an unknown filesystem. When grub loads, it prints several pages of

error: failure reading sector 0x80 on hd0
error: failure reading sector 0x80 on hd1

etc. It also does this after selecting the OS.

This all started after I added another partition to my (btrfs-formatted) root drive, so maybe it has something to do with that.

What causes this, and how do I fix it?

4
  • Are you saying that you don't know the origins of hd0 through hd4?
    – rickhg12hs
    Apr 12, 2019 at 22:51
  • @rickhg12hs Yes.
    – whoKnows
    Apr 13, 2019 at 23:35
  • What does fdisk -l /dev/hd show?... Or whatever the device is
    – rickhg12hs
    Apr 13, 2019 at 23:39
  • 1
    @rickhg12hs I'm not at that computer right now, but Linux doesn't see any additional drives (only grub does)
    – whoKnows
    Apr 13, 2019 at 23:54

1 Answer 1

0

One possible cause of these phantom devices are from your BMC. Various BMCs, which provide IPMI and often a KVM function, will create virtual USB devices when you're using the KVM (also commonly called iKVM.)

While I don't know of a solution for Grub to ignore certain devices, here are a few workarounds:

  1. Manually edit your grub entry at boot to use the correct hdX device for that boot only.
  2. Disconnect iKVM sessions during boot.

I hope somebody comes along with a better answer for this! I've also seen hardware consoles with KVMs (like the Tripp-Lite B070-008-19-IP 8-port rack-mounted console with IP KVM) do this, so suspect anything that connects to the USB bus.

1
  • I am not using KVM. This is on a bare metal laptop.
    – whoKnows
    Dec 31, 2020 at 2:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .