Re: Bad block - file mapping

2006-02-23 Thread Dave Horsfall
On Sat, 18 Feb 2006, M. Warner Losh wrote: : LBA - slice/partition/offset - fs/inode - list of file names : Logic for the second step should be in fsck. Yea. I was kinda hoping to find a tool that would do that given the LBA of the disk... I can do the math by hand, but if I don't

Bad block - file mapping

2006-02-18 Thread M. Warner Losh
I have a hard disk that's been in service a long time. I recently installed the SMART monitoring tools. On occasion, I get reports of LBAs it can't read. I'd like to map the LBA to an actual file in the file system, if possible. Does anybody have any tools that can help me with this? I know I

Re: Bad block - file mapping

2006-02-18 Thread Bakul Shah
I have a hard disk that's been in service a long time. I recently installed the SMART monitoring tools. On occasion, I get reports of LBAs it can't read. I'd like to map the LBA to an actual file in the file system, if possible. Does anybody have any tools that can help me with this? I

Re: Bad block - file mapping

2006-02-18 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bakul Shah [EMAIL PROTECTED] writes: : I have a hard disk that's been in service a long time. I recently : installed the SMART monitoring tools. On occasion, I get reports of : LBAs it can't read. I'd like to map the LBA to an actual file in the :

Re: Bad block - file mapping

2006-02-18 Thread Markus Trippelsdorf
On Sat, Feb 18, 2006 at 10:21:45AM -0700, M. Warner Losh wrote: I have a hard disk that's been in service a long time. I recently installed the SMART monitoring tools. On occasion, I get reports of LBAs it can't read. I'd like to map the LBA to an actual file in the file system, if

Re: Bad block - file mapping

2006-02-18 Thread Wilko Bulte
On Sat, Feb 18, 2006 at 10:47:49AM -0700, M. Warner Losh wrote.. In message: [EMAIL PROTECTED] Bakul Shah [EMAIL PROTECTED] writes: : I have a hard disk that's been in service a long time. I recently : installed the SMART monitoring tools. On occasion, I get reports of : LBAs

Re: Bad block - file mapping

2006-02-18 Thread Bakul Shah
However, I'd kinda like to know which file that is. If it is a boring file (foo.o, say), I'd dd the bad block with 0's and then remove it. If it is a non-boring file, I'd try to recover it a couple of times, etc. So you want a function that does this?

Re: Bad block - file mapping

2006-02-18 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bakul Shah [EMAIL PROTECTED] writes: : However, I'd kinda like to know : which file that is. If it is a boring file (foo.o, say), I'd dd the : bad block with 0's and then remove it. If it is a non-boring file, :

Re: Bad block - file mapping

2006-02-18 Thread Maxim Konovalov
On Sat, 18 Feb 2006, 10:21-0700, M. Warner Losh wrote: I have a hard disk that's been in service a long time. I recently installed the SMART monitoring tools. On occasion, I get reports of LBAs it can't read. I'd like to map the LBA to an actual file in the file system, if possible. Does

Re: Bad block - file mapping

2006-02-18 Thread John-Mark Gurney
Warner Losh wrote this message on Sat, Feb 18, 2006 at 10:21 -0700: I have a hard disk that's been in service a long time. I recently installed the SMART monitoring tools. On occasion, I get reports of LBAs it can't read. I'd like to map the LBA to an actual file in the file system, if

Re: Bad block - file mapping

2006-02-18 Thread Daniel O'Connor
On Sunday 19 February 2006 06:26, Maxim Konovalov wrote: I know I need to get a new disk. In the mean time, I need to cope with these errors in a sane manner... May http://tinyurl.com/c7dr4 help? Ooh nice! Has anyone ported it? Looks like NetBSD's fsdb is structured pretty differently.