[Galaxy S 4 Q&A, Help & Troubleshooting] sullerandras:
I have a Korean Galaxy S4, model number SHV-E330S. Copied the TWRP recovery.img to /dev/block/mmcblk0p10 but it turned out that 0p10 is the "param" partition, so now the phone cannot connect to cellular network, it shows the circle icon with strike-through. The phone still shows the correct IMEI number when dialing *#06#, and it can connect to wifi networks. Also can boot into recovery mode and wiping the system does not help.

Is there any way to make my phone work?

A bit more context of what I did:

Tried to install cyanogenmod on the phone, but it failed with "Signature verification failed". I thought it is because the stock recovery does not allow to install 3rd party roms.

So I tried to install CWM/TWRP recovery on it using ODIN3 when the phone was in download mode. It did not work, could not boot into CWM, it always started the stock recovery. I saw in the install guides that I can copy the recovery image to the phone with dd if I have root.

So I rooted it with this. It worked. Then I followed the instructions here (came from this site) and executed dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p10

This website did not talk about creating a backup of that partition first, so I did not do that. The cellular network probably stopped working at this point, but I only noticed it later.

The partitions on my phone:

root@ks01lteskt:/ # ls -l /dev/block/platform/msm_sdcc.1/by-name

lrwxrwxrwx root root 1970-01-02 00:00 aboot -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 1970-01-02 00:00 apnhlos -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 1970-01-02 00:00 backup -> /dev/block/mmcblk0p17

lrwxrwxrwx root root 1970-01-02 00:00 boot -> /dev/block/mmcblk0p14

lrwxrwxrwx root root 1970-01-02 00:00 cache -> /dev/block/mmcblk0p24

lrwxrwxrwx root root 1970-01-02 00:00 dbi -> /dev/block/mmcblk0p4

lrwxrwxrwx root root 1970-01-02 00:00 ddr -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 1970-01-02 00:00 efs -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 1970-01-02 00:00 fota -> /dev/block/mmcblk0p16

lrwxrwxrwx root root 1970-01-02 00:00 fsc -> /dev/block/mmcblk0p19

lrwxrwxrwx root root 1970-01-02 00:00 fsg -> /dev/block/mmcblk0p18

lrwxrwxrwx root root 1970-01-02 00:00 hidden -> /dev/block/mmcblk0p25

lrwxrwxrwx root root 1970-01-02 00:00 modem -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 1970-01-02 00:00 modemst1 -> /dev/block/mmcblk0p12

lrwxrwxrwx root root 1970-01-02 00:00 modemst2 -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 1970-01-02 00:00 pad -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 1970-01-02 00:00 param -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 1970-01-02 00:00 persdata -> /dev/block/mmcblk0p22

lrwxrwxrwx root root 1970-01-02 00:00 persist -> /dev/block/mmcblk0p21

lrwxrwxrwx root root 1970-01-02 00:00 recovery -> /dev/block/mmcblk0p15

lrwxrwxrwx root root 1970-01-02 00:00 rpm -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 1970-01-02 00:00 sbl1 -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 1970-01-02 00:00 ssd -> /dev/block/mmcblk0p20

lrwxrwxrwx root root 1970-01-02 00:00 system -> /dev/block/mmcblk0p23

lrwxrwxrwx root root 1970-01-02 00:00 tz -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 1970-01-02 00:00 userdata -> /dev/block/mmcblk0p26

root@ks01lteskt:/ #

Would it work if I copy the /dev/block/mmcblk0p10 partition from an other phone? What is on the param partition?