[Galaxy S I9000 Q&A, Help & Troubleshooting] Cordial Humanoid:
Hi kasper_h, thanks a lot for taking the time to help.

It turns out that if I reboot again into recovery, Now the recovery says I have "Mackay Recovery (twrp) v2.7.1.0". Trying again from this new recovery, now I am able to do the factory reset successfully (or at least it claims to be successful).

However, when I try to install the ROM it still fails. In detail, The on-screen messages are:

The corresponding part from the recovery log is below.

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

Starting TWRP 2.7.1.0 on Sun Jul 6 21:58:03 2014

I:Internal path defined: '/sdcard'

I:External path defined: '/emmc'

TW_NO_REBOOT_BOOTLOADER := true

I:Lun file '/sys/devices/platform/s3c-usbgadget/gadget/lun0/file'

I:Found brightness file at '/sys/devices/platform/s3cfb/spi_gpio.3/spi_master/spi3/spi3.0/backlight/s5p_bl/brightness'

Starting the UI...Pixel format: 480x800 @ 32bpp

Pixel format: BGR_565

Not using qualcomm overlay, 's3cfb'

framebuffer: fd 4 (480 x 800)

=> Linking mtab

Renaming regular /etc/recovery.fstab -> /etc/recovery.fstab.bak

Moving /etc/twrp.fstab -> /etc/recovery.fstab

=> Processing recovery.fstab

I:Processing '/recovery'

I:Processing '/boot'

I:Processing '/radio'

I:Processing '/data'

I:Processing '/cache'

I:Processing '/datadata'

I:Created '/datadata' folder.

I:Processing '/sdcard'

I:Created '/sdcard' folder.

I:Processing '/system'

I:Processing '/emmc'

I:Created '/emmc' folder.

I:Created '/and-sec' folder.

I:Creating Android Secure: /sdcard/.android_secure

I:mount '/sdcard/.android_secure' '/and-sec' process ended with RC=0

I:Backup folder set to '/sdcard/TWRP/BACKUPS/323510E0CC2B00EC'

I:Settings storage is '/sdcard'

Updating partition details...

I:Unable to mount '/emmc'

I:Actual block device: '', current file system: 'vfat'

I:Unmounting main partitions...

Partition Logs:

/recovery | /dev/block/mtdblock1 | Size: 7MB

Flags: IsPresent

Primary_Block_Device: /dev/block/mtdblock1

Display_Name: Recovery

Storage_Name: recovery

Backup_Path: /recovery

Backup_Name: recovery

Backup_Display_Name: Recovery

Storage_Path: /recovery

Current_File_System: mtd

Fstab_File_System: mtd

MTD_Name: recovery

Backup_Method: flash_utils

/boot | /dev/block/mtdblock0 | Size: 7MB

Flags: Can_Be_Backed_Up IsPresent

Primary_Block_Device: /dev/block/mtdblock0

Display_Name: Boot

Storage_Name: boot

Backup_Path: /boot

Backup_Name: boot

Backup_Display_Name: Boot

Storage_Path: /boot

Current_File_System: mtd

Fstab_File_System: mtd

MTD_Name: boot

Backup_Method: flash_utils

/radio | /dev/block/mtdblock5 | Size: 16MB

Flags: IsPresent

Primary_Block_Device: /dev/block/mtdblock5

Display_Name: radio

Storage_Name: radio

Backup_Path: /radio

Backup_Name: radio

Backup_Display_Name: radio

Storage_Path: /radio

Current_File_System: mtd

Fstab_File_System: mtd

MTD_Name: radio

Backup_Method: flash_utils

/data | /dev/mapper/lvpool-userdata | Size: 1492MB Used: 25MB Free: 1466MB Backup Size: 25MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI Has_SubPartition IsPresent Can_Encrypt_Backup Use_Userdata_Encryption

Primary_Block_Device: /dev/mapper/lvpool-userdata

Length: -16384

Display_Name: Data

Storage_Name: Data

Backup_Path: /data

Backup_Name: data

Backup_Display_Name: Data

