Naprawa bad sektorów ubuntu


(zaba285) #1

Cześć,

mam na laptopie Win7 i Ubuntu. Win7 ostatnio zaczął szwankować, zrobiłem reinstall (uznałem, że po 8 latach nie zaszkodzi). Śmigał jak nowy, ale po miesiącu przestał się uruchamiać, nawet w trybie awaryjnym i próba reinstall z partycji z wbudowanym Win7 też nie działała, zawieszał się po kliknięciu napraw komputer. Trochę to było dziwne, bo Ubuntu jest od jakiś 6 lat i cały czas śmigał jak nowy więc zaczałem podejrzewać problem sprzętowy. No i się potwierdziło, Ubuntu widzi partycję z Win7 jako format nieznany, skanowanie badblocks pokazało 24 bad sektory na tej partycji (nie wiem niestety czy logiczne czy fizyczne, bo słabo ogarniam linuxa, od lat programuje głównie na Windows a linux sporadycznie używam).
Użyłem programu smartctl i dostałem taki wynik:

smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-116-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MK…56GSY
Device Model: TOSHIBA MK5056GSY
Serial Number: 40KJT36ET
LU WWN Device Id: 5 000039 271905a35
Firmware Version: LH002D
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Sat Apr 7 12:12:56 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 132) minutes.
SCT capabilities: (0x0039) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 128
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 2196
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 0
9 Power_On_Minutes 0x0032 053 053 000 Old_age Always - 19094h+36m
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 9225
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 673
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 81
193 Load_Cycle_Count 0x0032 078 078 000 Old_age Always - 220428
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 42 (Min/Max 15/50)
199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 204687050
200 Multi_Zone_Error_Rate 0x0032 100 100 000 Old_age Always - 498221263
240 Head_Flying_Hours 0x0032 064 064 000 Old_age Always - 880963
241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 233364364312
242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 230934480770
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 7324 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It “wraps” after 49.710 days.

Error 7324 occurred at disk power-on lifetime: 19093 hours (795 days + 13 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 41 42 18 00 d6 40 Error: WP at LBA = 0x00d60018 = 14024728

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


61 08 c0 88 db 06 40 00 00:00:44.749 WRITE FPDMA QUEUED
61 08 b8 00 db 06 40 00 00:00:44.748 WRITE FPDMA QUEUED
61 08 b0 58 da 06 40 00 00:00:44.748 WRITE FPDMA QUEUED
61 08 a8 d0 d9 06 40 00 00:00:44.748 WRITE FPDMA QUEUED
61 10 a0 38 d9 06 40 00 00:00:44.748 WRITE FPDMA QUEUED

Error 7323 occurred at disk power-on lifetime: 19093 hours (795 days + 13 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 41 ca 18 00 d6 40 Error: UNC at LBA = 0x00d60018 = 14024728

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


60 00 e8 00 fc d5 40 00 00:00:38.762 READ FPDMA QUEUED
60 00 e0 00 43 01 40 00 00:00:38.761 READ FPDMA QUEUED
60 00 d8 00 42 01 40 00 00:00:38.760 READ FPDMA QUEUED
60 f0 d0 10 41 01 40 00 00:00:38.758 READ FPDMA QUEUED
60 08 c8 18 00 d6 40 00 00:00:38.751 READ FPDMA QUEUED

Error 7322 occurred at disk power-on lifetime: 19093 hours (795 days + 13 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 41 1a 18 00 d6 40 Error: UNC at LBA = 0x00d60018 = 14024728

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


60 08 88 00 40 61 40 00 00:00:22.784 READ FPDMA QUEUED
60 68 80 88 ff d5 40 00 00:00:22.783 READ FPDMA QUEUED
60 80 78 00 ff d5 40 00 00:00:22.783 READ FPDMA QUEUED
60 f8 70 00 fe d5 40 00 00:00:22.782 READ FPDMA QUEUED
60 00 68 00 fd d5 40 00 00:00:22.780 READ FPDMA QUEUED

Error 7321 occurred at disk power-on lifetime: 19093 hours (795 days + 13 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 41 aa 18 00 d6 40 Error: UNC at LBA = 0x00d60018 = 14024728

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


60 00 b8 00 fc d5 40 00 00:00:19.511 READ FPDMA QUEUED
60 00 b0 00 43 01 40 00 00:00:19.509 READ FPDMA QUEUED
60 08 a8 18 00 d6 40 00 00:00:19.500 READ FPDMA QUEUED
60 00 a0 00 42 01 40 00 00:00:19.495 READ FPDMA QUEUED
60 f0 98 10 41 01 40 00 00:00:19.495 READ FPDMA QUEUED

Error 7320 occurred at disk power-on lifetime: 19089 hours (795 days + 9 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH


40 41 1a 82 d7 e0 40 Error: UNC at LBA = 0x00e0d782 = 14735234

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name


60 80 18 80 d7 e0 40 00 09:22:56.829 READ FPDMA QUEUED
60 80 10 00 d7 e0 40 00 09:22:56.511 READ FPDMA QUEUED
60 80 08 80 d6 e0 40 00 09:22:56.510 READ FPDMA QUEUED
60 80 00 00 d6 e0 40 00 09:22:56.509 READ FPDMA QUEUED
60 80 f0 80 d5 e0 40 00 09:22:56.508 READ FPDMA QUEUED

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Napiszcie mi proszę, czy jest jakaś opcja naprawy z poziomu Ubuntu jeśli bad sektory sa logiczne, czy fizyczne i dysk na śmietnik. Nie zajmuje się sprzętem już ponad 8 lat więc już tego nie ogarniam. Z góry dziękuje za odpowiedzi.


(Domker) #2

Po logu nie widać, żeby były relokowane bad sektory. (fiz. uszkodzenia sektorów)

Możesz spróbować potraktować partycję ntfs z konsolki wpisując:
sudo ntfsfix -b /dev/sdxX, ale raczej nie liczyłbym na naprawę systemu plików NTFS.

Windows raczej od zera bym próbował reinstalować niż używać funkcji napraw komputer. (oczywiście nadpisze Ci to GRUB’a)


(zaba285) #3

Dziękuje. Będę pewnie próbował instalować od zera, bo instalacja z wbudowanej partycji nie rusza (komp się zawiesza), skoro jeszcze jest nadzieja.
Linux widzi format partycji jako “nieznany” a nie ntfs, ale i tak na wszelki wypadek wpisałem to co napisałeś do konsoli i niestety nic się nie zmieniło.


(saturno) #4

I koniecznie pełne formatowanie partycji a nie szybkie.