---
# System prepended metadata

title: Fix Grub
tags: [c4lab]

---

# Fix Grub
###### tags: `c4lab`

## Grub basic operation
Edit in `/etc/default/grub`

For ubuntu
`sudo update-grub2`

For centos
`sudo grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg`

## Cpu Sync Error
https://gist.github.com/Brainiarc7/8dfd6bb189b8e6769bb5817421aec6d1

fix ->
`processor.max_cstate=1 intel_idle.max_cstate=0`


## Remove GPU debug info
```
[ 9192.353365] pcieport 0000:00:03.0: Multiple Corrected error received: 0000:00:03.0
[ 9192.354023] pcieport 0000:00:03.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
[ 9192.354688] pcieport 0000:00:03.0:   device [8086:6f08] error status/mask=00000040/00002000
[ 9192.355345] pcieport 0000:00:03.0:    [ 6] BadTLP
```

fix -> 
`pci=nomsi`


## md
`mdadm --examine --scan`
`blkid`