最近工作中遇到几系统启动会卡住的问题,在grub中加入“acpi=force”就解决了。具体原因不知道,先记录下来
在终端输入以下命令:
sudo gedit /etc/default/grub
找到这一行:GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
改成:GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi=force pci=nomsi”
保存退出。
输入以下命令更新Grub:
sudo update-grub
每个启动参数的意义如下参考资料:
The first thing you will want to look at when experiencing shutdown problems is ACPI (Advanced Configuration and Power Interface). This, in my experience, is the most common culprit when it comes to Linux shutdown problems. When troubleshooting ACPI, please follow the steps below:
Try booting with the “acpi=off” kernel parameter: This will disable ACPI support. If the error is the same with acpi enabled and disabled, you are probably not having an ACPI issue. If that is the case, please see the section of this article titled “Other Possible Solutions”.
If “acpi=off” allows the system to boot, you will need to isolate the ACPI issue by trying each of the following boot parameters.
Try booting with “acpi=ht”: This disables all of ACPI except just enough to enable Hyper Threading. If acpi=off works and acpi=ht fails, then the issue is in the ACPI table parsing code itself, or perhaps the SMP code.
Try booting with “pci=noacpi”: This disables ACPI for IRQ routing and PCI scanning.
Try booting with “acpi=noirq”: This disables ACPI for IRQ routing.
Try booting with “pnpacpi=off”: This disables the ACPI component of the Linux Plug and Play code.
Try booting with “noapic”: This disables the IO-APIC for IRQ routing or PCI scanning.
Try booting with “nolapic”: This disables the local APIC.
With any luck one of these extra boot parameters has solved your problem with Ubuntu hanging on shutdown. If not, ACPI was not the problem and we’ll need to look at other possible solutions. Please skip ahead to “Other Possible Solutions”. If one or more of these boot parameters solved your problem with Ubuntu hanging on shutdown consult the next section on how to make the changes permanent.