{"id":1637,"date":"2020-05-21T23:23:32","date_gmt":"2020-05-21T14:23:32","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=1637"},"modified":"2020-05-22T11:58:06","modified_gmt":"2020-05-22T02:58:06","slug":"ubuntu18-04%e3%81%a7%e3%81%99%e3%81%b9%e3%81%a6%e3%81%aekernel%e3%82%92%e5%89%8a%e9%99%a4%e3%81%97%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3%e3%81%9f%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=1637","title":{"rendered":"Ubuntu18.04\u3067\u3059\u3079\u3066\u306ekernel\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6"},"content":{"rendered":"<p style=\"margin-bottom:2em;\">\n\u3059\u3079\u3066\u306ekernel\u3092\u524a\u9664\u3059\u308b\u3068\u3001GRUB\u304b\u3089\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u308b\u306e\u3067\u3001OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u3067\u30d6\u30fc\u30c8\u3057\u3066\u3001\u305d\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067kernel\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\n<\/p>\n<h4>kernel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d<\/h4>\n<p>\n\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30c9\u30e9\u30a4\u30d6\u3092\u7279\u5b9a\u3059\u308b\u3002\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bfe\u8c61\u306e\u30c9\u30e9\u30a4\u30d6\u30e9\u30d9\u30eb\u3092\u78ba\u304b\u3081\u308b\u3002\u81ea\u5206\u306e\u74b0\u5883\u3067\u306f &#8220;nvme0n1p2&#8221; \u3067\u3057\u305f\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ lsblk\r\n<\/pre>\n<p style=\"margin-top:2em;\">\n\u6b21\u306b\u7279\u5b9a\u3057\u305f\u30c9\u30e9\u30a4\u30d6\u3092\/mnt\/\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# mount \/dev\/nvme0n1p2 \/mnt\/\r\n<\/pre>\n<p style=\"margin-top:2em;\">\n\u66f4\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u30de\u30a6\u30f3\u30c8\u3001\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# mount -o bind \/dev\/ \/mnt\/dev\/\r\n# mount -o bind \/dev\/pts\/ \/mnt\/dev\/pts\/\r\n# mount -t sysfs \/sys\/ \/mnt\/sys\/\r\n# mount -t proc \/proc\/ \/mnt\/proc\/\r\n# cp \/etc\/resolv.conf \/mnt\/etc\/resolv.conf\r\n<\/pre>\n<p style=\"margin-top:2em;\">\nchroot\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3059\u308b\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# chroot \/mnt\/\r\n# apt update\r\n<\/pre>\n<p style=\"margin-top:2em;\">\n\u3042\u3068\u306f\u666e\u901a\u306bkernel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u81ea\u5206\u306fkernel\u306e\u30d0\u30fc\u30b8\u30e7\u30f35.3.0-51\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt install linux-headers-5.3.0-51\r\n# apt install linux-headers-5.3.0-51-generic\r\n# apt install linux-image-5.3.0-51-generic\r\n# apt install linux-modules-5.3.0-51-generic\r\n# apt install linux-modules-extra-5.3.0-51-generic\r\n<\/pre>\n<p style=\"margin-top:2em;\">\nGRUB\u306e\u8a2d\u5b9a\u3092\u66f4\u65b0\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fkernel\u3092\u793a\u3059\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# update-grub\r\n<\/pre>\n<p style=\"margin-top:2em;\">\nCtrl\uff0bD\u3067chroot\u3092\u89e3\u9664\u3057\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30de\u30a6\u30f3\u30c8\u3092\u89e3\u9664\u3059\u308b\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# umount \/mnt\/dev\/pts\/\r\n# umount \/mnt\/dev\/\r\n# umount \/mnt\/sys\/\r\n# umount \/mnt\/proc\/\r\n# umount \/mnt\/\r\n<\/pre>\n<p style=\"margin-top:2em;\">\n\u518d\u8d77\u52d5\u3057\u3066\u6b63\u5e38\u306b\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3059\u3079\u3066\u306ekernel\u3092\u524a\u9664\u3059\u308b\u3068\u3001GRUB\u304b\u3089\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u308b\u306e\u3067\u3001OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u3067\u30d6\u30fc\u30c8\u3057\u3066\u3001\u305d\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067kernel\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 kernel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d \u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30c9\u30e9\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,10],"tags":[],"class_list":["post-1637","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu"],"views":2617,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1637"}],"version-history":[{"count":11,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1637\/revisions"}],"predecessor-version":[{"id":1649,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1637\/revisions\/1649"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}