{"id":272922,"date":"2023-05-22T04:04:16","date_gmt":"2023-05-21T20:04:16","guid":{"rendered":"https:\/\/lrxjmw.cn\/ljyiwjqsgd.html"},"modified":"2023-05-22T04:04:16","modified_gmt":"2023-05-21T20:04:16","slug":"ljyiwjqsgd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ljyiwjqsgd.html","title":{"rendered":"Linux\u89e3\u538b.img\u6587\u4ef6\uff0c\u8f7b\u677e\u641e\u5b9a\uff01"},"content":{"rendered":"

Linux<\/a>\u7cfb\u7edf<\/a>\u4e0b\uff0cimg\u683c\u5f0f\u7684\u6587\u4ef6\u5e76\u4e0d\u50cfzip\u3001rar\u7b49\u683c\u5f0f\u90a3\u6837\u5e38\u89c1\uff0c\u4f46\u662f\u6709\u65f6\u5019\u6211\u4eec\u8fd8\u662f\u4f1a\u9047\u5230\u8fd9\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u8be5\u600e\u4e48\u529e\u5462\uff1f\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e0b\u8f7b\u677e\u89e3\u538bimg\u6587\u4ef6\uff0c\u8ba9\u4f60\u4e0d\u518d\u4e3a\u8fd9\u4e2a\u95ee\u9898\u70e6\u607c\u3002<\/p>\n

\u4e00\u3001\u4ec0\u4e48\u662fimg\u683c\u5f0f<\/b><\/p>\n

Img\u683c\u5f0f\u662f\u4e00\u79cd\u78c1\u76d8\u6620\u50cf\u6587\u4ef6\u683c\u5f0f\uff0c\u5b83\u662f\u901a\u8fc7\u5c06\u6574\u4e2a\u78c1\u76d8\u7684\u6240\u6709\u6570\u636e\u90fd\u590d\u5236\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\u6765\u521b\u5efa\u7684\u3002\u8fd9\u79cd\u683c\u5f0f\u901a\u5e38\u7528\u4e8e\u5236\u4f5cCD\u6216DVD\u7684\u6620\u50cf\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u786c\u76d8\u5907\u4efd\u3002<\/p>\n

\u4e8c\u3001\u4e3a\u4f55\u8981\u89e3\u538bimg\u6587\u4ef6<\/b><\/p>\n

\u5bf9\u4e8eCD\u6216DVD\u6620\u50cf\u6587\u4ef6\uff0c\u6211\u4eec\u901a\u5e38\u9700\u8981\u5c06\u5176\u89e3\u538b\u540e\u624d\u80fd\u4f7f\u7528\u3002\u6bd4\u5982\u6211\u4eec\u8981\u5b89\u88c5\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5c31\u9700\u8981\u5148\u5c06\u5176\u5236\u4f5c\u6210\u6620\u50cf\u6587\u4ef6\uff0c\u7136\u540e\u518d\u5c06\u5176\u89e3\u538b\u5230U\u76d8\u6216\u5149\u76d8\u4e2dlinux\u5982\u4f55\u89e3\u538b.img\u6587\u4ef6<\/strong>\uff0c\u5728\u5b89\u88c5\u65f6\u4f7f\u7528\u3002<\/p>\n

\u4e09\u3001\u89e3\u538bimg\u6587\u4ef6\u7684\u65b9\u6cd5<\/b><\/p>\n

1.\u4f7f\u7528dd\u547d\u4ee4<\/a><\/p>\n

dd\u547d\u4ee4\u662f\u4e00\u6761\u975e\u5e38\u5f3a\u5927\u7684\u547d\u4ee4\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u590d\u5236\u548c\u8f6c\u6362\u6570\u636e\u3002\u5728Linux\u7cfb\u7edf\u4e0b\uff0cdd\u547d\u4ee4\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06img\u6587\u4ef6\u5199\u5165U\u76d8\u6216SD\u5361\u4e2d\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1\uff09\u67e5\u770b\u8bbe\u5907\u8def\u5f84<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770bU\u76d8\u6216SD\u5361\u7684\u8bbe\u5907\u8def\u5f84\uff1a<\/p>\n

\n

\nsudo fdisk -l\n<\/pre>\n<\/p>\n

2\uff09\u5c06img\u6587\u4ef6\u5199\u5165\u8bbe\u5907<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06img\u6587\u4ef6\u5199\u5165U\u76d8\u6216SD\u5361\u4e2d\uff1a<\/p>\n

linux\u5982\u4f55\u89e3\u538b.img\u6587\u4ef6_linux\u89e3\u538bsystem.img_linux \u67e5\u770b.img\u6587\u4ef6<\/p>\n

\n

\nsudo dd if=\/path\/to\/image.img of=\/dev\/sdc bs=4M status=progress\n<\/pre>\n<\/p>\n

\u5176\u4e2d\uff0cif\u8868\u793a\u8f93\u5165\u6587\u4ef6\uff0cof\u8868\u793a\u8f93\u51fa\u6587\u4ef6\uff0cbs\u8868\u793a\u5757\u5927\u5c0f\uff0cstatus\u8868\u793a\u663e\u793a\u8fdb\u5ea6\u3002<\/p>\n

2.\u4f7f\u7528mount\u547d\u4ee4<\/p>\n

mount\u547d\u4ee4\u662f\u7528\u4e8e\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u7684\u547d\u4ee4\uff0c\u5728Linux\u7cfb\u7edf\u4e0b\u4e5f\u53ef\u4ee5\u7528\u6765\u89e3\u538bimg\u6587\u4ef6\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1\uff09\u521b\u5efa\u4e00\u4e2a\u7a7a\u76ee\u5f55<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u7a7a\u76ee\u5f55\uff1a<\/p>\n

linux \u67e5\u770b.img\u6587\u4ef6_linux\u89e3\u538bsystem.img_linux\u5982\u4f55\u89e3\u538b.img\u6587\u4ef6<\/p>\n

\n

\nmkdir \/mnt\/img\n<\/pre>\n<\/p>\n

2\uff09\u6302\u8f7dimg\u6587\u4ef6<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06img\u6587\u4ef6\u6302\u8f7d\u5230\u521a\u624d\u521b\u5efa\u7684\u7a7a\u76ee\u5f55\u4e2d\uff1a<\/p>\n

\n

\nsudo mount -o loop \/path\/to\/image.img \/mnt\/img\n<\/pre>\n<\/p>\n

3.\u4f7f\u75287-Zip<\/p>\n

7-Zip\u662f\u4e00\u6b3e\u975e\u5e38\u6d41\u884c\u7684\u5f00\u6e90\u538b\u7f29\u8f6f\u4ef6\uff0c\u5b83\u652f\u6301\u591a\u79cd\u683c\u5f0f\u7684\u538b\u7f29\u548c\u89e3\u538b\u7f29\uff0c\u5305\u62ecimg\u683c\u5f0f\u3002<\/p>\n

\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

1\uff09\u5b89\u88c57-Zip<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c57-Zip\uff1a<\/p>\n

\n

\nsudo apt-get install p7zip-full\n<\/pre>\n<\/p>\n

2\uff09\u89e3\u538bimg\u6587\u4ef6<\/i><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538bimg\u6587\u4ef6\uff1a<\/p>\n

\n

\n7z x \/path\/to\/image.img -o\/path\/to\/destination\n<\/pre>\n<\/p>\n

\u5176\u4e2d\uff0cx\u8868\u793a\u89e3\u538b\u7f29\uff0c-o\u8868\u793a\u8f93\u51fa\u76ee\u5f55\u3002<\/p>\n

\u56db\u3001\u89e3\u538bimg\u6587\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879<\/b><\/p>\n

1.\u5728\u4f7f\u7528dd\u547d\u4ee4\u65f6\uff0c\u4e00\u5b9a\u8981\u786e\u4fdd\u8bbe\u5907\u8def\u5f84\u6b63\u786e\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/p>\n

2.\u5728\u4f7f\u7528mount\u547d\u4ee4\u65f6linux\u5982\u4f55\u89e3\u538b.img\u6587\u4ef6<\/strong>\uff0c\u4e00\u5b9a\u8981\u786e\u4fdd\u6302\u8f7d\u7684\u76ee\u5f55\u4e0d\u5b58\u5728\u6570\u636e\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u8986\u76d6\u3002<\/p>\n

3.\u5728\u4f7f\u75287-Zip\u65f6\uff0c\u4e00\u5b9a\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u8be5\u8f6f\u4ef6\uff0c\u5426\u5219\u65e0\u6cd5\u89e3\u538b\u7f29img\u6587\u4ef6\u3002<\/p>\n

\u4e94\u3001\u603b\u7ed3<\/b><\/p>\n

\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Linux\u7cfb\u7edf\u4e0b\u89e3\u538bimg\u6587\u4ef6\u7684\u4e09\u79cd\u65b9\u6cd5\uff0c\u5206\u522b\u662f\u4f7f\u7528dd\u547d\u4ee4\u3001mount\u547d\u4ee4\u548c7-Zip\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u548c\u9700\u6c42\u6df1\u5ea6linux\u7cfb\u7edf\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u89e3\u51b3\u95ee\u9898\u3002\u5982\u679c\u4f60\u8fd8\u6709\u5176\u4ed6\u597d\u7528\u7684\u65b9\u6cd5linux\u670d\u52a1\u5668\u642d\u5efa\uff0c\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u5206\u4eab\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e8c\u3001\u4e3a\u4f55\u8981\u89e3\u538bimg\u6587\u4ef6\u4e09\u3001\u89e3\u538bimg\u6587\u4ef6\u7684\u65b9\u6cd52\uff09\u5c06img\u6587\u4ef6\u5199\u5165\u8bbe\u5907\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06img\u6587\u4ef6\u5199\u5165U\u76d8\u6216SD\u5361\u4e2d\uff1a2\uff09\u6302\u8f7dimg\u6587\u4ef62\uff09\u89e3\u538bimg\u6587\u4ef6\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538bimg\u6587\u4ef6\uff1a\u56db\u3001\u89e3\u538bimg\u6587\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Linux\u7cfb\u7edf\u4e0b\u89e3\u538bimg\u6587\u4ef6\u7684\u4e09\u79cd\u65b9\u6cd5\uff0c\u5206\u522b\u662f\u4f7f\u7528dd\u547d\u4ee4\u3001mount\u547d\u4ee4\u548c7-Zip\u3002<\/p>\n","protected":false},"author":1,"featured_media":272923,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-272922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/272922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=272922"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/272922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/272923"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=272922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=272922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=272922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}