1 |
On 07/27/2014 06:50:49 PM, meino.cramer@×××.de wrote: |
2 |
> Hi Mick, |
3 |
> |
4 |
> thanks for your reply on the topic. |
5 |
> |
6 |
> I executed the mkswap/dd combo a several times today. Since I have |
7 |
> no logs I repeated again. Here are the results: |
8 |
> |
9 |
> solfire:/home/user>mkswap -L swap -f -c /dev/sda2 |
10 |
> 1 bad page |
11 |
> mkswap: /dev/sda2: warning: wiping old swap signature. |
12 |
> Setting up swapspace version 1, size = 6291448 KiB |
13 |
> LABEL=swap, UUID=e742c0a6-862c-41e9-be4b-698b33c5a236 |
14 |
> solfire:/home/user>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc |
15 |
> dd: error writing ‘/dev/sda2’: Input/output error |
16 |
> 1669369+0 records in |
17 |
> 1669368+0 records out |
18 |
> 854716416 bytes (855 MB) copied, 28.4799 s, 30.0 MB/s |
19 |
> [1] 24047 exit 1 dd if=/dev/zero of=/dev/sda2 bs=512 |
20 |
> conv=notrunc |
21 |
> solfire:/home/user> |
22 |
> |
23 |
> |
24 |
> I am a little anxious about the hdparm command... |
25 |
> For me it is unclear what sector is meant: |
26 |
> |
27 |
> smartclt says: |
28 |
> Num Test_Description Status Remaining |
29 |
> LifeTime(hours) LBA_of_first_error |
30 |
> # 1 Selective offline Completed: read failure 90% |
31 |
> 14500 4288352511 |
32 |
> |
33 |
> From a previous posting I learned that "LBA" in this case is the byte |
34 |
> counter. |
35 |
> |
36 |
> The sector is therefore 4288352511/512=8375688 |
37 |
> |
38 |
> However as a result of the dd command above I found this in the dmesg |
39 |
> log: |
40 |
> |
41 |
> [48588.471905] end_request: I/O error, dev sda, sector 1773816 |
42 |
> |
43 |
> Now...what sector count fits what sector count ... ? |
44 |
> |
45 |
> I will not fire zeroes towards my hd this way before I know exactly |
46 |
> to what I am shooting at... ;) |
47 |
> |
48 |
> Any light in all this shadow is heartly appreciated... |
49 |
> |
50 |
> Best regards, |
51 |
> mcc |
52 |
> |
53 |
Here a few observations: First, smartctl starts counting at the very |
54 |
first sector of the drive |
55 |
while dd starts counting at the first sector of the partition. So, find |
56 |
out where the partition starts |
57 |
by using fdisk and add the partition offset to the number given by dd. |
58 |
|
59 |
Second, if your file system is ext{2,3,4} try using fsdebug as |
60 |
described in |
61 |
file:///home/jarausch/GenToo/Hints/Smartmontools_badblockhowto.html |
62 |
|
63 |
Third, as far as I understand, smartctl's '-t select' option lets you |
64 |
test |
65 |
specific ranges of the disk. You could try to start the test after the |
66 |
defective sector. |
67 |
|
68 |
Helmut |