[HTC One SV] coolbeans2016:
test log with set -x

I placed set -x like you said in the swapper file and it gave back a huge log file!! :

c:\one_sv_swapper>adb push swapper /tmp

578 KB/s (9242 bytes in 0.015s)

c:\one_sv_swapper>adb push abootimg /tmp

2779 KB/s (88796 bytes in 0.031s)

c:\one_sv_swapper>adb shell "cd /tmp&&chmod 755 *&&./swapper D_I_MOD"

+ VERSION=0.7

+ set -e

+ TARGET_STATE=D_I_MOD

+ print_header

+ echo HTC One SV partition swapper by Alexander GQ Gerasiov.

HTC One SV partition swapper by Alexander GQ Gerasiov.

+ echo Version: 0.7, target state: D_I_MOD.

Version: 0.7, target state: D_I_MOD.

+ rm -rf boot recovery

+ emmc_get_part userdata

+ awk {if ($4==""userdata"") {gsub(/^mmcblk0p/, "", $1); gsub(/:$/, "", $1); p

rint $1;}}

+ local PART=37

+ test -n 37

+ echo 37

+ EMMC_USERDATA=37

+ emmc_get_part fat

+ awk {if ($4==""fat"") {gsub(/^mmcblk0p/, "", $1); gsub(/:$/, "", $1); print

$1;}}

+ local PART=38

+ test -n 38

+ echo 38

+ EMMC_FAT=38

+ emmc_get_part boot

+ awk {if ($4==""boot"") {gsub(/^mmcblk0p/, "", $1); gsub(/:$/, "", $1); print

$1;}}

+ local PART=20

+ test -n 20

+ echo 20

+ EMMC_BOOT=20

+ emmc_get_part recovery

+ awk {if ($4==""recovery"") {gsub(/^mmcblk0p/, "", $1); gsub(/:$/, "", $1); p

rint $1;}}

+ local PART=21

+ test -n 21

+ echo 21

+ EMMC_RECOVERY=21

+ echo Emmc partitions: recovery=21 boot=20 userdata=37 fat=38

Emmc partitions: recovery=21 boot=20 userdata=37 fat=38

+ extract_boot

+ echo Extracting boot...

Extracting boot...

+ mkdir boot

+ cd boot

+ ../abootimg -x /dev/block/mmcblk0p20

/dev/block/mmcblk0p20: no Android Magic Value

/dev/block/mmcblk0p20: not a valid Android Boot Image.

+ echo Possible stock signed boot, stripping signature...

Possible stock signed boot, stripping signature...

+ dd if=/dev/block/mmcblk0p20 of=boot.img bs=256 skip=1

65535+0 records in

65535+0 records out

16776960 bytes (16.0MB) copied, 1.116252 seconds, 14.3MB/s

+ ../abootimg -x boot.img

writing boot image config in bootimg.cfg

extracting kernel in zImage

extracting ramdisk in initrd.img

+ unpack_initrd boot

+ echo Extracting boot:initrd...

Extracting boot:initrd...

+ mkdir boot/initrd

+ cd boot/initrd

+ zcat ../initrd.img

+ cpio -i

1940 blocks

+ extract_recovery

+ echo Extracting recovery...

Extracting recovery...

+ mkdir recovery

+ cd recovery

+ ../abootimg -x /dev/block/mmcblk0p21

writing boot image config in bootimg.cfg

extracting kernel in zImage

extracting ramdisk in initrd.img

+ unpack_initrd recovery

+ echo Extracting recovery:initrd...

Extracting recovery:initrd...

+ mkdir recovery/initrd

+ cd recovery/initrd

+ zcat ../initrd.img

+ cpio -i

16641 blocks

+ echo Checking current state...

Checking current state...

+ check_boot boot/initrd

+ local BOOT_FSTAB

+ [ -e boot/initrd/fstab.k2_ul ]

+ [ -e boot/initrd/fstab.k2_u ]

+ [ -e boot/initrd/fstab.k2_cl ]

+ BOOT_FSTAB=/fstab.k2_cl

+ [ -e boot/initrd/fstab.k2_plc_cl ]

+ local STATE=UNKNOWN

+ cd boot/initrd

+ grep -q ^[[:space:]]*devwait emmc@userdata$ init.target.rc

