{"id":727,"date":"2021-10-28T00:55:25","date_gmt":"2021-10-27T15:55:25","guid":{"rendered":"https:\/\/okamoto3.com\/?p=727"},"modified":"2023-03-01T21:42:55","modified_gmt":"2023-03-01T12:42:55","slug":"sdcard-check","status":"publish","type":"post","link":"https:\/\/okamoto3.com\/index.php\/2021\/10\/28\/sdcard-check\/727\/","title":{"rendered":"raspberry pi\u8d77\u52d5\u3057\u306a\u3044SD\u30ab\u30fc\u30c9\u306e\u5fa9\u6d3b"},"content":{"rendered":"<h2 class=\"wp-block-heading\">\u75c7\u72b6<\/h2><p>\u96fb\u6e90LED\u8d64\u70b9\u706f\u3001\u7dd1\u6570\u56de\u70b9\u6ec5\u5f8c\u3001\u6d88\u706f\u3002\u305d\u306e\u5f8c\u306f\u4f55\u3082\u8a00\u308f\u3093\u3002<\/p><h2 class=\"wp-block-heading\">\u5bfe\u7b56<\/h2><p>\u5143\u6c17\u306a\u30e9\u30ba\u30d1\u30a4\u3067\u4fee\u5fa9\u30b3\u30de\u30f3\u30c9\u3002(\u3060\u3081\u3082\u3068\u3067\u3084\u3063\u3066\u307f\u3088\u3002)<\/p><h2 class=\"wp-block-heading\">\u624b\u9806<\/h2><p><strong>1.SD\u30ab\u30fc\u30c9\u306edevice name<\/strong>\u306a\u306b\uff1f<\/p><pre class=\"wp-block-preformatted has-red-background-color has-background\"><strong>sudo fdisk -l<\/strong><\/pre><p>Device&nbsp;&nbsp;&nbsp;&nbsp; Boot Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp; Sectors&nbsp; Size Id Type<br \/><strong>\/dev\/sda1<\/strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8192&nbsp;&nbsp;&nbsp; 93486&nbsp;&nbsp;&nbsp; 85295 41.7M&nbsp; c W95 FAT32<\/p><p><strong>\/dev\/sda2<\/strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 94208 30965759 30871552 14.7G 83 Linux<\/p><p><strong>2.SD\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u7121\u3044\u72b6\u614b\u306b\u3059\u308b\u3002<\/strong><\/p><p>\u308f\u3057\u306fsda\u3058\u3083\u3063\u305f\u306e\u3067<\/p><pre class=\"wp-block-preformatted has-red-background-color has-background\"><strong>sudo umount \/dev\/sda*<\/strong><\/pre><p>umount: \/dev\/sda: not mounted.<br \/>umount: \/dev\/sda2: not mounted.<\/p><p><strong>3.\u3060\u3081\u3082\u3068\u3067\u4e00\u6c17\u306b\u4fee\u5fa9\uff01<\/strong><\/p><pre class=\"wp-block-preformatted has-red-background-color has-background\"><strong>sudo fsck.vfat -w -r \/dev\/sda1<\/strong><\/pre><p>fsck.fat 4.1 (2017-01-24)<br \/>0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.<br \/>1) Remove dirty bit<br \/>2) No action<br \/>? <strong>1<\/strong><br \/>Perform changes ? (y\/n) <strong>y<\/strong><br \/>\/dev\/sda1: 148 files, 42659\/83951 clusters<\/p><pre class=\"wp-block-preformatted has-red-background-color has-background\"><strong>sudo fsck \/dev\/sda2<\/strong><\/pre><p>fsck from util-linux 2.33.1<br \/>e2fsck 1.44.5 (15-Dec-2018)<br \/>\/dev\/sda2: recovering journal<br \/>Journal checksum error found in \/dev\/sda2<br \/>Checking for bad blocks (non-destructive read-write test)<br \/>Testing with random pattern:&nbsp;&nbsp; 0.00% done, 0:00 elapsed. (0 done<br \/>\/dev\/sda2: Updating bad block inode.<br \/>Pass 1: Checking inodes, blocks, and sizes<br \/>Pass 2: Checking directory structure<br \/>Pass 3: Checking directory connectivity<br \/>Pass 4: Checking reference counts<br \/>Pass 5: Checking group summary information<\/p><p><strong>\u76f4\u3059\u304b\uff1f\uff01<\/strong><br \/><strong>\u305d\u306e\u305f\u3081\u3058\u3083\u3002\u4ee5\u4e0b\u7e70\u308a\u8fd4\u3057\u3002<\/strong><br \/>Fix&lt;y&gt;? <strong>y<\/strong>es<br \/>Free blocks count wrong for group #42 (13379, counted=13250).<br \/>Fix&lt;y&gt;? <strong>y<\/strong>es\u3000\u2026\u2026\u2026\u2026<strong>\u7d9a\u304f\u7d9a\u304f<\/strong><\/p><p>Inode bitmap differences: Group 0 inode bitmap does not match checksum.<br \/>FIXED.<br \/>Block bitmap differences: Group 40 block bitmap does not match checksum.<br \/>FIXED.<br \/><br \/>\/dev\/sda2: ***** FILE SYSTEM WAS MODIFIED *****<br \/>\/dev\/sda2: 176702\/949664 files (0.3% non-contiguous), 1695071\/3858944 blocks<\/p><p>\u3053\u3093\u306a\u611f\u3058\u3067\u7d42\u308f\u308a<\/p><p><strong>4.\u96fb\u6e90\u5165\u308c\u3066\u304a\u8a66\u3057<\/strong><\/p><p>\u7121\u4e8b\u8d77\u52d5\uff01\u30e9\u30c3\u30ad\u30fc\u3058\u3083\u3002<\/p><p>\u4eca\u306e\u3046\u3061\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff01<\/p><p>\u4ee5\u4e0a<\/p><hr class=\"wp-block-separator\"\/><div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-thumbnail\"><a href=\"https:\/\/youtube.com\/user\/hishigeki3\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&#038;ssl=1\" alt=\"\" class=\"wp-image-658\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><figcaption>\u3088\u308d\u3057\u3051\u308c\u3070\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\uff01<\/figcaption><\/figure><\/div><p>\u4ee5\u4e0a<\/p><hr class=\"wp-block-separator\"\/><p><center><br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=20&amp;l=ez&amp;f=ifr&amp;linkID=865d8e3440677383d9b2493a3354bc42&amp;t=shigeki3-22&amp;tracking_id=shigeki3-22\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe><br \/>\n<\/center><\/p>","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 \u96fb\u6e90LED\u8d64\u70b9\u706f\u3001\u7dd1\u6570\u56de\u70b9\u6ec5\u5f8c\u3001\u6d88\u706f\u3002\u305d\u306e\u5f8c\u306f\u4f55\u3082\u8a00\u308f\u3093\u3002 \u5bfe\u7b56 \u5143\u6c17\u306a\u30e9\u30ba\u30d1\u30a4\u3067\u4fee\u5fa9\u30b3\u30de\u30f3\u30c9\u3002(\u3060\u3081\u3082\u3068\u3067\u3084\u3063\u3066\u307f\u3088\u3002) \u624b\u9806 1.SD\u30ab\u30fc\u30c9\u306edevice name\u306a\u306b\uff1f sudo fdisk -l Devic&hellip; <a class=\"more-link\" href=\"https:\/\/okamoto3.com\/index.php\/2021\/10\/28\/sdcard-check\/727\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">raspberry pi\u8d77\u52d5\u3057\u306a\u3044SD\u30ab\u30fc\u30c9\u306e\u5fa9\u6d3b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[23,267,135,213],"tags":[126,121,268],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-sd-card","category-memorandum","category-all-articles","tag-raspberry-pi","tag-micro-sd","tag-268","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":22,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":764,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/727\/revisions\/764"}],"wp:attachment":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}