yuk7 / crext

Command-line based ext2/ext3/ext4 partitions/file reader for Windows.
https://git.io/crext
GNU General Public License v3.0
9 stars 2 forks source link

crext

Download

This tool is command-line ext partition reader for windows.

It can read and copy files from Ext2/Ext3/Ext4 partitions of Physical HDD/Disk image files.

Attention:This tool is now developing and testing.

Many command-line options and functions will be changed.

Usage

crext [options] ePath lPath

Options:
  -?, -h, --help                        Displays this help.
  -v, --version                         Displays version information.
  -f, --fopen <ImgFilePath>             Open Image File
  -l, --lp                              List Partitions
  -s, --sp <Partition name>             Set Partition
  -c, --cmd <ls|lsl|cp|size|mode|
                    ctime|mtime|atime>  Command

Arguments:
  ePath                                 Source Path(Ext Partition)
  lPath                                 Destination Path(Host's File System)

Example

List Partition Tables

>crext -l
/dev/sda4
/dev/sda5

List Files in Disk Image File

/bin directory in system.img

>crext -f system.img -c ls /bin
aapt
adb
akmd
alsaucm_test
am
amix
aplay
app_process
app_process32
...

List Files and detail in Disk Image File

/bin directory in system.img

>crext -f system.img -c lsl /bin
-rwxr-xr-x   418148  2015-09-19 12:25  aapt
-rwxr-xr-x   121072  2015-09-19 12:25  adb
-rwxr-xr-x    38184  2015-09-19 12:25  akmd
-rwxr-xr-x     9600  2015-09-19 12:25  alsaucm_test
-rwxr-xr-x      210  2015-09-19 12:25  am
-rwxr-xr-x     5364  2015-09-19 12:25  amix
-rwxr-xr-x    13784  2015-09-19 12:25  aplay
|rwxr-xr-x       13  2015-09-19 12:25  app_process
-rwxr-xr-x    13668  2015-09-19 12:25  app_process32
...

Copy file from ext partition in HDD

Reading disk is required an Administrator permission.

open /dev/sda5 partition & copy /boot/grub/grub.cfg to C:\grub.cfg

>crext -s /dev/sda5 -c cp /boot/grub/grub.cfg C:\grub.cfg
[====================] 100%  C:\grub.cfg

Show file details in HDD

Reading disk is required an Administrator permission.

open /dev/sda5 partition & show /bin/bash mode

>crext -s /dev/sda5 -c mode /bin/bash
-rwxr-xr-x

show /bin/bash access time

>crext -s /dev/sda5 -c atime /bin/bash
2016-01-14 02:52:14

show /bin/bash size

>crext -s /dev/sda5 -c size /bin/bash
1037464

License

This program licensed under GPLv3.