Lost 2 GB of internal storage after unsuccessful try to swap I have a Alcatel C5 5036, initially with 4GB internal storage
I have rooted it successfully,
I tried to increase ram with "ROEHSOFT RAM Expander (SWAP)",
After some unsuccessful tries, 
While any SWAP was not created,
The internal storage decreased to 2.05GB,
2 GB has been lost!
I tried SWAPoff for several times, but there was no any SWAP for it to remove now in storage or any other explorer location, it shows the total capacity of internal storage as 2.05GB, instead of 4GB. Please help me as to how to recover the lost storage.
Try to change partition size using GParted



Using adb you can dump whole internal storage to your PC
this will work only on linux but since you will have to use gparted it shouldn't be a problem
connect phone to the PC and type in the terminal

adb shell
su
cat /dev/block/mmcblk0 | busybox nc -l 6666


aasuming that your pc and phone are in the same network and phone's IP address is 192.168.0.101
in another terminal type:

nc 192.168.0.101 6666 &gt; dump.img


after few minutes transfer should end and then you can edit dump.img using gparted:

gparted dump.img


after editing partition layout dump it back to your phone
(you may need to remount all partitions read-only before it)

adb shell
su
busybox nc -l 6666 &gt; /dev/block/mmcblk0


and in another terminal

cat dump.img | nc 192.168.0.101 6666