[Android Q&A, Help & Troubleshooting] Raunak09:
Hello.

I am using a Virtualbox with Ubuntu 16.04 as guest and Windows 10 as host.

I have also got the guest additions installed in Ubuntu. But the problem is that whenever i try to run the command "sudo ./simg2img system.img sys.raw" i get an error stating "sudo: unable to execute ./simg2img: No such file or directory"

I also have the simg2img binary in the same directory as my system.img sparse image is in and i have also given the binary executable permissions by typing this command and i was successful.Here is the output of the ls -l command of the directory in which the simg2img binary is in:-

raunak@raunak-VirtualBox:/media/base$ sudo chmod +x simg2img
raunak@raunak-VirtualBox:/media/base$ sudo ./simg2img system.img sys.raw
sudo: unable to execute ./simg2img: No such file or directory
raunak@raunak-VirtualBox:/media/base$ ls -l
total 2712719
-rwxrwxrwx 1 root root 374272 Apr 23 2015 AndImgTool.exe
drwxrwxrwx 1 root root 8192 Sep 15 18:37 android-simg2img-master
-rwxrwxrwx 1 root root 137008 Dec 14 2015 APDB_MT6735_S01_L1.MP3_W15.47
-rwxrwxrwx 1 root root 3593 Sep 15 17:39 append2simg.c
-rwxrwxrwx 1 root root 9119 Sep 15 17:39 backed_block.c
-rwxrwxrwx 1 root root 2498 Sep 15 17:39 backed_block.h
drwxrwxrwx 1 root root 0 Sep 14 16:25 Binaries
drwxrwxrwx 1 root root 0 Sep 12 23:38 boot
-rwxrwxrwx 1 root root 7696384 Dec 14 2015 boot.img
-rwxrwxrwx 1 root root 8238962 Dec 14 2015 BPLGUInfoCustomAppSrcP_MT6735_S00_MOLY_LR9_W1444_MD_LWTG_MP_V26_P23_1_lwg_n
-rwxrwxrwx 1 root root 8388912 Dec 14 2015 cache.img
-rwxrwxrwx 1 root root 758 Sep 15 17:39 defs.h
-rwxrwxrwx 1 root root 4307 Sep 15 17:39 ext4_utils.h
-rwxrwxrwx 1 root root 31711 Sep 12 23:38 file_contexts
-rwxrwxrwx 1 root root 5485902 Sep 13 18:14 img2sdat.exe
-rwxrwxrwx 1 root root 862 Sep 13 18:21 img2sdat.pyc
-rwxrwxrwx 1 root root 284028 Sep 13 18:20 img2simg
-rwxrwxrwx 1 root root 2488 Sep 15 17:39 img2simg.c
drwxrwxrwx 1 root root 0 Sep 15 17:39 include
-rwxrwxrwx 1 root root 296420 Dec 14 2015 lk.bin
-rwxrwxrwx 1 root root 1647621 Dec 14 2015 logo.bin
-rwxrwxrwx 1 root root 514152 Sep 12 22:38 make_ext4fs
-rwxrwxrwx 1 root root 1775 Sep 15 17:39 Makefile
drwxrwxrwx 1 root root 0 Sep 12 23:25 META-INF
-rwxrwxrwx 1 root root 9373 Dec 14 2015 MT6753_Android_scatter.txt
drwxrwxrwx 1 root root 0 Sep 14 23:14 output
-rwxrwxrwx 1 root root 16994 Sep 15 17:39 output_file.c
-rwxrwxrwx 1 root root 1560 Sep 15 17:39 output_file.h
-rwxrwxrwx 1 root root 151192 Dec 14 2015 preloader_l5460.bin
-rwxrwxrwx 1 root root 780 Sep 12 22:43 README.md
-rwxrwxrwx 1 root root 8888320 Dec 14 2015 recovery.img
-rwxrwxrwx 1 root root 10392 Sep 12 22:39 rimg2sdat
-rwxrwxrwx 1 root root 3881 Sep 12 22:43 sdat2img.py
-rwxrwxrwx 1 root root 135168 Dec 14 2015 secro.img
-rwxrwxrwx 1 root root 278374 Sep 14 15:56 simg2img
-rwxrwxrwx 1 root root 1947 Sep 15 17:39 simg2img.c
-rwxrwxrwx 1 root root 2634 Sep 15 17:39 simg2simg.c
-rwxrwxrwx 1 root root 5212 Sep 15 17:39 simg_dump.py
-rwxrwxrwx 1 root root 8383 Sep 15 17:39 sparse.c
-rwxrwxrwx 1 root root 6038 Sep 15 17:39 sparse_crc32.c
-rwxrwxrwx 1 root root 857 Sep 15 17:39 sparse_crc32.h
-rwxrwxrwx 1 root root 1391 Sep 15 17:39 sparse_defs.h
-rwxrwxrwx 1 root root 997 Sep 15 17:39 sparse_err.c
-rwxrwxrwx 1 root root 916 Sep 15 17:39 sparse_file.h
-rwxrwxrwx 1 root root 2219 Sep 15 17:39 sparse_format.h
-rwxrwxrwx 1 root root 11352 Sep 15 17:39 sparse_read.c
drwxrwxrwx 1 root root 0 Sep 13 18:36 system_
-rwxrwxrwx 1 root root 2707273812 Dec 14 2015 system.img
-rwxrwxrwx 1 root root 60928 Dec 14 2015 trustzone.bin
-rwxrwxrwx 1 root root 27812432 Dec 14 2015 userdata.img

So can anyone please help me with this.I want to extract the system/ folder from the sparse sysem image but i am unable to do so in windows after having followed all the instructions carefully.

Many many thanks in advance.