Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2011 13:26:27 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        basarevych@gmail.com, freebsd-questions@freebsd.org
Subject:   Re: Is there way to get filename for specific LBA?
Message-ID:  <201108311826.p7VIQRCY068730@mail.r-bonomi.com>
In-Reply-To: <CANmv3=xTS-Gsm9V6mshvG=kryWJ%2B8DYfP6GMG34eyT8=H9xDbw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org  Tue Aug 30 22:14:58 2011
> Date: Wed, 31 Aug 2011 06:11:24 +0300
> From: Ross <basarevych@gmail.com>
> To: freebsd-questions@freebsd.org
> Subject: Is there way to get filename for specific LBA?
>
> Aug 31 05:13:24 da kernel: ad6: WARNING - READ_DMA UDMA ICRC error
> (retrying request) LBA=107491647
> #  dd if=/dev/ad6 of=/dev/null bs=1m seek=107491647 count=1
> dd: /dev/null: Inappropriate ioctl for device
>
> Another question: why does it fail?

*I* would call that a 'bug'.  <wry grin>
>
>
> # dd if=/dev/ad6 of=/var/tmp/xxxx bs=1m seek=107491647 count=1
> 1+0 records in
> 1+0 records out
> 1048576 bytes transferred in 0.026658 secs (39334650 bytes/sec)
>
> So no errors. I looked at bsdlabel a   it's partition f, /home. But what
> is the file name?

There's *no* easy way to find out.  You'll have to grovel through all
the filesystem metadata, and the layers of index blocks for every file
until you find the 'rgiht' one.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108311826.p7VIQRCY068730>