xfs
[Top] [All Lists]

Re: "badblocks" for XFS?

To: Mike Burger <mburger@xxxxxxxxxxxxxxxxx>
Subject: Re: "badblocks" for XFS?
From: Stefan Smietanowski <stesmi@xxxxxxxxxx>
Date: Mon, 13 May 2002 14:33:36 +0200
Cc: linux-xfs@xxxxxxxxxxx
References: <Pine.LNX.4.44.0205130653090.3542-100000@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc1) Gecko/20020417
Mike Burger wrote:
I read on one of the redhat lists, this morning, about "badblocks" which acts as a low-level test utility for detecting physically bad blocks on your hard drive. However, the man page only seems to point to its use with ext2 (at least on my 7.1 system).

So...is there a badblocks-type utility for XFS formatted systems?


badblocks has no notion of the filesystem.

In default mode it doesn't even write to the drive, it only reads it, you can force it to write patterns via the -w switch, and after writing it then reads it back to see if it gets the same data as was written.

So, you're safe to use badblocks with any device, as long as you don't write anything to it.

Yes, even mounted filesystems work, and why shouldn't they?

As I said, as long asyou don't use -w, because if it's mounted you'll mes it up, if it's not mounted, you'll still mess it up :D

// Stefan




<Prev in Thread] Current Thread [Next in Thread>