Problem building CWM recovery for SM-G313H - Android Q&A, Help & Troubleshooting

Hello all,
I'm new to the world of ROMS and custom recoveries, I've rooted my phone and for educational purposes, I wanted to build CWM 6 but I have trouble with my recovery.fstab or something because I only get a blank screen flashing periodically.
Here's the stock recovery.fstab of the recovery.img
Code:
/dev/block/platform/sprd-sdhci.0/mmcblk1p1 /sdcard vfat default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/system /system ext4 default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/HIDDEN /preload ext4 default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/userdata /data ext4 default wait,length=-16384
/dev/block/platform/sprd-sdhci.3/by-name/CSC /cache ext4 default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/efs /efs ext4 default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/PRODNV /productinfo ext4 default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/KERNEL /boot emmc default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/RECOVERY /recovery emmc default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/modem /modem emmc default recoveryonly
/dev/block/platform/sprd-sdhci.3/by-name/DSP /modem2 emmc default recoveryonly
I've also tried this version (after changing the names with partitions)
Code:
# mount point fstype device
/system ext4 /dev/block/mmcblk0p18
/preload ext4 /dev/block/mmcblk0p19
/data ext4 /dev/block/mmcblk0p20
/cache ext4 /dev/block/mmcblk0p17
/efs ext4 /dev/block/mmcblk0p7
/productinfo ext4 /dev/block/mmcblk0p5
/boot emmc /dev/block/mmcblk0p11
/recovery emmc /dev/block/mmcblk0p12
/modem emmc /dev/block/mmcblk0p13
/modem2 emmc /dev/block/mmcblk0p14
/sdcard vfat /dev/block/platform/sprd-sdhci.0/mmcblk1p1
but to no avail, the only result that I got was when I used the fstab of the boot.img
Code:
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
# <src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
#/dev/block/platform/sprd-sdhci.3/by-name/system /system ext4 ro,barrier=1 wait
#/dev/block/platform/sprd-sdhci.3/by-name/userdata /data ext4 noatime,nosuid,nodev,nomblk_io_submit wait,encryptable=footer,check
#/dev/block/platform/sprd-sdhci.3/by-name/cache /cache ext4 noatime,nosuid,nodev,nomblk_io_submit wait,check
#/dev/block/platform/sprd-sdhci.3/by-name/prodnv /productinfo ext4 noatime,nosuid,nodev,nomblk_io_submit wait,check
/dev/block/platform/sprd-sdhci.3/by-name/system /system ext4 ro,noatime,errors=panic wait
/dev/block/platform/sprd-sdhci.3/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer
/dev/block/platform/sprd-sdhci.3/by-name/CSC /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/sprd-sdhci.3/by-name/efs /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/sprd-sdhci.3/by-name/PRODNV /productinfo ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/devices/platform/sprd-sdhci.0/mmc_host/mmc1 auto vfat defaults voldmanaged=extSdCard:auto,noemulatedsd
would you please tell me what I'm missing here ?

Just want to know
Could you tell me how you got root for this phone..? Been searching all over with no luck

Related

[Q] mount points atrix vs dx2

Here is the recovery.fstab for the atrix
# mount point fstype device [device2]
/boot emmc /dev/block/mmcblk0p11
/cache ext4 /dev/block/mmcblk0p15 NULL ext3
/data ext4 /dev/block/mmcblk0p16 NULL ext3
/sdcard vfat /dev/block/mmcblk1p1
/emmc vfat /dev/block/mmcblk0p18
/system ext4 /dev/block/mmcblk0p12 NULL ext3
/recovery emmc /dev/block/mmcblk0p10
/osh ext3 /dev/block/mmcblk0p13
/preinstall ext3 /dev/block/mmcblk0p17
And here the dx2
# mount point fstype device
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
/system auto /dev/block/mmcblk0p12
/cache ext3 /dev/block/mmcblk0p15
/data ext3 /dev/block/mmcblk0p16
#/misc mtd misc
#/boot mtd boot
#/recovery mtd recovery
/pds ext3 /dev/block/mmcblk0p3
#/preinstall ext3 /dev/block/mmcblk0p17
/emmc vfat /dev/block/mmcblk0p18
I am trying to find the err in the mongrel cwr. More: log from this: cwr 5025 + oly recovery(sbin) + oly etc( recovery.fstab ). See thread cwr hacking.
It backsup but adv restore fails.
Do you mean you can make a backup nandRoid but it wont restore it?
---------- Post added at 09:37 PM ---------- Previous post was at 09:35 PM ----------
Cuz Dragonz made it that far before... Restore fails because /system can't unmount because there is processes using it...
Yes here is my latest mongrel cwr.
But the full restore will never untill we get a UL boot loader so use adv restore for testing or find a work around.

how to Add New HTC Device to Android Kitchen