Storage_Path: /data

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/cache | /dev/block/mtdblock3 | Size: 17MB Used: 2MB Free: 15MB Backup Size: 2MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/mtdblock3

Display_Name: Cache

Storage_Name: Cache

Backup_Path: /cache

Backup_Name: cache

Backup_Display_Name: Cache

Storage_Path: /cache

Current_File_System: yaffs2

Fstab_File_System: yaffs2

MTD_Name: cache

Backup_Method: files

/datadata | /dev/block/mtdblock2 | Size: 422MB Used: 18MB Free: 403MB Backup Size: 18MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Is_SubPartition IsPresent Can_Encrypt_Backup

SubPartition_Of: /data

Primary_Block_Device: /dev/block/mtdblock2

Display_Name: DataData

Storage_Name: DataData

Backup_Path: /datadata

Backup_Name: datadata

Backup_Display_Name: DataData

Storage_Path: /datadata

Current_File_System: yaffs2

Fstab_File_System: yaffs2

MTD_Name: datadata

Backup_Method: files

/sdcard | /dev/block/mmcblk0p1 | Size: 5918MB Used: 3006MB Free: 2912MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Has_Android_Secure Is_Storage Is_Settings_Storage

Symlink_Path: /sdcard/.android_secure

Symlink_Mount_Point: /and-sec

Primary_Block_Device: /dev/block/mmcblk0p1

Display_Name: sdcard

Storage_Name: sdcard

Backup_Path: /and-sec

Backup_Name: and-sec

Backup_Display_Name: Android Secure

Storage_Path: /sdcard

Current_File_System: vfat

Fstab_File_System: vfat

Backup_Method: files

/system | /dev/mapper/lvpool-system | Size: 393MB Used: 370MB Free: 23MB Backup Size: 370MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/mapper/lvpool-system

Display_Name: System

Storage_Name: System

Backup_Path: /system

Backup_Name: system

Backup_Display_Name: System

Storage_Path: /system

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/emmc | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage

Primary_Block_Device: /dev/block/mmcblk1p1

Display_Name: emmc

Storage_Name: emmc

Backup_Path: /emmc

Backup_Name: emmc

Backup_Display_Name: emmc

Storage_Path: /emmc

Current_File_System: vfat

Fstab_File_System: vfat

Backup_Method: files

I:Loading package: TWRP (/script/ui.xml)

I:Loading package: TWRP (/sdcard/TWRP/theme/ui.zip)

I:Loading package: TWRP (/res/ui.xml)

I:Loading resources...

I:Loading variables...

I:Loading mouse cursor...

I:Loading pages...

I:Loading page main

I:Loading page main2

I:Loading page install

I:Loading page flash_confirm

I:Loading page flash_zip

I:Loading page flash_done

I:Loading page clear_vars

I:Loading page confirm_action

I:Loading page action_page

I:Loading page singleaction_page

I:Loading page action_complete

I:Loading page filecheck

I:Loading page rebootcheck

I:Loading page wipe

I:Loading page advancedwipe

I:Loading page formatdata

I:Loading page formatdata_confirm

I:Loading page checkpartitionlist

I:Loading page partitionoptions

I:Loading page selectfilesystem

I:Loading page backup

I:Loading page backupname1

I:Loading page backupname2

I:Loading page backupencryption

I:Loading page backupencryption2

I:Loading page checkbackuppassword

I:Loading page backup_run

I:Loading page restore

I:Loading page restore_read

I:Loading page restore_decrypt

I:Loading page try_restore_decrypt

I:Loading page restore_select

I:Loading page renamebackup

I:Loading page restore_run

I:Loading page selectstorage

I:Loading page mount

I:Loading page usb_mount

I:Loading page usb_umount

I:Loading page reboot

I:Loading page settings

I:Loading page timezone

I:Loading page screen

I:Loading page Vibrate

I:Loading page advanced

I:Loading page appselect

I:Loading page apprun

I:Loading page partsdcard

I:Loading page htcdumlock

I:Loading page lock

I:Loading page filemanagerlist

I:Loading page filemanageroptions

