2

I have a weird laptop, that, long story short, must have these 2 parameters set for it to boot:

pnpbios=off
noapic

How to I tell grub to utilize these every time it boots?

Byte Commander
  • 105,631
  • 46
  • 284
  • 425
Blaine
  • 376
  • 3
  • 5
  • 16

1 Answers1

5

Edit your GRUB configuration file e.g. using the command

sudo nano /etc/default/grub

Add those two parameters to GRUB_CMDLINE_LINUX_DEFAULT, so that it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pnpbios=off noapic"

Then update GRUB's configuration using the command

sudo update-grub
Byte Commander
  • 105,631
  • 46
  • 284
  • 425
Alcuin Arundel
  • 3,040
  • 2
  • 20
  • 28
  • 1
    any way to temporarily boot into the OS first to set these parameters? – Blaine Jul 22 '16 at 06:44
  • Boot in recovery mode, `mount -o remount,rw /`, `mount --all`, then follow the above steps. – Alcuin Arundel Jul 22 '16 at 06:48
  • 3
    @AlcuinArundel No need for recovery mode, you can temporarily set those kernel parameters by editing the GRUB boot entry from the GRUB menu itself. Select the Ubuntu entry in GRUB and press `e`. Then search the line starting with `linux` in the appearing script and insert the two parameters after `quiet splash`. Press `F10` (if I remember correctly) to boot the modified entry. – Byte Commander Jul 22 '16 at 08:33
  • I had a VirtualBox VM suffering the dreaded `MP-BIOS BUG 8254 timer not connected` error and `nolapic` (NOT `noapic`) using @ByteCommander's technique did the trick! – tresf Mar 06 '19 at 19:24