I already get the recovery.fstab as following
# mount point fstype device [device2]
/boot emmc boot
/cache ext4 cache
/data ext4 userdata
/misc emmc misc
/recovery emmc recovery
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
/system ext4 system
/devlog ext4 devlog
/internal_sdcard vfat /dev/block/mmcblk0p35
to add new device create file in edify_defs with the same of device, as above listed mount point how can I edit the new file
Thanks for help

mount points in a kitchen help..!

I need help to add my device to a kitchen and create my edify_defs to a kitchen. This is my mount points for my cell phone Galaxy Grand Prime.
link for my device specifics: http://www.movilcelular.es/movil/samsung-galaxy-grand-prime-duos-sm-g530h/1835
Anyone to help me. This is very hard for me. Thnx for your help. And your time
recovery.fstab:
# <src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/bootdevice/by-name/efs /efs ext4 default recoveryonly
/dev/block/bootdevice/by-name/boot /boot emmc default recoveryonly
/dev/block/bootdevice/by-name/recovery /recovery emmc default recoveryonly
/dev/block/bootdevice/by-name/cache /cache ext4 default recoveryonly
/dev/block/bootdevice/by-name/system /system ext4 default recoveryonly
/dev/block/bootdevice/by-name/userdata /data ext4 default wait,length=-16384
/dev/block/mmcblk1p1 /sdcard vfat default recoveryonly
/dev/block/bootdevice/by-name/apnhlos /modem emmc default recoveryonly
/dev/block/bootdevice/by-name/modem /mdm emmc default recoveryonly
/dev/block/bootdevice/by-name/hidden /preload ext4 default recoveryonly
Code:
change_mnt=yes
param1=ext4
param2=EMMC
param1_sdcard=vfat
param2_sdcard=MTD
sys_mnt=\/dev\/block\/bootdevice\/by-name\/system
cache_mnt=\/dev\/block\/bootdevice\/by-name\/cache
boot_mnt=\/dev\/block\/bootdevice\/by-name\/boot
data_mnt=\/dev\/block\/bootdevice\/by-name\/userdata
sdcard_mnt\/dev\/block\/mmcblk1p1
modem_mnt=\/dev\/block\/bootdevice\/by-name\/modem
fix_boot=yes
im not sure about modem. its maybe
Code:
modem_mnt=\/dev\/block\/bootdevice\/by-name\/apnhlos

Help (g2 mini/d620k external and internal storage swap)

hi, masters.. i just want to ask regarding my LG G2 D620K, I want to swap its internal and external storage. it's already rooted. I've read procedures for manual editing vold.fstab on root/system/etc..but i cant find such file. i've found something with "fstab" but it's "fstab.g2m". .below is what it says inside:
Android fstab file. # The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#TODO: Add 'check' as fs_mgr_flags with data partition. # Currently we dont have e2fsck compiled. So fs check would failed. # #<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> /devices/msm_sdcc.2/mmc_host /storage/external_SD vfat nosuid,nodev wait,voldmanaged=external_SD:auto /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1,discard wait,check /dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc,discard,data=ordered wait,check,encryptable=/dev/block/platform/msm_sdcc.1/by-name/encrypt #/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc wait,check #/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check #/dev/block/platform/msm_sdcc.1/by-name/drm /persist-lg ext4 nosuid,nodev,barrier=1,data=ordered wait,check #/dev/block/platform/msm_sdcc.1/by-name/sns /sns ext4 nosuid,nodev,barrier=1,data=ordered wait,check #/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults #/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults #/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
android version: 5.0.2
software version: v20b-515-03
thank you in advance for any help

What file system should i use?

Edit: I found solution
ext4 according to TWRP fstab
https://twrp.me/samsung/samsunggalaxya32017.html
Code:
/boot emmc /dev/block/platform/13540000.dwmmc0/by-name/BOOT
/cache ext4 /dev/block/platform/13540000.dwmmc0/by-name/CACHE
/data ext4 /dev/block/platform/13540000.dwmmc0/by-name/USERDATA length=-16384
/recovery emmc /dev/block/platform/13540000.dwmmc0/by-name/RECOVERY
/system ext4 /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM
/efs emmc /dev/block/platform/13540000.dwmmc0/by-name/EFS flags=display="EFS";backup=1
/radio emmc /dev/block/platform/13540000.dwmmc0/by-name/RADIO flags=display="Modem";backup=1
/cpefs emmc /dev/block/platform/13540000.dwmmc0/by-name/CPEFS flags=display="CPEFS";backup=1
/system_image emmc /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM
/cache_image emmc /dev/block/platform/13540000.dwmmc0/by-name/CACHE
/radio_image emmc /dev/block/platform/13540000.dwmmc0/by-name/RADIO
/hidden_image emmc /dev/block/platform/13540000.dwmmc0/by-name/HIDDEN
/external_sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable
/usb-otg vfat /dev/block/sdd1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable
Nothing to learn here... F... I hate these.. "I found solution".
Me, me, me,,, and then comes another asking for the same...

Categories

Resources