I:Loading page choosedestinationfolder

I:Loading page filemanagerrenamefile

I:Loading page filemanagerrenamefolder

I:Loading page filemanagerchmod

I:Loading page filemanagerconfirm

I:Loading page filemanageracction

I:Loading page decrypt

I:Loading page trydecrypt

I:Loading page terminalfolder

I:Loading page terminalcommand

I:Loading page sideload

I:Loading page installsu

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Switching packages (TWRP)

SELinux contexts loaded from /file_contexts

Full SELinux support is present.

E:Cannot load volume /misc!

E:Cannot load volume /misc!

Startup Commands: ro.bq.gpu_to_cpu_unsupported=1

ro.cm.device=galaxysmtd

ro.cm.display.version=Mackay_ROM_4.9.6

ro.cm.version=Mackay_ROM_4.9.6

ro.sf.lcd_density=240

ro.adb.qemud=1

ro.com.google.clientidbase=android-google

ro.com.google.networklocation=1

ro.com.google.locationfeatures=1

ro.com.android.dateformat=MM-dd-yyyy

ro.com.android.dataroaming=false

ro.com.android.wifi-watchlist=GoogleGuest

ro.ksm.default=1

ro.ril.hsxpa=1

ro.ril.gprsclass=10

ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html

ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html

ro.boot.emmc=0

ro.boot.serialno=323510E0CC2B00EC

ro.emmc=0

ro.hwui.disable_scissor_opt=true

ro.vold.umsdirtyratio=20

ro.wifi.channels=

ro.allow.mock.location=0

ro.board.platform=s5pc110

ro.build.id=KTU84P

ro.build.date=za jul 5 18:57:47 CEST 2014

ro.build.date.utc=0

ro.build.host=UbuntuDesktop

ro.build.tags=test-keys

ro.build.type=userdebug

ro.build.user=kasper

ro.build.display.id=cm_galaxysmtd-userdebug 4.4.4 KTU84P 6bb4077f01 test-keys

ro.build.product=GT-I9000

ro.build.selinux=1

ro.build.version.sdk=19

ro.build.version.release=4.4.4

ro.build.version.codename=REL

ro.build.version.incremental=6bb4077f01

ro.build.description=GT-I9000-user 2.3.5 GINGERBREAD XXJVT release-keys

ro.build.fingerprint=samsung/GT-I9000/GT-I9000:2.3.5/GINGERBREAD/XXJVT:user/release-keys

ro.build.characteristics=default

ro.config.low_ram=false

ro.config.ringtone=Orion.ogg

ro.config.alarm_alert=Hassium.ogg

ro.config.notification_sound=Argon.ogg

ro.kernel.android.checkjni=0

ro.secure=1

ro.carrier=unknown

ro.cmlegal.url=http://www.cyanogenmod.org/docs/privacy

ro.product.cpu.abi=armeabi-v7a

ro.product.cpu.abi2=armeabi

ro.product.name=GT-I9000

ro.product.board=aries

ro.product.brand=samsung

ro.product.model=GT-I9000

ro.product.device=GT-I9000

ro.product.locale.region=US

ro.product.locale.language=en

ro.product.manufacturer=samsung

ro.baseband=unknown

ro.bootmode=unknown

ro.hardware=aries

ro.opengles.version=131072

ro.revision=48

ro.serialno=323510E0CC2B00EC

ro.telephony.ril.v3=icccardstatus,datacall,signalstrength,facilitylock

ro.telephony.ril_class=SamsungExynos3RIL

ro.bootloader=unknown

ro.debuggable=1

ro.modversion=Mackay_ROM_4.9.6

ro.rommanager.developerid=cyanogenmod

ro.factorytest=0

ro.setupwizard.enterprise_mode=1

net.bt.name=Android

net.change=net.bt.name

sys.usb.state=mass_storage,adb

sys.usb.config=mass_storage,adb

init.svc.adbd=stopping

init.svc.healthd=running

init.svc.ueventd=running

init.svc.recovery=running

rild.libargs=-d /dev/ttyS0

