{"id":6656,"date":"2020-03-05T11:18:52","date_gmt":"2020-03-05T03:18:52","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6656"},"modified":"2020-03-05T11:18:52","modified_gmt":"2020-03-05T03:18:52","slug":"mkinitrd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mkinitrd","title":{"rendered":"mkinitrd\u547d\u4ee4 – \u5efa\u7acbramdisk\u6620\u50cf\u6587\u4ef6"},"content":{"rendered":"\n
mkinitrd\u547d\u4ee4\u5efa\u7acb\u8981\u8f7d\u5165ramdisk\u7684\u6620\u50cf\u6587\u4ef6\uff0c\u4ee5\u4f9bLinux\u5f00\u673a\u65f6\u8f7d\u5165ramdisk\u3002 <\/p>\n\n\n\n
\u8fd9\u4e2a\u662f\u91cd\u65b0\u5c01\u5305\u6838\u5fc3\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\u4f60\u81ea\u5df1\u4fee\u6539\u4e86\u4e00\u4e2a\u8bbe\u5907\u7684\u9a71\u52a8\uff0c\u5982\u679c\u8fd9\u4e2a\u9a71\u52a8\u8981\u52a0\u5165\u6838\u5fc3\u7ea7\u522b\u7684\u8bdd\uff0c\u5c31\u9700\u8981\u5bf9\u6838\u5fc3\u8fdb\u884c\u91cd\u65b0\u5c01\u5305\uff0c\u628a\u65b0\u52a0\u7684\u914d\u7f6e\u7f16\u8bd1\u5230\u6838\u5fc3\u5185\u90e8\u53bb\uff01<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f:<\/strong> mkinitrd [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570:<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u6267\u884c\u65f6\u663e\u793a\u8be6\u7ec6\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u5efa\u7acbtest.img\u6587\u4ef6,\u5e76\u663e\u793a\u8be6\u7ec6\u4fe1\u606f,\u5982\u6709\u540c\u540d\u5219\u8986\u76d6\uff1a<\/p>\n\n\n\n mkinitrd\u547d\u4ee4\u5efa\u7acb\u8981\u8f7d\u5165ramdisk\u7684\u6620\u50cf\u6587\u4ef6\uff0c\u4ee5\u4f9bLinux\u5f00\u673a\u65f6\u8f7d\u5165ramdisk\u3002 \u8fd9\u4e2a\u662f\u91cd\u65b0\u5c01 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6656"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6656"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6656\/revisions"}],"predecessor-version":[{"id":6694,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6656\/revisions\/6694"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-f <\/td> \u82e5\u6307\u5b9a\u7684\u6620\u50cf\u95ee\u5bb6\u540d\u79f0\u4e0e\u73b0\u6709\u6587\u4ef6\u91cd\u590d\uff0c\u5219\u8986\u76d6\u73b0\u6709\u7684\u6587\u4ef6 <\/td><\/tr> -v <\/td> \u6267\u884c\u65f6\u663e\u793a\u8be6\u7ec6\u7684\u4fe1\u606f<\/td><\/tr> --version <\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# mkinitrd text.img --version<\/pre>\n\n\n\n
[root@linuxcool ~]# mkinitrd text.img -v<\/pre>\n\n\n\n
[root@linuxcool ~]# mkinitrd -v -f text.img $(uname -r)<\/pre>\n","protected":false},"excerpt":{"rendered":"