1 |
Am 26.07.2014 12:26, schrieb meino.cramer@×××.de: |
2 |
> Mick <michaelkintzios@×××××.com> [14-07-26 11:28]: |
3 |
>> On Saturday 26 Jul 2014 02:49:15 meino.cramer@×××.de wrote: |
4 |
>>> Hi, |
5 |
>>> |
6 |
>>> After running smartctl for an extended offline test I got |
7 |
>>> a badblock (information extracted from the report): |
8 |
>>> |
9 |
>>> SMART Self-test log structure revision number 1 |
10 |
>>> Num Test_Description Status Remaining LifeTime(hours) |
11 |
>>> LBA_of_first_error # 1 Extended offline Completed: read failure |
12 |
>>> 90% 14460 4288352511 197 Current_Pending_Sector 0x0032 200 |
13 |
>>> 200 000 Old_age Always - 1 |
14 |
>>> |
15 |
>>> I found a explanation to map the LBA to a partition here: |
16 |
>>> http://smartmontools.sourceforge.net/badblockhowto.html |
17 |
>>> |
18 |
>>> My partition layout is: |
19 |
>>> #> sudo fdisk -lu /dev/sda |
20 |
>>> |
21 |
>>> Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors |
22 |
>>> Units: sectors of 1 * 512 = 512 bytes |
23 |
>>> Sector size (logical/physical): 512 bytes / 512 bytes |
24 |
>>> I/O size (minimum/optimal): 512 bytes / 512 bytes |
25 |
>>> Disklabel type: dos |
26 |
>>> Disk identifier: 0x07ec16a2 |
27 |
>>> |
28 |
>>> Device Boot Start End Blocks Id System |
29 |
>>> /dev/sda1 * 2048 104447 51200 83 Linux |
30 |
>>> /dev/sda2 104448 12687359 6291456 82 Linux swap / Solaris |
31 |
>>> /dev/sda3 12687360 222402559 104857600 83 Linux |
32 |
>>> /dev/sda4 222402560 1953525167 865561304 5 Extended |
33 |
>>> /dev/sda5 222404608 232890367 5242880 83 Linux |
34 |
>>> /dev/sda6 232892416 442607615 104857600 83 Linux |
35 |
>>> /dev/sda7 442609664 652324863 104857600 83 Linux |
36 |
>>> /dev/sda8 652326912 862042111 104857600 83 Linux |
37 |
>>> /dev/sda9 862044160 1071759359 104857600 83 Linux |
38 |
>>> /dev/sda10 1071761408 1281476607 104857600 83 Linux |
39 |
>>> /dev/sda11 1281478656 1491193855 104857600 83 Linux |
40 |
>>> /dev/sda12 1491195904 1953525167 231164632 83 Linux |
41 |
>>> 4288352511 <<< The number reported by smartctl |
42 |
>>> |
43 |
>>> |
44 |
>>> Following the linked document... |
45 |
>>> It seems the bad LBA is not on the checked harddisk. |
46 |
>>> |
47 |
>>> Or (more obvious) I did something wrong... |
48 |
>> You are probably comparing different units. The Start and End of fdisk are |
49 |
>> reporting sectors, each sector being 512 bytes. Therefore if the LBA is |
50 |
>> reported by smartctl in bytes, you have: |
51 |
>> |
52 |
>> 4,288,352,511 ÷ 512 = 8,375,688.5 |
53 |
>> |
54 |
>> which would place it within your swap partition. |
55 |
>> |
56 |
>> I would do this: |
57 |
>> |
58 |
>> swapoff /dev/sda2 |
59 |
>> |
60 |
>> dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc |
61 |
>> |
62 |
>> mkswap -L swap -c /dev/sda2 |
63 |
>> |
64 |
>> swapon /dev/sda2 |
65 |
>> |
66 |
>> and hopefully the problem will be gone when you run the next smartctl test. |
67 |
>> |
68 |
>> -- |
69 |
>> Regards, |
70 |
>> Mick |
71 |
> |
72 |
> Sorry for stuutering postings...overlocked this one: |
73 |
> #>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc |
74 |
> dd: error writing ‘/dev/sda2’: Input/output error |
75 |
> |
76 |
> Hrrrmpfff... |
77 |
> |
78 |
> Why does it nt remap those ones? |
79 |
> |
80 |
> Best regards, |
81 |
> mcc |
82 |
> |
83 |
> |
84 |
> |
85 |
> |
86 |
> |
87 |
> |
88 |
> |
89 |
smartctl -a /dev/sda |
90 |
|
91 |
without those information: crystal ball. |
92 |
|
93 |
that said: it is swap. You shouldn't have to do anything. Don't touch dd. |