rild.libpath=/system/lib/libsec-ril.so

wifi.interface=wlan0

dalvik.vm.checkjni=false

dalvik.vm.heapsize=128m

dalvik.vm.lockprof.threshold=500

dalvik.vm.heapmaxfree=2m

dalvik.vm.heapminfree=512k

dalvik.vm.dexopt-flags=m=y

dalvik.vm.heapstartsize=5m

dalvik.vm.heapgrowthlimit=48m

dalvik.vm.dexopt-data-only=1

dalvik.vm.stack-trace-file=/data/anr/traces.txt

dalvik.vm.heaptargetutilization=0.25

persist.sys.dun.override=0

persist.sys.usb.config=mass_storage,adb

persist.sys.vold.switchexternal=1

persist.sys.dalvik.vm.lib=libdvm.so

persist.sys.root_access=1

persist.sys.recovery_update=false

service.adb.root=1

keyguard.no_require_sim=true

mobiledata.interfaces=pdp0,eth0,gprs,ppp0

I:Copying file /cache/recovery/log to /cache/recovery/last_log

I:Attempt to load settings from settings file...

I:Loading settings from '/sdcard/TWRP/.twrps'.

I:Backup folder set to '/sdcard/TWRP/BACKUPS/323510E0CC2B00EC'

I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab

I:Version number saved to '/cache/recovery/.version'

I:Unable to mount '/emmc'

I:Actual block device: '', current file system: 'vfat'

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

I:Switching packages (TWRP)

I:Set page: 'install'

I:Set page: 'flash_confirm'

I:Set page: 'flash_zip'

I:Set page: 'flash_zip'

Installing '/sdcard/cm-Mackay_ROM_4.9.6.zip'...

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts

I:Legacy property environment initialized.

Welcome to Mackay ROM installation

Checking device ID...

about to run program [/tmp/erase_image] with 2 args

about to run program [/tmp/bml_over_mtd.sh] with 6 args

about to run program [/tmp/updater.sh] with 1 args

+ export PATH=/:/sbin:/system/xbin:/system/bin:/tmp:/sbin:/system/bin

+ busybox test = cdma

+ IS_GSM=busybox true

+ SD_PART=/dev/block/mmcblk0p1

+ MMC_PART=/dev/block/mmcblk0p2

+ MTD_SIZE=442499072

+ busybox test -n

+ busybox cut -d -f 3-

+ busybox tail -n 1

+ busybox grep Update location:

+ busybox cat /tmp/recovery.log

+ UPDATE_PACKAGE=grep Update location:

+ busybox test -e /dev/block/bml7

+ busybox cat /sys/class/mtd/mtd2/size

+ busybox test 442499072 != 442499072

+ busybox cat /sys/class/mtd/mtd2/name

+ busybox test datadata != datadata

+ busybox test -e /dev/block/mtdblock0

+ check_mount /sdcard /dev/block/mmcblk0p1 vfat

+ busybox readlink /sdcard

+ local MOUNT_POINT=

+ busybox test -n

+ busybox echo Using non-readlink mount point /sdcard

Using non-readlink mount point /sdcard

+ MOUNT_POINT=/sdcard

+ busybox grep -q /sdcard /proc/mounts

+ set_log /sdcard/cyanogenmod_mtd.log

+ rm -rf /sdcard/cyanogenmod_mtd.log

+ exec

run_program: child exited with status 9

script aborted: assert failed: run_program("/tmp/updater.sh") == 0

assert failed: run_program("/tmp/updater.sh") == 0

I:Legacy property environment disabled.

E:Error executing updater binary in zip '/sdcard/cm-Mackay_ROM_4.9.6.zip'

Error flashing zip '/sdcard/cm-Mackay_ROM_4.9.6.zip'

Updating partition details...

I:Unable to mount '/emmc'

I:Actual block device: '', current file system: 'vfat'

I:Set page: 'flash_done'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'wipe'

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'advanced'

I:Set page: 'confirm_action'

I:Set page: 'action_page'

I:Copying file /tmp/recovery.log to /sdcard/recovery.log