* block -> name ?
@ 2004-04-12 6:41 Daniel Brahneborg
2004-04-13 0:41 ` Nathan Scott
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Brahneborg @ 2004-04-12 6:41 UTC (permalink / raw)
To: linux-kernel
Hi,
Recently my computer running Linux kernel 2.4.25 started
halting all of a sudden, and running badblocks a couple
of times showed that it was caused by reading around block
20.200.000 on one of the SATA disks. I'll replace the
drive eventually, but is there a way of finding out what
file is currently residing in a specific block? I'd prefer
something a bit more efficient than doing a 'wc' on 300GB
of data (which also would miss all the directories). To
make things more interesting, the disk is 1 of 4 in a RAID5
array, and is formatted with XFS.
Best regards,
/Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: block -> name ?
2004-04-12 6:41 block -> name ? Daniel Brahneborg
@ 2004-04-13 0:41 ` Nathan Scott
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Scott @ 2004-04-13 0:41 UTC (permalink / raw)
To: Daniel Brahneborg; +Cc: linux-kernel, linux-xfs
On Mon, Apr 12, 2004 at 08:41:48AM +0200, Daniel Brahneborg wrote:
> Hi,
>
> Recently my computer running Linux kernel 2.4.25 started
> halting all of a sudden, and running badblocks a couple
> of times showed that it was caused by reading around block
> 20.200.000 on one of the SATA disks. I'll replace the
> drive eventually, but is there a way of finding out what
> file is currently residing in a specific block? I'd prefer
> something a bit more efficient than doing a 'wc' on 300GB
> of data (which also would miss all the directories). To
> make things more interesting, the disk is 1 of 4 in a RAID5
> array, and is formatted with XFS.
>
> Best regards,
See xfs_db(8) and its blockget/blockuse commands.
cheers.
--
Nathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-13 0:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-12 6:41 block -> name ? Daniel Brahneborg
2004-04-13 0:41 ` Nathan Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®