Date: Wed, 31 Aug 2011 13:31:31 -0500 (CDT) From: Robert Bonomi <bonomi@mail.r-bonomi.com> To: basarevych@gmail.com, bonomi@mail.r-bonomi.com, freebsd-questions@freebsd.org Subject: Re: Is there way to get filename for specific LBA? Message-ID: <201108311831.p7VIVVWg068790@mail.r-bonomi.com> In-Reply-To: <201108311826.p7VIQRCY068730@mail.r-bonomi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org Wed Aug 31 13:27:07 2011 > 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 > Cc: > Subject: Re: Is there way to get filename for specific LBA? > > > 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> And I would be WRONG. *sigh* can't seek on /dev/null, needs to be 'skip', or 'iseek' for the the 'if'. > > # 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. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108311831.p7VIVVWg068790>