+ grep -q ^[[:space:]]*mount_all /fstab.k2_cl$ init.target.rc

+ STATE=STOCK

+ grep -q ^[[:space:]]*devwait emmc@fat$ init.target.rc

+ echo STOCK

+ return 0

+ BOOT_STATE=STOCK

+ check_recovery recovery/initrd

+ local STATE=UNKNOWN

+ cd recovery/initrd

+ grep -q ^[[:space:]]*/data[[:space:]]\+ext4[[:space:]]\+/dev/block/mmcblk0p37$

etc/recovery.fstab

+ grep -q ^[[:space:]]*/data[[:space:]]\+ext4[[:space:]]\+/dev/block/mmcblk0p38$

etc/recovery.fstab

+ echo UNKNOWN

+ return 0

+ RECOVERY_STATE=UNKNOWN

+ check_system

+ mount /system

+ true

+ local STATE=UNKNOWN

+ grep -q ^dev_mount sdcard /storage/sdcard0 emmc /devices/platform/msm_sdcc.1/m

mc_host$ /system/etc/vold.fstab

+ grep -q ^dev_mount sdcard2 /storage/sdcard0/ext_sd auto /devices/platform/msm_

sdcc.3/mmc_host$ /system/etc/vold.fstab

+ STATE=STOCK

+ grep -q ^dev_mount sdcard /storage/sdcard0 37 /devices/platform/msm_sdcc.1/mmc

_host$ /system/etc/vold.fstab

+ grep -q ^dev_mount sdcard2 /storage/sdcard0/ext_sd emmc /devices/platform/msm_

sdcc.1/mmc_host$ /system/etc/vold.fstab

+ grep -q ^dev_mount sdcard2 /storage/sdcard0/ext_sd 37 /devices/platform/msm_sd

cc.1/mmc_host$ /system/etc/vold.fstab

+ echo STOCK

+ return 0

+ SYSTEM_STATE=STOCK

+ echo States: boot: STOCK, recovery: UNKNOWN, system: STOCK

States: boot: STOCK, recovery: UNKNOWN, system: STOCK

+ [ STOCK = STOCK -a UNKNOWN = STOCK -a STOCK = STOCK ]

+ [ STOCK=STOCK -a UNKNOWN = STOCK -a STOCK = I_E_MOD ]

+ [ STOCK = D_I_MOD -a UNKNOWN = D_I_MOD -a STOCK = D_I_MOD ]

+ [ STOCK = D_I_MOD -a UNKNOWN = D_I_MOD -a STOCK = D_I_E_MOD ]

+ echo Fatal error: Current state is unknown, nothing changed, aborting.

Fatal error: Current state is unknown, nothing changed, aborting.

+ exit 1

Hope this is helpful, please let me know anything else I can do.

lee

---------- Post added at 07:27 PM ---------- Previous post was at 07:11 PM ----------

My vold.fstab file located in my etc folder doesn't have much but jargon in it when I opened it.... is there some way I can reveal anything in it?

please let me know if this is a dead project or if there is something that can be done.

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.

#

# Redistribution and use in source and binary forms, with or without

# modification, are permitted provided that the following conditions are

# met:

# * Redistributions of source code must retain the above copyright

# notice, this list of conditions and the following disclaimer.

# * Redistributions in binary form must reproduce the above

# copyright notice, this list of conditions and the following

# disclaimer in the documentation and/or other materials provided

# with the distribution.

# * Neither the name of Code Aurora Forum, Inc. nor the names of its

# contributors may be used to endorse or promote products derived

# from this software without specific prior written permission.

#

# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED

# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT

# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS

# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR

# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR

# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,

# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE

# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

dev_mount sdcard /storage/sdcard0 emmc /devices/platform/msm_sdcc.1/mmc_host

dev_mount sdcard2 /storage/sdcard0/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host

Thanks,

lee

---------- Post added at 07:54 PM ---------- Previous post was at 07:27 PM ----------

Anyone good at working on erros with 0ne_sv_swapper (ver.'s 0.6-0.7) please look at last pages in this forum, I have posted the the three commands & outcomes as well as placed "set -x" in swapper of 0.7 to get a good log file of why its not working with mine.

<NEED HELP> :-[

lee