|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Fixing smartd "Offline uncorrectable sectors" *
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
JP Vossen wrote:
>> Date: Thu, 21 May 2009 04:53:31 -0400
>> From: "David A. Harding" <dave@dtrt.org>
>>
>> On Thu, May 21, 2009 at 01:20:37AM -0400, JP Vossen wrote:
>>> # dd if=/dev/zero of=/boot/zero; rm -f /boot/zero
>> That's really nifty, but doesn't badblocks do the same thing, with
>> better reporting, and while non-destructively testing used space also?
>>
>> I'm not criticizing, I'm just curious why you chose dd over badblocks.
>
> Two reasons.
>
> 1) I was not previously aware of 'badblocks'. Thanks for the pointer.
>
> 2) Even if I was, the man page very strongly recommends running it on an
> unmounted partition. That would have been hard to do with the server in
> the co-lo where I can't just boot a LiveCD or something. I guess I
> could have tried breaking the mirror and running on 1 half while
> checking the other half, but I worry that I'd have ended up with a
> non-booting machine.
>
> I was able to use dd non-destructively while the partition was mounted
> and the machine was running with minimal impact. Since it worked,
> great. If it hadn't I'd have asked this list for ideas of what else to
> try and found out about badblocks. :-)
>
> Later,
> JP
You can mount a partition read only or unmount it.
Then you can run e2fsck with the following:
e2fsck -p -f -c -C 0
-p automatically repairs problems
-f force the file system check
-c run badblocks
-C 0 display the progress bar
- --
Rev. LeRoy D. Cressy mailto:leroy@lrcressy.com /\_/\
http://lrcressy.com ( o.o )
Phone: 215-535-4037 > ^ <
Cell: 267-307-3527
gpg fingerprint: 62DE 6CAB CEE1 B1B3 359A 81D8 3FEF E6DA 8501 AFEA
For info on enigmail: http://lrcressy.com/linux/mozilla.pdf
For info on gpg: http://www.gnupg.org/
Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBSha3WauxGqN1iGbbAQLCmggAhMnQo+wv6t/IyeCqICDrSrjRFZB7A+sY
WGR81Y4IrXlayapBcna3ZF/4dxWLLxexq/81kjrd5QAqycBDHxkO2KNwSEh9Keky
ZHI89Sra25T1ykCUf8T/u51ZTawSusotRo4JO0/dYnFcFFWry2GptOkY3lY2F1xX
AsiXpgSTbKpfupQp8GYh1f7aBSU32iz5F7kNRt9XQbuP6CUi0w8aWnT84rb191a2
kWBUjzvgOEwSO3NUX1sWjMNPYP7DIJJ9HNwllXXcR+Eg6IRbbJu4DKe8rpvPT8Xq
af13WgpUk0cB6rkf4psPe7x/drc21HQ0xJPTKNs5gKBV+O6Bdq1s1A==
=oZrb
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|