[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Markering af bad blocks på en HD



On Thu, 24 Nov 2011 14:37:44 +0100
"Jens Bang" <sslug@sslug> wrote:

> Nu er jeg ved at være igennem testen af min hard disk. Jeg har
> bl.a. foretaget en cp -a af hele disken over på en anden disk,
> uden at opleve læsefejl, så jeg tror ikke der er problemer med ee
> eksisterende filer.
> 
> Jeg mangler kun at markere de blokke der blev fundet under
> kørslen af badblocks (se nedenfor) så de ikke bliver brugt.
> 
> Hvordan gør jeg det? Kan jeg bruge badblocks -w til det? Eller
> skal der noget andet til?
> 
> Jeg ved godt at det ikke er smart at bruge en disk med fejl på.
> Men indtil jeg får nogle penge ind, så jeg kan købe en ny disk,
> så er jeg nødt til at tage chancen, og så sørge for at tage
> backup ofte.
> 
> -- Jens
> 
> Output fra badblocks:
> 
> $badblocks -nvs /dev/sdb
> 
> Checking for bad blocks in non-destructive read-write mode
> From block 0 to 488386583
> Checking for bad blocks (non-destructive read-write test)
> Testing with random pattern:  19.64% done, 3:29:32 elapsed
>  20.00% done, 3:33:23 elapsed
> 245749184one, 9:21:16 elapsed
> 245749208one, 9:21:48 elapsed
> 245749209one, 9:22:03 elapsed
> 245749210one, 9:22:19 elapsed
> 245749211one, 9:22:35 elapsed
>  68.86% done, 15:45:52 elapsed

Uha ikke badblocks -w !!! Den skriver destruktivt på disken.

Men klip numrene fra listen herover, en ad gangen i en fil (det ser
iøvrigt grimt ud med både -n -v og -s options - så du har jo ikke
fået en liste ud af det, sådan som man ville få med fx. badblocks
-nvs  -o /usbdisk/badblock-liste.txt

Men der er jo ikke så mange badblocks, så læg dem i en fil og kør:


fsck -L /usbdisk/badblock-liste.txt


Manual-page for e2fsck forklarer syntaxen, her har jeg bare
kigget efter -L bad_blocks_file.

 e2fsck  [  -pacnyrdfkvtDFV  ] [ -b superblock ] [ -B blocksize ]
[ -l|-L bad_blocks_file  ]  [  -C  fd  ]  [   -j
external-journal   ]   [   -E extended_options ] device


-- 
Donald Axel <sslug@sslug>


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2011-12-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *