none
Restore file from ext4 File System RRS feed

  • Question

  • Hi everyone,

    The data is divided into 64 Kb blocks and than backed-up .In order to retrieve a file I need to have the ability to determine which 64 Kb data blocks contain the file data.

    After I determine which blocks contain the data I will request the blocks from our system and retrieve the file content.

    The whole trick is to find out which blocks contain the file data.

    I am working with EXT4 file system.

    I need to develop C++ application for File level restore for ext4 file system.

    Kindly help me.

    Thanks in advance.

    Thursday, April 10, 2014 7:03 AM

All replies

  • First do you want an application or a filesystem.  There are open source projects for EXT filesystems for Windows, for example http://sourceforge.net/projects/ext2fsd/   If you just want to have an application, I would recommend taking a look at the Linux source for EXT4 and learning the structures.  Windows will open a partition it does not know about such as EXT4 as a raw disk, which your application can then read, if you know the structure to follow.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, April 10, 2014 3:23 PM
  • Where is the data?

    1. Is the data in a file on a file system recognized by Windows (FAT, NTFS, CD, DVD)?
    2. Are you attaching a disk with an EXT4 partition to a Windows system?
    3. Are you accessing the EXT4 disk over the network from a Windows system?

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Thursday, April 10, 2014 9:02 PM
    Moderator
  • Hi

    Thanks for the response.

    Linux is installed in VM machine. So I have the vmdk file for that VM machine.

    I need to Analyze the file to find the content & other information of requested file.
    Obtaining the exact location where the requested file is located.
    Calculate the exact block information/number which will be required to construct the requested file.
    Once the blocks are fetched, append them and output as a file.

    Thanks

    Friday, April 11, 2014 11:31 AM
  • Thanks for the response, but you are not getting my question.

    I want to develop C++ application which will retrieve the requested file from VMDK file. The mount using VMware is not the way I am looking for.

    Thanks

    Friday, April 11, 2014 2:16 PM
  • Have you looked at the Virtual Disk Development Kit http://www.vmware.com/support/developer/vddk/  This gives you the tools to mount a VMDK under Windows at which point you can copy the file directly.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Friday, April 11, 2014 2:37 PM