Re: How to verify block numbers of file ?

2011-03-08 Thread kashish bhatia
Hi, Manish I used debugfs . But it is not showing the required output. [root@KASHISH mnt]# debugfs debugfs 1.41.9 (22-Aug-2009) debugfs: ncheck 14 ncheck: Filesystem not open debugfs: stat 14 stat: Filesystem not open I mounted my ext2 fs which I created on /dev/sda5 in /mnt directory and

Re: How to verify block numbers of file ?

2011-03-08 Thread kashish bhatia
yaah, I read the man page It can be done in following way [root@KASHISH KASHISH]# debugfs debugfs 1.41.9 (22-Aug-2009) debugfs: open -c /dev/sda5 /dev/sda5: catastrophic mode - not reading inode or group bitmaps debugfs: stat 14 Inode: 14 Type: regularMode: 0644 Flags: 0x0

How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to verify block numbers of file ?

2011-02-20 Thread Abhijit Hoskeri
On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? The FIBMAP ioctl gives you the block number give an integer, which is the nth block attached to the inode.

Re: How to verify block numbers of file ?

2011-02-20 Thread abhi
Install sleuthkit. It has a bunch of utilities to examine metadata, blocks, etc. Specifically, checkout istat. On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri abhijithosk...@gmail.comwrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? The FIBMAP ioctl

Re: How to verify block numbers of file ?

2011-02-20 Thread Manish Katiyar
On Sun, Feb 20, 2011 at 5:22 AM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? Use debugfs which comes with e2fsprogs. -- Regards, Kashish

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Hi, Manish How to use debugfs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to verify block numbers of file ?

2011-02-20 Thread Manish Katiyar
On Sun, Feb 20, 2011 at 10:05 AM, kashish bhatia kooles...@gmail.com wrote: Hi, Manish How to use debugfs? debugfs: ncheck 12 Inode Pathname 12 //abc debugfs: stat 12 Inode: 12 Type: regularMode: 0644 Flags: 0x0 Generation: 143681507Version: 0x User: 1000

Re: How to verify block numbers of file ?

2011-02-20 Thread SandeepKsinha
On Sun, Feb 20, 2011 at 8:47 PM, kashish bhatia kooles...@gmail.com wrote: On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri abhijithosk...@gmail.com wrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the

Re: How to verify block numbers of file ?

2011-02-20 Thread Greg Freemyer
On Sun, Feb 20, 2011 at 9:02 AM, Abhijit Hoskeri abhijithosk...@gmail.com wrote: On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia kooles...@gmail.com wrote: Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? The FIBMAP ioctl gives