Can grub whitelist or blacklist drives/partitions?
Use case: defective main drive, installed (live usb) distro to second drive.
Now I want to configure grub to boot off the partition in the second drive.
The problem is that grub-install
continuously hangs when reading the defective first drive. I need to tell grub to ignore the first drive and only os-probe the second drive (plus any other drives).
Therefore, simply disabling os-probe is not a valid remedy.
I don't want to remove first drive for various reasons, including warranty on the laptop and time constraints in this rescue situation.
Editorial: I cannot find how to do this despite a couple of days of searching google. I think drive failure would be a reasonably common scenario -- enough to make the inability to blacklist partitions a bug.
BTW, the workaround was to continuously monitor processes in a terminal and pkill
any job with /dev/sda
in its parameters. This got tiresome fast and took over an hour with 20 partitions on a 1TB drive. The new drive is 2TB and will have a few dozen partitions.