← Back to team overview

sslug-teknik team mailing list archive

Re: Kan man køre 'badblocks' på et mounted filsystem?

 

In <aa44u0$a61$1@xxxxxxxxxxxx> Lars =?ISO-8859-15?Q?H=F8yrup?= Jensen <robinhat@xxxxxx> writes:

>Hej med-SSLUG'ere.

>Jeg har min IBM harddisk mistænkt for at have bad blocks. Jeg vil derfor 
>gerne checke de forskellige partitioner for med 'badblocks'-programmet. Jeg 
>har allerede gjort det med de partitioner, jeg kunne unmounte, men jeg 
>mangler /boot og /. Kan man køre badblocks på et mounted filsystem, eller 
>går det så i stykker? 

Du kan ikke lave read-write test på et mounted filsystem. Fra badblocks(8):

       -f     Normally, badblocks will refuse to do a  read/write
              or  a  non-destructive  test  on  a device which is
              mounted, since this can cause the system to  poten­
              tially  crash.   This  can be overriden using the 
              -f flag, but this should not be done under normal cir­
              cumstances.   The  only time when this option might
              be safe is if the /etc/mtab file is incorrect,  and
              the device really isn't mounted.
-- 
Henrik Storner <henrik@xxxxxxx> 



Follow ups

References