mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
ログ
smartd[534]: Device: /dev/sdb [SAT], 4 Offline uncorrectable sectors
sudo smartctl -A /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.8.0-59-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.8.0-59-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 173 171 021 Pre-fail Always - 6325 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 159 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 028 028 000 Old_age Always - 52883 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 93 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 70 193 Load_Cycle_Count 0x0032 158 158 000 Old_age Always - 127529 194 Temperature_Celsius 0x0022 121 097 000 Old_age Always - 29 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 001 001 000 Old_age Always - 65528 198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 4 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 1 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 10
sudo smartctl -t short /dev/sdb
Testing has begun.
Please wait 2 minutes for test to complete. Test will complete after Sat May 19 20:26:10 20182分待てと出たので待つ。容量によっては時間が変わる。
sudo smartctl -l selftest /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.8.0-59-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed: read failure 90% 52883 127803448
sudo dumpe2fs -h /dev/sdb1 | grep Block
dumpe2fs 1.43.3 (04-Sep-2016) Block count: 488378000 Block size: 4096 Blocks per group: 32768
バッドセクタのチェック
badblocks.txtに以下の様に書き出される。
結構あるなー。。。
75497472
75497473
77878496
77878497
77878498
77878499
77878500
77878501
77878502
146801524
146801525
146801526
146801527
146801528
146801529
146801530
146801531
176160768
176160769
176160770
176160771
sudo badblocks -vs -o badblocks.txt /dev/sdb1
badblocks.txtに以下の様に書き出される。
結構あるなー。。。
75497472
75497473
77878496
77878497
77878498
77878499
77878500
77878501
77878502
146801524
146801525
146801526
146801527
146801528
146801529
146801530
146801531
176160768
176160769
176160770
176160771
データしか置いていないので、修正は全部yesで
sudo e2fsck -y -l badblocks.txt /dev/sdb1
smartctlでチェック
sudo smartctl -t short /dev/sdb
sudo smartctl -l selftest /dev/sdb
※エラーがない場合結果の行が増えないので、selftestは先に結果だけ取って置いた方がいいかも?
sudo mount -a
で無事マウント。
0 件のコメント:
コメントを投稿