{"id":2948,"date":"2022-08-24T09:53:13","date_gmt":"2022-08-24T01:53:13","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=2948"},"modified":"2022-08-25T11:50:10","modified_gmt":"2022-08-25T03:50:10","slug":"linux%e9%96%8b%e6%a9%9fgrub%e7%ae%a1%e7%90%86%e4%b9%8b%e5%b0%8d%e6%96%bcgrub_cmdline_linux_default%e8%87%aa%e8%a8%82%e5%8f%83%e6%95%b8","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=2948","title":{"rendered":"Linux\u958b\u6a5fGRUB\u7ba1\u7406\u4e4b\u5c0d\u65bcGRUB_CMDLINE_LINUX_DEFAULT\u81ea\u8a02\u53c3\u6578"},"content":{"rendered":"<p>\u95dc\u65bc\u958b\u6a5fGRUB\u7684\u7ba1\u7406\u958b\u6a5f\uff0c\u6709\u4e00\u4e9b\u81ea\u5b9a\u7fa9\u7684\u958b\u6a5f\u53c3\u6578\uff0c\u53ef\u4ee5\u4fee\u6539LINUX\u958b\u6a5f\u689d\u4ef6\u6216\u8005\u914d\u5408\u8a2d\u5099\u786c\u9ad4\u53bb\u8abf\u6574\u9700\u6c42\u3002<br \/>\n\u7814\u7a76\u4e86\u4e00\u4e0b\u5225\u4eba\u7684\u6b77\u53f2\u7d93\u9a57\uff0c\u548cOS\u5957\u4ef6\u3002\u770b\u5230\u4e00\u500b\u639b\u7684\u5f88\u591a\uff0c\u4f3c\u4e4e\u76f8\u5c0d\u5b8c\u6574\u7684\u5167\u5bb9\u3002<br \/>\n\u81f3\u65bc\u53c3\u6578\u5b9a\u7fa9\u7684\u8a2d\u5b9a\u8aaa\u660e\uff0c\u90fd\u662f\u9010\u6b65\u5f9eGOOGLE\u4f86\u7684\u3002<br \/>\n\u61c9\u8a72\u9084\u6709\u5176\u5b83\u53ef\u4ee5\u5229\u7528\u7684\u53c3\u6578\uff0c\u4ee5\u5f8c\u6709\u9047\u5230\u6848\u4f8b\u518d\u4f86\u66f4\u65b0\u7dad\u8b77\u3002<\/p>\n<p><code>GRUB_CMDLINE_LINUX_DEFAULT=\"text consoleblank=0 intel_pstate=disable net.ifnames=0 ipv6.disable=1 pci=noaer iommu=soft usbcore.autosuspend=-1 radeon.si_support=0 radeon.cik_support=0 amdgpu.vm_fragment_size=9 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.ppfeaturemask=0xffff7fff amdgpu.runpm=0 amdgpu.gpu_recovery=0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off e1000e.EEE=0 fsck.mode=force fsck.repair=yes acpi_osi=linux i915.modeset=1\"<\/code><\/p>\n<p>\u76f8\u95dc\u8aaa\u660e\uff0c\u6574\u7406\u5982\u4e0b\u3002<br \/>\n#\u500b\u4eba\u8ffd\u52a0 &#8220;acpi_osi=linux i915.modeset=1&#8221;<\/p>\n<p>#consoleblank=0 \u95dc\u9589LCD\u81ea\u52d5\u9ed1\u5c4f\u7701\u96fb\u6a21\u5f0f<br \/>\n#intel_pstate=disable \u95dc\u9589CPU\u6027\u80fd\u7701\u96fb\u81ea\u52d5\u6a21\u5f0f<br \/>\n#net.ifnames=0 \u9632\u6b62\u958b\u6a5f\u7db2\u8def\u5361\u88ab\u66f4\u540d\u8a2d\u5b9a ex.eth0, eth1 \u88ab\u66f4\u540d\u70ba ens1, ens2<br \/>\n#ipv6.disable=1 \u4e0d\u4f7f\u7528IPV6\u6a21\u5f0f<br \/>\n#pci=noaer \u3001pci=nomsi \u9632\u6b62PCIE BUS ERROR\uff0c\u7981\u7528\u9032\u968e\u932f\u8aa4\u5831\u544a\uff0c\u7981\u7528MSI\u4e2d\u65b7\u529f\u80fd<br \/>\n#iommu=soft \u4f7fKERNEL\u80fd\u4ee5\u8edf\u9ad4\u65b9\u5f0f\u8b80\u53d6\u8d85\u904e4GB\u7684\u5167\u5b58\u8a08\u7b97<br \/>\n#usbcore.autosuspend=-1 \u9632\u6b62USB\u88dd\u7f6e\u7701\u96fb\u65b7\u7dda<\/p>\n<p>#radeon.si_support=0\u3001amdgpu.si_support=1 AMD\u986f\u5361GCN\u652f\u63f4\u6a21\u5f0f\u70baSouthern Islands (SI)<br \/>\n#radeon.cik_support=0\u3001amdgpu.cik_support=1 AMD\u986f\u5361GCN\u652f\u63f4\u6a21\u5f0f\u70baSea Islands (CIK)<br \/>\n#amdgpu.vm_fragment_size=9 \u9632\u6b62AMD\u986f\u5361\u5728amdgpu pro\u9a45\u52d5\u4e0b\u70ba\u9ed1\u5c4f<br \/>\n#amdgpu.ppfeaturemask=0xffff7fff \u555f\u52d5\u652f\u63f4amdgpu-utils\u5957\u4ef6\uff0c\u652f\u63f4\u96fb\u58d3\u8abf\u6574\u3001\u6838\u5fc3\u983b\u7387\u3001\u8a18\u61b6\u9ad4\u983b\u7387\u3002\u5982\uff1a<a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2862\" rel=\"noopener\" target=\"_blank\">AMD\u986f\u5361\u9a45\u52d5\u7a0b\u5f0f<\/a>\u6216<a href=\"https:\/\/linuxreviews.org\/HOWTO_undervolt_the_AMD_RX_4XX_and_RX_5XX_GPUs\" rel=\"noopener\" target=\"_blank\">HOWTO undervolt the AMD<\/a><br \/>\n#amdgpu.runpm=0 \u7981\u7528amdgpu\u96fb\u6e90\u7ba1\u7406\u9632\u6b62\u610f\u5916\u7576\u6a5f<br \/>\n#amdgpu.gpu_recovery=0 \u7981\u7528amdgpu\u986f\u5361\u5d29\u6f70\u5fa9\u539f\u529f\u80fd<\/p>\n<p>#noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off \u95dc\u9589INTEL CPU(10-19\u5e74\u88fd)\u9810\u8a2d\u6f0f\u6d1e\u9632\u8b77\u529f\u80fd\u4ee5\u589e\u52a0\u6027\u80fd<\/p>\n<p>#e1000e.EEE=0 \u9632\u6b62INTEL\u7684e1000e\u7db2\u5361\u6676\u7247\u9032\u5165\u7761\u7720\u7701\u96fb\u6a21\u5f0f\u800c\u65b7\u7dda<\/p>\n<p>#fsck.mode=force fsck.repair=yes \u5f37\u5236\u6bcf\u6b21\u91cd\u958b\u6a5f\u90fd\u8981\u505afsck\u6aa2\u67e5\u548c\u4fee\u5fa9\u78c1\u5340<\/p>\n<p>## \u500b\u4eba\u8ffd\u52a0\u90e8\u5206<br \/>\n#acpi_osi=linux \u544a\u8a34\u4e3b\u6a5f\u677fBIOS\u7684acpi\u63a7\u5236\u6a21\u5f0f\u5728\u73fe\u5728\u904b\u884c\u7684\u7cfb\u7d71\u662fLinux\u74b0\u5883<br \/>\n#i915.modeset=1 \u5f37\u5236\u555f\u7528INTEL i915\u5167\u986f\u529f\u80fd\u9a45\u52d5<\/p>\n<p>\u4fee\u6539\u6307\u4ee4\uff1a<br \/>\n<code>sudo nano \/etc\/default\/grub<br \/>\nsudo update-grub<br \/>\nsudo reboot<\/code><br \/>\n\u91cd\u958b\u6a5f\u770b\u4fee\u6539\u5f8c\u7684\u6548\u679c\u6709\u7121\u9054\u5230\u9700\u6c42\uff0c\u6216\u8005\u5fc5\u9808\u518d\u624b\u52d5\u9084\u539f\u3002<br \/>\n\u82e5\u4e0d\u5c0f\u5fc3\u641e\u639b\u4e86\uff0c\u53ef\u4ee5\u5617\u8a66\u7528\u958b\u6a5f\u9078\u55ae\u6309e\u4fee\u6539\u6062\u5fa9\u539f\u4f86\u6b63\u5e38\u7684\u958b\u6a5f\u53c3\u6578\u6a21\u5f0f\u3002<br \/>\n\u6216\u8005\uff0c\u8981\u7528\u5148\u524d\u4ecb\u7d39\u7684\uff1a<a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2901\" rel=\"noopener\" target=\"_blank\">\u7528Boot-Repair-Disk\u62ef\u6551\u786c\u789f\u610f\u5916\u907a\u5931\u7684\u958b\u6a5f\u78c1\u5340MBR\/GPT<\/a>\uff0c\u4f86\u5617\u8a66\u4fee\u5fa9\u548c\u5fa9\u539f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u95dc\u65bc\u958b\u6a5fGRUB\u7684\u7ba1\u7406\u958b\u6a5f\uff0c\u6709\u4e00\u4e9b\u81ea\u5b9a\u7fa9\u7684\u958b\u6a5f\u53c3\u6578\uff0c\u53ef\u4ee5\u4fee\u6539LINUX\u958b\u6a5f\u689d\u4ef6\u6216\u8005\u914d\u5408\u8a2d\u5099\u786c\u9ad4\u53bb\u8abf\u6574\u9700\u6c42\u3002 \u7814 &#8230; <a title=\"Linux\u958b\u6a5fGRUB\u7ba1\u7406\u4e4b\u5c0d\u65bcGRUB_CMDLINE_LINUX_DEFAULT\u81ea\u8a02\u53c3\u6578\" class=\"read-more\" href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2948\" aria-label=\"Read more about Linux\u958b\u6a5fGRUB\u7ba1\u7406\u4e4b\u5c0d\u65bcGRUB_CMDLINE_LINUX_DEFAULT\u81ea\u8a02\u53c3\u6578\">\u95b1\u8b80\u5168\u6587<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18,4],"tags":[],"class_list":["post-2948","post","type-post","status-publish","format-standard","hentry","category-18","category-4"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2948"}],"version-history":[{"count":3,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2948\/revisions"}],"predecessor-version":[{"id":2951,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2948\/revisions\/2951"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}