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:
You must to add
quiet splash as kernel parameters and then save the changes by Ctrl+x.
You can check the changes by this command:
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:
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:
It may be mounted at
Then after booting the live disk, mount the Ubuntu partition to
/mnt with this command:
sudo mount /dev/sd*# /mnt
sudo mount /dev/sda8 /mnt
/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
sudo mount /dev/sda2 /mnt/boot
/dev/sd*# is updated to your
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
/dev/sdX is the disk(not the partition) where we want GRUB.
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