[Samsung Epic 4G Touch] Kjricker:
Success!

I ended up using Mint Linux 32bit installed and ran from a USB flash drive. Ubuntu was awful. I haven't used an Ubuntu live distro of it in a while, and I did not care for it. Neither version of Linux I used had proper drivers for my Nvidia 750TI, but at least with Mint I had a full desktop. With Ubuntu it was like working on and old win95 PC with a resolution of 640x480. YUCK!

Before starting this journey, you should already have your phone running CM11 with a current recovery.

Here are my complete steps.

Get files for install after partitioning

Download CM11 nightly, GAPPS, Lanchon's kernel with TRIM (optional), Lanchon's sensor fix v2 and FL24 modem.

Place the above files on the phone's external SD card. Unmount and eject the card.

Get files for partitioning

Download partition files and scripts provided by Lanchon:

http://xdaforums.com/showpost.php?p=58317191&postcount=83

Unzip the file.

Prep live Linux usb drive

Download Linux Mint Cinnamon 32bit no codecs:

http://www.linuxmint.com/edition.php?id=175

Install Mint Linux onto flash drive using rufus-1.4.12:

https://rufus.akeo.ie/downloads/rufus-1.4.12.exe

Prep repartition files and scripts

Boot PC from usb flash drive into Linux Mint.

Place phone into download mode by turning the phone off. Then press power and volume down. When the warning screen comes on, press volume up to continue into download mode.

Plug phone into PC.

In Linux Mint navigate to the folder where you unzipped the partition files and scripts you downloaded earlier. Copy all the files to the Mint "Download" folder. Select the .sh files and right click them and choose properties. Check the box labeled "Allow executing file as a program." I also set both Group and Others access to "Read and Write". Then select the rest of the files and change their permissions as well. I just changed them all to "Read and Write". I do not know if this step is necessary or not, but it is what I did. Why copy the files to the Mint "Download" folder you ask. Well because I could not change their properties where I had originally saved them. That's why.

Next right click on the above "Download" folder and choose open in terminal. Now you should have a terminal window open at the locations of those files. You can verify it by typing in "ls". You should see a list of the files.

Install Heimdall

In the terminal window install Heimdall, the command is:

sudo apt-get install heimdall-flash

If you are not sure whether your device is connected, the command:

heimdall detect

should return Device detected.

Download you current pit

At the terminal prompt type:

sudo ./download-current-pit.sh

If all goes well you should get 2 new files in the Downloads folder:

downloaded.pit

downloaded.pit.txt​

If the downloaded.pit file is 0kb, then something has gone wrong. Don't move forward. Time to figure out what went wrong. If the file is around 4kb, then compare "downloaded.pit.txt" to "d710-stock.pit.txt". If they match, move forward. Otherwise proceed at your own risk.

Repartition Phone

Due to weirdness I don't understand, each time a Heimdall command is done you need to restart the phone in download mode. Since you just downloaded your current pit, you executed a Heimdall command. So turn off the phone. Then restart it in download mode again. No need to unplug the phone from the PC while you do this.

Now , with the phone in download mode again execute the following command in the terminal window:

sudo ./repartition-now.sh

* This script uses the d710-1GBsys-6GBdata-7.3GBsdcard-8MBpreload.pit file. If you want to use one of the others that were provided, you either do the command manually or edit the .sh file accordingly.

You should see a few lines go by in terminal showing the result and then instructions on what to do next. Following is what I did.

Reinstall CM11

Unplug phone from PC and reboot into recovery. I had a little panic here as it seemed my phone did not want to boot into recovery. I had not unplugged my phone from the PC. Once I unplugged it from the PC I could restart into recovery just fine. I believe the sequence is, turn off the phone, then press power and volume up at the same time.

Once in recovery, follow the instructions from the .sh file listed in the terminal window. Go to "mounts and storage", then format the /system, /cache, /data (as vfat) and /storage/sdcard0. You can try to format /preload, but I always get an error when trying to format that.

Now, insert SD card with the CM11 files you downloaded at the start. Flash the .zips

FL24.zip

cm-11-20150118-NIGHTLY-d710.zip

gapps-kk-20140105-signed.zip

sensor-fix-v2-d710.zip

kernel-Lanchon-TRIM-FPBug-20150113-cm-11-20150111-NIGHTLY-d710.zip (optional)

Reboot the phone and complete the CM11 setup process. If you installed the TRIM kernel listed above, then you may want to run the trim commands. Open the terminal app on your phone and enter the following:

su -c "fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload"

Congratulate yourself and then move on with your life.