
今日はBtrfsのバッドセクタ リペアーをネタにします。
Btrfsは優れもので起動してマウントした状態でもセクタチェックできます。
コマンド一行です。
その代わりにfsckなどが使えません。
●バッドセクタのリペアー
USBメモリやSSDを使っている場合は定期的にリペアしましょう。
Btrfsの場合は下記コマンドで。詳しくはArchWikiを参考に。
/dev/sda1がFAT32のEFI領域なので外して、ROOTの/dev/sda2を実行。
sudo btrfs check -p --force --mode=lowmem /dev/sda2
するとこんな表示が。
定期的に行ってバッドセクタ対策を行いましょう。
放置すると不安定になって、いつか死にますかもしれません。
Opening filesystem to check...
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/sda2
UUID: 37360a78-〇〇〇〇-△△△△-b29f-9fd3b23aa03d
[1/7] checking root items (0:00:00 elapsed, 117406 items checked)
[2/7] checking extents (0:00:00 elapsed, 1 items chec[2/7] checking extents (0:00:01 elapsed, 31 items che
[2/7] checking extents (0:00:02 elapsed, 73 items che[2/7] checking extents (0:00:03 elapsed, 185 items ch
[2/7] checking extents (0:00:04 elapsed, 509 items ch[2/7] checking extents (0:00:05 elapsed, 4996 items c
[2/7] checking extents (0:00:06 elapsed, 13869 items [2/7] checking extents (0:00:07 elapsed, 18651 items [2/7] checking extents (0:00:07 elapsed, 18737 items checked)
[3/7] checking free space cache (0:00:00 elapsed, 3 items chec[3/7] checking free space cache (0:00:00 elapsed, 23 items checked)
[4/7] checking fs roots (0:00:00 elapsed, 1 items chec[4/7] checking fs roots (0:00:01 elapsed, 134 items ch
(中略)
[4/7] checking fs roots (0:01:05 elapsed, 15070 items checked)
[5/7] checking csums (without verifying data) (0:00:00 elapsed, 10341 items checked)
[6/7] checking root refs done with fs roots in lowmem mode, skipping
[7/7] checking quota groups skipped (not enabled on this FS)
found 18780639232 bytes used, no error found
total csum bytes: 17303448
total tree bytes: 308051968
total fs tree bytes: 276529152
total extent tree bytes: 10321920
btree space waste bytes: 51573960
file data blocks allocated: 19384983552
referenced 18307563520
【Ubuntuの最新記事】
- Ubuntu改造日記 20.04〜 ラン..
- Ubuntu改造日記 節電設定 TLPの..
- Ubuntu改造日記 省メモリ Fire..
- Ubuntu改造日記 22.04〜 Gr..
- Ubuntu改造日記 メモリ+スワップ満..
- Ubuntu改造日記 Swap圧縮 zw..
- Ubuntu改造日記 wubi for ..
- Ubuntu改造日記 コマンドラインでS..
- Ubuntu改造日記 省メモリ キャッシ..
- Ubuntu改造日記 3,000円ジャン..
- Ubuntu改造日記 簡易ファイルサーバ..
- Ubuntu改造日記 16bit x86..
- Ubuntu改造日記 OpenMSX+M..
- Ubuntu改造日記 OpenMSX-c..
- Ubuntu改造日記 キーボード故障対策..
- Ubuntu改造日記 CF-SZ5でCU..
- Ubuntu改造日記 最近のSteam+..
- Ubuntu改造日記 USBメモリ、SS..
- Ubuntu改造日記 オープンソース初代..
- Ubuntu改造日記 Onenote &..