On 07/27/2014 06:50:49 PM, meino.cra...@gmx.de wrote:
Hi Mick,

thanks for your reply on the topic.

I executed the mkswap/dd combo a several times today. Since I have
no logs I repeated again. Here are the results:

solfire:/home/user>mkswap -L swap -f -c /dev/sda2
1 bad page
mkswap: /dev/sda2: warning: wiping old swap signature.
Setting up swapspace version 1, size = 6291448 KiB
LABEL=swap, UUID=e742c0a6-862c-41e9-be4b-698b33c5a236
solfire:/home/user>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
dd: error writing ‘/dev/sda2’: Input/output error
1669369+0 records in
1669368+0 records out
854716416 bytes (855 MB) copied, 28.4799 s, 30.0 MB/s
[1] 24047 exit 1 dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
solfire:/home/user>


I am a little anxious about the hdparm command...
For me it is unclear what sector is meant:

smartclt says:
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Selective offline Completed: read failure 90% 14500 4288352511

From a previous posting I learned that "LBA" in this case is the byte
counter.

The sector is therefore 4288352511/512=8375688

However as a result of the dd command above I found this in the dmesg log:

[48588.471905] end_request: I/O error, dev sda, sector 1773816

Now...what sector count fits what sector count ... ?

I will not fire zeroes towards my hd this way before I know exactly
to what I am shooting at... ;)

Any light in all this shadow is heartly appreciated...

Best regards,
mcc

Here a few observations: First, smartctl starts counting at the very first sector of the drive while dd starts counting at the first sector of the partition. So, find out where the partition starts
by using fdisk and add the partition offset to the number given by dd.

Second, if your file system is ext{2,3,4} try using fsdebug as described in
file:///home/jarausch/GenToo/Hints/Smartmontools_badblockhowto.html

Third, as far as I understand, smartctl's '-t select' option lets you test specific ranges of the disk. You could try to start the test after the defective sector.

Helmut


Reply via email to