{"id":709,"date":"2023-10-05T18:52:19","date_gmt":"2023-10-05T09:52:19","guid":{"rendered":"https:\/\/intinfinity.com\/?p=709"},"modified":"2023-10-05T18:52:19","modified_gmt":"2023-10-05T09:52:19","slug":"%e5%b0%8f%e3%81%95%e3%81%84%e3%82%b9%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b8%e3%81%b8%e3%81%ae%e3%82%b3%e3%83%94%e3%83%bc-dd-%e3%81%a8-gdisk-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/intinfinity.com\/index.php\/archives\/709","title":{"rendered":"\u5c0f\u3055\u3044\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u306e\u30b3\u30d4\u30fc (dd \u3068 gdisk \u30b3\u30de\u30f3\u30c9)"},"content":{"rendered":"<h2>\u524d\u66f8\u304d<\/h2>\n<p>OS\u304c\u5165\u3063\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u3088\u308a\u5c0f\u3055\u306a\u5bb9\u91cf\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u79fb\u3057\u305f\u304f\u306a\u3063\u305f\u3053\u3068\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u79c1\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u304c\u5165\u3063\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u3042\u308c\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u5358\u4f4d\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067(\u6642\u9593\u3092\u304b\u3051\u308c\u3070)\u89e3\u6c7a\u3059\u308b\u8a71\u306a\u306e\u3067\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u5165\u3063\u3066\u308b\u3068\u306a\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u79fb\u3057\u3066\u3082\u610f\u5473\u306a\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>dd \u30b3\u30de\u30f3\u30c9\u306f\u540c\u4e00\u30b5\u30a4\u30ba\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u5f15\u3063\u8d8a\u3059\u3068\u304d\u306f\u3053\u308c\u5358\u4f53\u3067\u5b8c\u7d50\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u304c\u9055\u3046\u3068\u306a\u308b\u3068\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5468\u308a\u3067\u5384\u4ecb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001\u4e00\u822c\u7684\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5bb9\u91cf\u60c5\u5831\u3082\u6271\u3063\u3066\u304a\u308a\u3001dd\u306f\u3053\u308c\u3082\u5168\u304f\u540c\u3058\u30c7\u30fc\u30bf\u3068\u306a\u308a\u307e\u3059\u3002\u305d\u3046\u306a\u308b\u3068\u3001\u5b9f\u969b\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u3068\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u306e\u7ba1\u7406\u60c5\u5831\u306b\u9f5f\u9f6c\u304c\u51fa\u3066\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u6b63\u3057\u304f\u6271\u3048\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3001Debian\u304c\u5165\u3063\u305f1TB\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092500GB\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u5f15\u3063\u8d8a\u3057\u3066\u3001OS\u306e\u8d77\u52d5\u307e\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u306fGPT\u3067\u3059\u3002\u610f\u8b58\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3067\u3059\u304c\u3001Debian\u306fLuks\u306e\u4e0a\u306bbtrfs\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4e00\u90e8\u306e\u74b0\u5883\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u5c5e\u6027\u306f\u5f15\u304d\u7d99\u3052\u305a\u306b\u7834\u58ca\u3055\u308c\u308b\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<h2>\u6ce8\u610f<\/h2>\n<p>\u524d\u9805\u306e\u5185\u5bb9\u3092\u7406\u89e3\u3067\u304d\u308b\u4eba\u5411\u3051\u3067\u3059\u3002\u7d50\u679c\u306b\u3064\u3044\u3066\u306f\u3059\u3079\u3066\u81ea\u5df1\u8cac\u4efb\u3067\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<h2>\u4f5c\u696d<\/h2>\n<h3>\u6e96\u5099<\/h3>\n<p>\u30aa\u30ea\u30b8\u30ca\u30eb(\u30b3\u30d4\u30fc\u5143)\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u304b\u3089\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u4f7f\u7528\u91cf\u3092\u6e1b\u3089\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4efb\u610f\u306eOS\u3092Live CD\u3067\u30d6\u30fc\u30c8\u3057\u307e\u3059\u3002\u79c1\u306f\u3044\u3064\u3082Ubuntu\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u300cGParted Live CD\u300d\u306a\u308b\u3082\u306e\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30d4\u30fc\u5143\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u7e2e\u5c0f\u3057\u307e\u3059\u3002\u3053\u306e\u4f5c\u696d\u306b\u306f\u300cGParted\u300d\u304c\u4fbf\u5229\u3067\u3059\u3002Luks\u3067\u6697\u53f7\u5316\u3057\u3066\u3042\u3063\u3066\u3082\u3001\u3053\u308c\u3092\u89e3\u9664\u3057\u3066\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u64cd\u4f5c\u304c\u3067\u304d\u307e\u3059\u3002(\u3082\u3061\u308d\u3093\u3001\u30ab\u30ae\u306f\u5fc5\u8981\u3067\u3059\u3002)<\/p>\n<p>\u524d\u65b9\u304b\u3089\u5bb9\u91cf\u306e\u5c0f\u3055\u306a(\u30b3\u30d4\u30fc\u5148)\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5bb9\u91cf\u306e\u7bc4\u56f2\u307e\u3067\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u306a\u308b\u3079\u304f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u524d\u65b9\u306b\u8a70\u3081\u308b\u3053\u3068\u3067\u3001dd\u30b3\u30de\u30f3\u30c9\u306e\u6240\u8981\u6642\u9593\u3092\u77ed\u304f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001GParted\u3092\u7d42\u4e86\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30af\u30ed\u30fc\u30f3<\/h3>\n<p>dd\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30d4\u30fc\u5143\u304b\u3089\u30b3\u30d4\u30fc\u5148\u3078\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u3001if\u30aa\u30d7\u30b7\u30e7\u30f3\u3068of\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u7d76\u5bfe\u306b\u9593\u9055\u308f\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002(\u9593\u9055\u3048\u308b\u3068\u30c7\u30fc\u30bf\u3092\u5931\u3044\u307e\u3059\u3002)<\/p>\n<p>\u79c1\u304c\u3044\u3064\u3082\u4f7f\u3063\u3066\u3044\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>dd if=\/dev\/sdX of=\/dev\/sdX bs=4k status=progress<\/code><\/pre>\n<p>\u4e0d\u826f\u30bb\u30af\u30bf\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u8aad\u3081\u306a\u3044\u9818\u57df\u3092\u30b9\u30ad\u30c3\u30d7\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u8aad\u3081\u306a\u304b\u3063\u305f\u9818\u57df\u306b\u3042\u3063\u305f\u30c7\u30fc\u30bf(\u30d5\u30a1\u30a4\u30eb\u306a\u3069)\u306f\u7834\u640d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>conv=sync,noerror<\/code><\/pre>\n<p>\u5fc5\u8981\u306a\u7bc4\u56f2\u306f\u3001\u5b9f\u969b\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u5b58\u5728\u3059\u308b\u9818\u57df\u3060\u3051\u3067\u3059\u306e\u3067\u3001count\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b3\u30d4\u30fc\u3059\u308b\u30d6\u30ed\u30c3\u30af\u6570\u3092\u6307\u5b9a\u3059\u308b\u304b\u3001\u5fc5\u8981\u306a\u7bc4\u56f2\u3092\u30b3\u30d4\u30fc\u3057\u304d\u3063\u305f\u3089Ctrl + C\u3067\u4e2d\u65ad\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306e\u5834\u5408\u3001count\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u6307\u5b9a\u305b\u305a\u3001dd\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u4e2d\u306f\u5b8c\u5168\u306b\u5e2d\u3092\u5916\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u623b\u3063\u305f\u3053\u308d\u306b\u306f\u6700\u5f8c\u306e\u9818\u57df\u307e\u3067\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u5834\u5408\u3001\u30b3\u30d4\u30fc\u5148\u306e\u5bb9\u91cf\u306e\u4e0a\u9650\u3067dd\u30b3\u30de\u30f3\u30c9\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u306e\u4fee\u5fa9(\u518d\u69cb\u7bc9)<\/h3>\n<p>GPT\u3092\u4fee\u5fa9\u3057\u307e\u3059\u3002<\/p>\n<pre><code>gdisk \/dev\/sdX\nx\nv\ne\nm\nw\ny<\/code><\/pre>\n<p>x : \u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u30e2\u30fc\u30c9\u306b\u79fb\u884c<br \/>\nv : gpt\u306e\u6574\u5408\u6027\u3092\u78ba\u8a8d<br \/>\ne : \u4fee\u6b63<br \/>\nm : \u901a\u5e38\u30e2\u30fc\u30c9<br \/>\nw : \u5909\u66f4\u5185\u5bb9\u3092\u66f8\u304d\u8fbc\u307f<br \/>\ny : \u66f8\u304d\u8fbc\u307f\u5b9f\u65bd\u306e\u78ba\u8a8d<\/p>\n<p>btrfs\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u79c1\u306e\u74b0\u5883\u3067\u306f\u3001GParted\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u96fb\u6e90\u3092\u5207\u308a\u3001\u30b3\u30d4\u30fc\u5143\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u53d6\u308a\u5916\u3057\u3066\u304f\u3060\u3055\u3044\u3002(\u4f5c\u696d\u8005\u81ea\u3089\u306e\u6df7\u4e71\u9632\u6b62\u3068\u3001\u540c\u3058UUID\u3092\u6301\u3064\u30b9\u30c8\u30ec\u30fc\u30b8\u304c2\u3064\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u3088\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30fc\u30bd\u30d5\u30c8\u3067\u306e\u8b58\u5225\u4e0d\u826f\u9632\u6b62\u306e\u70ba)<\/p>\n<h3>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u62e1\u5f35<\/h3>\n<p>\u30b3\u30d4\u30fc\u5148\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u62e1\u5f35\u3057\u307e\u3059\u3002<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u30b3\u30d4\u30fc\u5148\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3067OS\u304c\u8d77\u52d5\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u8cc7\u6599<\/h2>\n<p><a href=\"https:\/\/kappaseijin.hatenablog.com\/entry\/20160924\/1474683913\">https:\/\/kappaseijin.hatenablog.com\/entry\/20160924\/1474683913<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u66f8\u304d OS\u304c\u5165\u3063\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u3088\u308a\u5c0f\u3055\u306a\u5bb9\u91cf\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u79fb\u3057\u305f\u304f\u306a\u3063\u305f\u3053\u3068\u3042\u308a\u307e\u305b\u3093\u304b\uff1f\u79c1\u306f\u3042\u308a\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u304c\u5165\u3063\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u3042\u308c\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u5358\u4f4d\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067(\u6642\u9593\u3092\u304b\u3051\u308c\u3070)\u89e3\u6c7a\u3059\u308b\u8a71\u306a\u306e\u3067\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/comments?post=709"}],"version-history":[{"count":2,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/media?parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/categories?post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/intinfinity.com\/index.php\/wp-json\/wp\/v2\/tags?post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}