{"id":118141,"date":"2020-06-14T16:45:29","date_gmt":"2020-06-14T08:45:29","guid":{"rendered":"http:\/\/4563.org\/?p=118141"},"modified":"2020-06-14T16:45:29","modified_gmt":"2020-06-14T08:45:29","slug":"linux%e4%b8%8b%e5%a6%82%e4%bd%95%e6%8c%82%e8%bd%bdraw%e6%a0%bc%e5%bc%8f%e7%9a%84%e7%a1%ac%e7%9b%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=118141","title":{"rendered":"LINUX\u4e0b\u5982\u4f55\u6302\u8f7dRAW\u683c\u5f0f\u7684\u786c\u76d8"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>LINUX\u4e0b\u5982\u4f55\u6302\u8f7dRAW\u683c\u5f0f\u7684\u786c\u76d8<\/h3>\n<p>  \t\t\u865a\u62df\u4e86\u4e00\u4e2a\u786c\u76d8\u5728 \/\u4e0b\u9762 \uff0c\u7528\u4e86mOUNT\u4e00\u5806\u9519\u8bef\uff0c\u600e\u4e48\u90fd\u6302\u4e0d\u4e0a\u53bb\uff0c\u6c42\u5927\u4f6c<\/p>\n<p>  \u7cfb\u7edf\u662fUBUNTU\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>inkedus<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b9d\u5854\u6709\u63d2\u4ef6\uff0c\u9664\u975e\u4f60\u4e0d\u613f\u610f\u82b1\u94b1\u4e70:lolhttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Syc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Syc \u4e8e 2020-6-14 16:44 \u7f16\u8f91 <\/p>\n<p> \u591a\u5b66\u6280\u672f\uff0c\u5c11\u7528\u8111\u6b8b\uff08\u6211\u778e\u8bf4\u7684\uff0c\u771f\u597d\u7528\uff09<br \/>  fdisk -lu mjj.raw<br \/>  echo $((2048*512)) #2048\u4e0a\u4e00\u6b65\u7684start\uff0c512\u4e0a\u4e00\u6b65unit\uff0c\u8fd4\u56de\u4e00\u4e2a\u504f\u79fb\u91cf<br \/>  mount -o loop,offset=\u504f\u79fb\u91cf mjj.raw \/home\/mjj<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tSyc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-14 16:39<br \/>  \u591a\u5b66\u6280\u672f\uff0c\u5c11\u7528\u8111\u6b8b<\/p>\n<p> mount: \/home\/mjj: overlapping loop device exists for \/root\/t.raw.\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Syc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\txkc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-14 16:41<br \/>  mount: \/home\/mjj: overlapping loop device exists for \/root\/t.raw.<\/p>\n<p> \u76ee\u5f55\u6211\u968f\u624b\u6253\u7684\uff0c\u521b\u5efa\u4e86\u5417\uff1f<br \/>  \u504f\u79fb\u91cf\u8ba1\u7b97\u770bfdisk\u7ed9\u7684\u4fe1\u606f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tSyc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-14 16:43<br \/>  \u76ee\u5f55\u6211\u968f\u624b\u6253\u7684\uff0c\u521b\u5efa\u4e86\u5417\uff1f<br \/>  \u504f\u79fb\u91cf\u8ba1\u7b97\u770bfdisk\u7ed9\u7684\u4fe1\u606f<\/p>\n<p> \u521b\u5efa\u4e86\uff0c\u504f\u79fb\u91cf\u4e5f\u7528\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tDisk t1.raw: 1 GiB, 1073741824 bytes, 2097152 sectors<br \/>  Units: sectors of 1 * 512 = 512 bytes<br \/>  Sector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>  I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>  star\u662f\u5565\u554a\u3002\u3002\u3002\u8fd9\u662f\u6211\u521b\u5efa\u4e86\u8bd5\u6c34\u7684\u786c\u76d8\uff0c\u91cc\u9762\u5565\u90fd\u6ca1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u591a\u5927\u70b9\u4e8b\uff0c\u6574\u90a3\u4e48\u9ebb\u70e6\u5e72\u561b<br \/>  1\u3001dd\u4e00\u4e2a\u6587\u4ef6\u51fa\u6765<br \/>  2\u3001mkfs<br \/>  3\u3001mount loop\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tSyc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-14 16:43<br \/>  \u76ee\u5f55\u6211\u968f\u624b\u6253\u7684\uff0c\u521b\u5efa\u4e86\u5417\uff1f<br \/>  \u504f\u79fb\u91cf\u8ba1\u7b97\u770bfdisk\u7ed9\u7684\u4fe1\u606f<\/p>\n<p> mount: \/home\/mjj: can&#8217;t find in \/etc\/fstab.<br \/>  \u6211\u53bb\u6389\u4e86\u504f\u79fb\u91cf\uff0c\u7136\u540e\u5c31\u8fd9\u6837\u4e86\u3002\u3002\u3002 \/etc\/fstab \u8fd9\u4e2a\u76ee\u5f55\u6211\u5728\/etc\u627e\u4e0d\u5230\uff0c\u4f46\u662f\u53c8\u65e0\u6cd5\u521b\u5efa\uff0c\u6211\u6539\u6389\u6210home\/mjj \u5c31\u4f1a\u62a5\u9519wrong fs type, bad option, bad superblock on \/dev\/loop1, missing codepage or helper program, or other error.<br \/>  \u6211\u7684\u751f\u6210RAW\u547d\u4ee4\u4f7f\u7528\u7684qemu-img create -f raw t1.raw 1G\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xkc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\th20 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-14 16:50<br \/>  \u591a\u5927\u70b9\u4e8b\uff0c\u6574\u90a3\u4e48\u9ebb\u70e6\u5e72\u561b<br \/>  1\u3001dd\u4e00\u4e2a\u6587\u4ef6\u51fa\u6765<br \/>  2\u3001mkfs<\/p>\n<p> \u5927\u4f6c\uff0c\u6211\u770b\u4e0d\u61c2\u554a\uff0c\u6211\u521b\u5efa\u4e861.raw \u5728\u6839\u76ee\u5f55\u4e0b\u3002\u3002<br \/>  \u7136\u540e\u5462\u3002\u3002\u3002\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>xkc \u5927\u4f6c\u6709\u8bdd\u8bf4 : LINUX&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/118141"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118141"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/118141\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}