Is there way to get filename for specific LBA?

Robert Bonomi bonomi at mail.r-bonomi.com
Wed Aug 31 18:30:05 UTC 2011


> From owner-freebsd-questions at freebsd.org  Wed Aug 31 13:27:07 2011
> Date: Wed, 31 Aug 2011 13:26:27 -0500 (CDT)
> From: Robert Bonomi <bonomi at mail.r-bonomi.com>
> To: basarevych at gmail.com, freebsd-questions at freebsd.org
> Cc: 
> Subject: Re: Is there way to get filename for specific LBA?
>
> > 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>

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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list