Re: Blockpeek.. A little help please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 07, 2010 at 05:47:37PM -0700, steven765@xxxxxxxxx wrote:
> Hi, 
>    I'm trying to use blockpeek to open the contents of a file.  Inside the vm i ran debugfs: imap /test/findme   and got: inode 32642 is part of block group 4 located at block 131074, offset 0x0100
> 
> I try using 0x100 or 256 as the offset to blockpeek into that VM and get nonsense as a result.
> 
> Am I calculating the offset incorrectly, is there a better way to find a file's location on disk? And then open it? 
> 
> I'm just printing the return as a string from the buffer looping over size.  Is that incorrect? 
> Thanks again,
> Steve 

Oh, hey, sorry--I totally forgot to respond to your earlier email.
Would libguestfs possibly be a fit for what you're trying to do?  

http://libguestfs.org/

Dave


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux