For add kernel parameters you can editing the /etc/default/grub
file and then add your kernel parameters:
sudo nano /etc/default/grub
Then you can see somethings like this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
You must to add pci=nomsi
after quiet splash
as kernel parameters and then save the changes by Ctrl+x.
You can check the changes by this command:
cat /etc/default/grub
After changes you must see somethings like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"
And as the last step, you must apply changes by this command:
sudo update-grub
Update: If you see this error /usr/sbin/grub-probe: error: failed to get canonical path of aufs'.
, It may be helpful to remounting and remapping.
So do this steps:
As the first step check your Ubuntu and your boot partitions with this command:
lsblk
It may be mounted at /
and boot
mountpoints.
Then after booting the live disk, mount the Ubuntu partition to /mnt
with this command:
sudo mount /dev/sd*# /mnt
For example:
sudo mount /dev/sda8 /mnt
So /dev/sd*#
is mounted to your Ubuntu partition.
If you have a separate /boot
partition, you'll need to mount it in /mnt/boot
as well:
sudo mount /dev/sd*# /mnt/boot
For example:
sudo mount /dev/sda2 /mnt/boot
where /dev/sd*#
is updated to your /boot
partition.
This should mount it with enough access to get the canonical path if needed, but we'll likely not need this.
To finish up, just update grub with the correct root and target:
sudo grub-install --root-directory=/mnt /dev/sdX
where /dev/sdX
is the disk(not the partition) where we want GRUB.
For example:
sudo grub-install --root-directory=/mnt /dev/sda
As an alternative way you can use boot-repair
in live disk:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair