[Samsung Galaxy Player 4.0, 5.0] Mevordel:
Fixing partitions the hard way

The fdisk method

This requires more typing and is more prone to error, but may take less time and is the only way if your device variant does not have an available dd dump.

Technical Explanation:

The dd method

Some people have gotten themselves into a place where their partitions are messed up and repartitioning with a PIT file is of no use. As an alternative to the fdisk method, here is a full dd dump for use in recovering your player. This file WILL NOT get you fully up and running again by itself. DO NOT flash it with Odin. In order to make the file small enough to not take days to download (literally), I zeroed out some partitions that would have gotten formatted anyways. Please read the instructions for use below. If you want to make a dump of your player, see instructions in the second post.

Files

Mevordel's SGP 5.0 (post-JTAG): http://www.mediafire.com/?ugzfkcaqcq1cacs (There is a small possibility that this file may have some issues - remember, I had to get my player JTAG'd - but I wouldn't worry too much, as it boots my player now. If you're paranoid, ask in the thread for someone else to make one.)

Get your player into CWM recovery mode. I don't care how. Recommended way: use resurrector if needed to flash Entropy512's kernel in download mode.

Download a dump file onto your computer.

Write file to your device. There are three basic options here.:

Use an SD card. Once you've downloaded the file, extract it, and, on your Linux-based system (like Ubuntu), find out the device node associated with your SD card by running 'dmesg' in a terminal right after plugging it in. It should be a three-letter code in brackets starting with 'sd', like '[sdc]'. When you type it later, do not type the brackets. Make sure it is unmounted, and then, in the terminal, run:

dd if="/path/to/extracted/mmcblk0" of=/dev/sdX && sync && sync

where sdX is the node you found earlier. This will erase everything on your SD card! Now put your SD card in your player. Open up an ADB shell and type:

dd if=/dev/block/mmcblk1 of=/dev/block/mmcblk0 bs=32768 count=242432

This will take a few hours, so make sure your computer does not go to sleep, and do not unplug your player, or you'll have to start over. Once it is done, run 'sync' a few times, and exit the ADB shell. Now move to step 4. (To put your SD card back to normal, put it back in your PC and use gparted or WIndows Disk Manager to delete all of its partitions and create a new FAT32 partition filling it up.)

ADB push. This is untested, but it should work. (If adb complains about running out of space, you'll have to try another way, and please report back.) Extract the lzma file on your computer. Then open a terminal/command prompt and run:

adb push /path/to/extracted/mmcblk0 /dev/block/mmcblk0

This will take an hour or two, so make sure your computer does not go to sleep, and do not unplug your player, or you'll have to start over. Once it is done, run 'adb shell sync' a few times for good measure, and move on to step 4.

Extract the file on your device. This is the least likely to work, but may be the fastest. Open a terminal/command prompt and run:

adb push /path/to/downloaded/mmcblk0.lzma /tmp/

Now in an ADB shell, run:

lzcat /tmp/mmcblk0.lzma > /dev/block/mmcblk0

This will take a few hours, so make sure your computer does not go to sleep, and do not unplug your player, or you'll have to start over. If you get errors about running out of memory, I can try using a different compression format, but you're basically out of luck. Once it is done, run 'sync' a few times, and exit the ADB shell. Now move to step 4.

Optionally, unplug your player, use the CWM menu to turn it off, and enter recovery with the button combo. This will test if the write was successful. If you try the button combo a few times and can't get it, try flashing again or use a different method.

In CWM, go to 'Mounts and Storage,' and format /system, /datadata, /cache, and /data. (For some reason, formatting /emmc does not work, but that's not really an issue.)

Install a (preferrable stock or stock-based) firmware. Either reboot into download mode and use Odin (without repartitioning!) or install a zip from the external SD card.

Reboot into Android. It will tell you you need to format your storage. Do it. If it fails, go to Settings -> SD card and device storage -> Format USB storage.

???

Profit!

Technical Explanation: