[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Badblocks funktioniert nur mit einigen Blockgrößen



Moin,

 

beim badblocks, z. B. beim /sbin/badblocks aus dem Paket

e2fsprogs, Architecture: amd64, Version: 1.41.5-1, ist mir

aufgefallen, das es bei den Blockgrößen

 

3
64 (default)
1000
1024
2048
4096
8192
16384
32768
65536
131072



fehlerfrei arbeitet, aber mit den Blockgrößen

 

1234
8190
8191
12345
16386
54321
65636

 

fehlerhaft; beispielsweise wird damit bei fehlerfreien Datenträgern massenhaft

Fehler gemeldet.

Aufgefallen ist es mir zuerst an SAS-HDDs, aber auch bei SATA-HDDs und

Speicherkarten verhält sich badblocks gleich.

 

Hier ein paar Beispiele mit einer xD-Karte:

 

> badblocks -wsv -t random /dev/sdb
Checking for bad blocks in read-write mode
>From block 0 to 255999
Testing with random pattern: done
Reading and comparing: done
Pass completed, 0 bad blocks found.

> badblocks -c 3 -wsv -t random /dev/sdb
Checking for bad blocks in read-write mode
>From block 0 to 255999
Testing with random pattern: done
Reading and comparing: done
Pass completed, 0 bad blocks found.

> badblocks -c 1234 -wsv -t random /dev/sdb
Checking for bad blocks in read-write mode
>From block 0 to 255999
Testing with random pattern: done
Reading and comparing:
...
done
Pass completed, 253542 bad blocks found.

> badblocks -c 8190 -wsv -t random /dev/sdb
Checking for bad blocks in read-write mode
>From block 0 to 255999
Testing with random pattern: done
Reading and comparing:
...
done
Pass completed, 239634 bad blocks found.



Dazu sollte ein Bugreport gemacht werden, oder?

 

BTW: Zum badblocks ein kleiner Tip für einen Frühjahrsputz:

 

cd /dev; for i in $(ls hd? sd? fd0 fd1); do badblocks -fw -t random "$i" & done

 

Gruß,

 

Rolf

 


Reply to: