Is there way to get filename for specific LBA?
bonomi at mail.r-bonomi.com
Wed Aug 31 18:25:12 UTC 2011
> From owner-freebsd-questions at freebsd.org Tue Aug 30 22:14:58 2011
> Date: Wed, 31 Aug 2011 06:11:24 +0300
> From: Ross <basarevych at gmail.com>
> To: freebsd-questions at 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.
More information about the freebsd-questions