Low level hard drive reading

2009-04-02 Thread Gabriel
Hello, I have to write linux application that will analyze disk/partition (ext3 filesystem) on really low level. It has to find/analyze files on the disk by reading disk blocks to analyze file's headers to find out file type and then blocks related to file to get file content. The second

Re: Low level hard drive reading

2009-04-02 Thread Jeremiah Dodds
On Thu, Apr 2, 2009 at 12:36 PM, Gabriel dun...@dreams.sk wrote: Hello, I have to write linux application that will analyze disk/partition (ext3 filesystem) on really low level. It has to find/analyze files on the disk by reading disk blocks to analyze file's headers to find out file type and

Re: Low level hard drive reading

2009-04-02 Thread Kushal Kumaran
On Thu, 02 Apr 2009 13:36:24 +0200 Gabriel dun...@dreams.sk wrote: Hello, I have to write linux application that will analyze disk/partition (ext3 filesystem) on really low level. It has to find/analyze files on the disk by reading disk blocks to analyze file's headers to find out file type

Re: Low level hard drive reading

2009-04-02 Thread Grant Edwards
On 2009-04-02, Gabriel dun...@dreams.sk wrote: For example can i open disk image file and read it block by block? Sure. Just open the file, seek to where you want and read it. Or, it'll probably be simpler to just mmap the file and then grab blocks using slices as indexes. -- Grant Edwards