[Q] Create a edify_defs file - Android Q&A, Help & Troubleshooting

I tried to create my own edify_defs file to cook my own roms, but every time I try to flash the zip it fails because of that file it's not well. I don't know how to adapt it for my device. I tried to follow the template and other tutorials but it fails too.
Can anyone help me to create this file?
I attach some info:
recovery.fstab
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/bootimg /bootimg emmc defaults defaults
/dev/recovery /recovery emmc defaults defaults
/dev/uboot /uboot emmc defaults defaults
/[email protected] /system ext4 ro,noatime wait
/[email protected] /cache ext4 noatime,nosuid,nodev,noauto_da_alloc wait
/[email protected] /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,encryptable=footer
/devices/platform/mtk-msdc.1/mmc_host/mmc1 auto vfat defaults voldmanaged=sdcard1:auto
Code:
~ # ls -l
__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!
drwxr-xr-x 2 root root 0 Oct 19 01:35 boot
drwxr-xr-x 2 root root 0 Oct 19 01:35 cache
drwxrwx--x 26 system system 4096 Oct 19 01:14 data
drwxr-xr-x 2 root root 0 Oct 19 01:35 datadata
-rwx------ 1 400 401 1618 Sep 24 20:19 default.prop
drwxr-xr-x 10 root root 3120 Oct 19 01:36 dev
drwxr-xr-x 2 root root 0 Oct 19 01:35 emmc
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_f -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_s -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_ro -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p7
drwx------ 2 400 401 0 Oct 19 01:44 etc
drwxr-xr-x 2 root root 0 Oct 19 01:35 external_sd
-rwx------ 1 400 401 27410 Sep 24 20:19 file_contexts
-rwx------ 1 400 401 975 Sep 24 20:19 fstab.mt8127
-rwx------ 1 400 401 187840 Sep 24 20:19 init
-rwx------ 1 400 401 3151 Sep 24 20:19 init.rc
drwxr-xr-x 2 root root 0 Oct 19 01:35 internal_sd
drwxrwxr-x 5 root system 0 Oct 19 01:35 mnt
dr-xr-xr-x 108 root root 0 Jan 1 1970 proc
-rwx------ 1 400 401 2201 Sep 24 20:19 property_contexts
drwxr-xr-x 2 root root 0 Oct 19 01:35 recovery
drwx------ 3 400 401 0 Sep 24 20:19 res
drwx------ 2 root root 0 Aug 13 16:33 root
drwx------ 3 400 401 0 Sep 24 20:19 sbin
drwxr-xr-x 2 root root 0 Oct 19 01:35 sd-ext
lrwxrwxrwx 1 root root 13 Oct 19 01:35 sdcard -> /data/media/0
-rwx------ 1 400 401 663 Sep 24 20:19 seapp_contexts
-rwx------ 1 400 401 75012 Sep 24 20:19 sepolicy
d---r-x--- 3 root sdcard_r 60 Oct 19 01:35 storage
dr-xr-xr-x 17 root root 0 Oct 19 01:35 sys
drwxr-xr-x 3 400 401 0 Sep 24 20:19 system
drwxrwxr-x 2 root shell 140 Oct 19 01:38 tmp
-rwx------ 1 400 401 7275 Sep 24 20:19 ueventd.rc
Code:
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1017272 160 1017112 0% /dev
tmpfs 1017272 276 1016996 0% /tmp
tmpfs 1017272 0 1017272 0% /storage
tmpfs 1017272 0 1017272 0% /mnt/secure
tmpfs 1017272 0 1017272 0% /mnt/fuse
/[email protected] 28194832 7112272 21082560 25% /data
/dev/block/vold/179:97
1927480 679284 1248196 35% /storage/sdcard1
/[email protected] 1032088 662876 369212 64% /system
/[email protected] 705512 12632 692880 2% /cache
Thanks.

Related

DT a2sd issues

ok as dr.notor said i will open a post here with my problems
i flashed ciaox' open optimus latest version and tried numerous times to get a2sd to work, everything i try it keeps telling me the damn same thing: EXT partition not mounted. i've tried different kernels, reflashing openoptimus, partitioning through my windows pc and cwm.
here is adb shell output and logcat(i don't know exactly what part of logcat must be extracted so i will upload it all)
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\CORINA\My Documents\Downloads\android-sdk-windows\tool
s>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
sh-3.2$ su
su
sh-3.2# busybox ls -la /system/etc/init.d
busybox ls -la /system/etc/init.d
drwxrwxrwx 1 0 0 2048 Aug 16 17:52 ←[1;34m.←[0m
drwxr-xr-x 1 0 0 2048 Aug 16 17:38 ←[1;34m..←[0m
-rwxrwxrwx 1 0 0 630 Aug 1 2008 ←[1;32m00banner←[0m
-rwxrwxrwx 1 0 0 642 Aug 1 2008 ←[1;32m00clock←[0m
-rwxrwxrwx 1 0 0 707 Aug 1 2008 ←[1;32m00clock~←[0m
-rwxrwxrwx 1 0 0 27 Aug 1 2008 ←[1;32m01sysctl←[0m
-rwxrwxrwx 1 0 0 1078 Aug 1 2008 ←[1;32m01zipalign←[0m
-rwxrwxrwx 1 0 0 266 Aug 1 2008 ←[1;32m02firstboot←[0m
-rwxrwxrwx 1 0 0 8177 Aug 1 2008 ←[1;32m02loopysmoothnes
stweak←[0m
-rwxrwxrwx 1 0 0 782 Aug 1 2008 ←[1;32m03ramscript←[0m
-rwxrwxrwx 1 0 0 199 Aug 1 2008 ←[1;32m04sdcard←[0m
-rwxrwxrwx 1 0 0 250 Aug 1 2008 ←[1;32m05powerfix←[0m
-rwxrwxrwx 1 0 0 1499 Aug 1 2008 ←[1;32m1apps2sd←[0m
-rwxrwxrwx 1 0 0 86 Aug 1 2008 ←[1;32m99complete←[0m
sh-3.2# busybox ls -la /cache
busybox ls -la /cache
drwxrwx--x 1 1000 2001 2048 Aug 17 10:54 ←[1;34m.←[0m
drwxr-xr-x 16 0 0 0 Aug 16 22:12 ←[1;34m..←[0m
lrwxrwxrwx 1 0 0 18 Aug 17 10:54 ←[1;36mdalvik-cache←[0m
-> ←[1;34m/data/dalvik-cache←[0m
drwxrwxrwx 1 0 0 2048 Aug 17 10:54 ←[1;34mdc←[0m
drwxrwx--- 1 0 0 2048 Aug 16 17:41 ←[1;34mlost+found←[0m
drwxrwx--- 1 1000 2001 2048 Aug 16 22:08 ←[1;34mrecovery←[0m
sh-3.2# busybox ls -la /data
busybox ls -la /data
drwxrwx--x 1 1000 1000 2048 Aug 17 10:54 ←[1;34m.←[0m
drwxr-xr-x 16 0 0 0 Aug 16 22:12 ←[1;34m..←[0m
-rw-rw-rw- 1 0 0 2 Aug 16 17:52 ←[0;0m.noa2sd←[0m
drwxrwxrwx 1 0 0 2048 Aug 16 17:41 ←[1;34mamit←[0m
drwxrwxr-x 1 1000 1000 2048 Aug 16 18:36 ←[1;34manr←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mapp←[0m
drwxrwx--x 1 1000 1000 2048 Aug 16 17:41 ←[1;34mapp-private←[0m
drwx------ 1 1000 1000 2048 Aug 16 17:43 ←[1;34mbackup←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mdalvik-cache←[0m
-rwxrwxrwx 1 0 0 202 Aug 16 22:12 ←[1;32mdalvikheap←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mdata←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:41 ←[1;34mdbcheck←[0m
drwxr-x--- 1 1000 1007 2048 Aug 16 18:36 ←[1;34mdontpanic←[0m
-rw-rw-rw- 1 0 0 4110 Aug 17 10:54 ←[0;0mdta2sd.lg1←[0m
-rw-rw-rw- 1 0 0 4090 Aug 17 10:54 ←[0;0mdta2sd.lg2←[0m
-rw-rw-rw- 1 0 0 3928 Aug 17 10:54 ←[0;0mdta2sd.log←[0m
-rw-rw-rw- 1 0 0 296 Aug 16 17:52 ←[0;0mdtinstall.log←[0m
prw-rw-rw- 1 1000 1000 2048 Aug 16 17:41 ←[0;35mdun←[0m
drwxr-xr-x 1 0 0 2048 Aug 16 17:52 ←[1;34mjit←[0m
drwxrwx--- 1 4001 4002 2048 Aug 16 21:49 ←[1;34mlgdrm←[0m
drwxrwx--x 1 2000 2000 2048 Aug 16 17:41 ←[1;34mlocal←[0m
drwxrwx--x 1 1000 1000 2048 Aug 16 17:41 ←[1;34mlogger←[0m
drwxrwx--- 1 0 0 2048 Aug 16 17:41 ←[1;34mlost+found←[0m
drwxrwx--t 1 1000 9998 2048 Aug 16 17:41 ←[1;34mmisc←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:41 ←[1;34mnv←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34mnx←[0m
drwx------ 1 0 0 2048 Aug 17 10:54 ←[1;34mproperty←[0m
drwxrwx--- 1 1001 1001 2048 Aug 16 22:12 ←[1;34mradio←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34mscnt←[0m
drwx------ 1 1000 1000 2048 Aug 16 17:42 ←[1;34msecure←[0m
drwxrwxr-x 1 1000 1000 2048 Aug 17 10:56 ←[1;34msystem←[0m
drwxr-xr-x 1 1000 1000 2048 Aug 16 18:36 ←[1;34mtombstones←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34muma←[0m
drwxrwx--- 1 4001 4002 2048 Aug 16 17:41 ←[1;34mwmdrm←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:43 ←[1;34mxt9←[0m
-rw-r--r-- 1 0 0 142 Aug 16 22:12 ←[0;0mzipalign.log←[0m
sh-3.2# a2sd check
a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
[Γ£û] Ext partition found, but not mounted.
Your rom may not be setup to run Apps2SD.
Check with your rom developer if the boot image
is programmed to run Apps2SD.
Your partition may be using an EXT4 partition,
but your rom may not support EXT4. Repartition
your SD card to use EXT2 or EXT3.
sh-3.2# mount
mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock1 on /system type yaffs2 (rw,relatime)
/dev/block/mtdblock9 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock8 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock3 on /lgdrm type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,r
elatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,
iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noe
xec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=c
p437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
sh-3.2#
0/ A usable terminal for Windows: Tera Term - download
1/ Suggestions:
What you have is called /system/etc/init.d/apps2sd? How have you installed that a2sd thing? This will not run, needs to be prefixed with digit(s) but it is extremely hard to recognize that due to the ****ty terminal output. Get a usable one above. Anyway, as an absolute minimum:
Code:
> adb shell
$ su
# mount -o remount,rw /system
# rm -f /system/etc/init.d/00clock~
# rm -f /system/etc/init.d/01zipalign
# rm -f /system/etc/init.d/03ramscript
# rm -f /system/etc/init.d/04sdcard
# mv /system/etc/init.d/*apps2sd /system/etc/init.d/04apps2sd
# a2sd reinstall
Personally would do this as well:
Code:
# rm -f /system/etc/init.d/02loopysmoothnesstweak
# rm -f /system/etc/init.d/05powerfix
# rm -f /system/etc/init.d/03ramscript
and would forget about installing crazy tweaks from god knows where.
Comments:
- 00clock~ is some ****ty duplicate
- 01zipalign - eh, that is what a2sd does without any initscript?!
- 02loopysmoothnesstweak - crazy junk tweaks
- 03ramscript - looks like more crazy junk tweaks?!
- 05powerfix - even more crazy junk tweaks?!?!
- apps2sd - apparently misnamed
Get back once done.
3/ If the above does not fix it
Code:
# rm -f /system/etc/init.d/*apps2sd*
and reflash stable (NOT beta) DT app2sd and enable what you need after booting.
4/ If it still does not work, output of:
Code:
# busybox fdisk -l /dev/block/mmcblk0
# cat /proc/filesystems
# uname -a
Sorry but i dont have the smallest idea on how to connect with tera :/
And the thing is these logs were made after a fresh install of open optimus
Sent from my LG Optimus One P500 using XDA App
You need Cygwin installed, use the cyglaunch icon then. Anyway, that was not the point. The above works even with the ****ty cmd.exe
biggiex2 said:
ok as dr.notor said i will open a post here with my problems
i flashed ciaox' open optimus latest version and tried numerous times to get a2sd to work, everything i try it keeps telling me the damn same thing: EXT partition not mounted. i've tried different kernels, reflashing openoptimus, partitioning through my windows pc and cwm.
here is adb shell output and logcat(i don't know exactly what part of logcat must be extracted so i will upload it all)
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\CORINA\My Documents\Downloads\android-sdk-windows\tool
s>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
sh-3.2$ su
su
sh-3.2# busybox ls -la /system/etc/init.d
busybox ls -la /system/etc/init.d
drwxrwxrwx 1 0 0 2048 Aug 16 17:52 ←[1;34m.←[0m
drwxr-xr-x 1 0 0 2048 Aug 16 17:38 ←[1;34m..←[0m
-rwxrwxrwx 1 0 0 630 Aug 1 2008 ←[1;32m00banner←[0m
-rwxrwxrwx 1 0 0 642 Aug 1 2008 ←[1;32m00clock←[0m
-rwxrwxrwx 1 0 0 707 Aug 1 2008 ←[1;32m00clock~←[0m
-rwxrwxrwx 1 0 0 27 Aug 1 2008 ←[1;32m01sysctl←[0m
-rwxrwxrwx 1 0 0 1078 Aug 1 2008 ←[1;32m01zipalign←[0m
-rwxrwxrwx 1 0 0 266 Aug 1 2008 ←[1;32m02firstboot←[0m
-rwxrwxrwx 1 0 0 8177 Aug 1 2008 ←[1;32m02loopysmoothnes
stweak←[0m
-rwxrwxrwx 1 0 0 782 Aug 1 2008 ←[1;32m03ramscript←[0m
-rwxrwxrwx 1 0 0 199 Aug 1 2008 ←[1;32m04sdcard←[0m
-rwxrwxrwx 1 0 0 250 Aug 1 2008 ←[1;32m05powerfix←[0m
-rwxrwxrwx 1 0 0 1499 Aug 1 2008 ←[1;32m1apps2sd←[0m
-rwxrwxrwx 1 0 0 86 Aug 1 2008 ←[1;32m99complete←[0m
sh-3.2# busybox ls -la /cache
busybox ls -la /cache
drwxrwx--x 1 1000 2001 2048 Aug 17 10:54 ←[1;34m.←[0m
drwxr-xr-x 16 0 0 0 Aug 16 22:12 ←[1;34m..←[0m
lrwxrwxrwx 1 0 0 18 Aug 17 10:54 ←[1;36mdalvik-cache←[0m
-> ←[1;34m/data/dalvik-cache←[0m
drwxrwxrwx 1 0 0 2048 Aug 17 10:54 ←[1;34mdc←[0m
drwxrwx--- 1 0 0 2048 Aug 16 17:41 ←[1;34mlost+found←[0m
drwxrwx--- 1 1000 2001 2048 Aug 16 22:08 ←[1;34mrecovery←[0m
sh-3.2# busybox ls -la /data
busybox ls -la /data
drwxrwx--x 1 1000 1000 2048 Aug 17 10:54 ←[1;34m.←[0m
drwxr-xr-x 16 0 0 0 Aug 16 22:12 ←[1;34m..←[0m
-rw-rw-rw- 1 0 0 2 Aug 16 17:52 ←[0;0m.noa2sd←[0m
drwxrwxrwx 1 0 0 2048 Aug 16 17:41 ←[1;34mamit←[0m
drwxrwxr-x 1 1000 1000 2048 Aug 16 18:36 ←[1;34manr←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mapp←[0m
drwxrwx--x 1 1000 1000 2048 Aug 16 17:41 ←[1;34mapp-private←[0m
drwx------ 1 1000 1000 2048 Aug 16 17:43 ←[1;34mbackup←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mdalvik-cache←[0m
-rwxrwxrwx 1 0 0 202 Aug 16 22:12 ←[1;32mdalvikheap←[0m
drwxrwx--x 1 1000 1000 2048 Aug 17 10:05 ←[1;34mdata←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:41 ←[1;34mdbcheck←[0m
drwxr-x--- 1 1000 1007 2048 Aug 16 18:36 ←[1;34mdontpanic←[0m
-rw-rw-rw- 1 0 0 4110 Aug 17 10:54 ←[0;0mdta2sd.lg1←[0m
-rw-rw-rw- 1 0 0 4090 Aug 17 10:54 ←[0;0mdta2sd.lg2←[0m
-rw-rw-rw- 1 0 0 3928 Aug 17 10:54 ←[0;0mdta2sd.log←[0m
-rw-rw-rw- 1 0 0 296 Aug 16 17:52 ←[0;0mdtinstall.log←[0m
prw-rw-rw- 1 1000 1000 2048 Aug 16 17:41 ←[0;35mdun←[0m
drwxr-xr-x 1 0 0 2048 Aug 16 17:52 ←[1;34mjit←[0m
drwxrwx--- 1 4001 4002 2048 Aug 16 21:49 ←[1;34mlgdrm←[0m
drwxrwx--x 1 2000 2000 2048 Aug 16 17:41 ←[1;34mlocal←[0m
drwxrwx--x 1 1000 1000 2048 Aug 16 17:41 ←[1;34mlogger←[0m
drwxrwx--- 1 0 0 2048 Aug 16 17:41 ←[1;34mlost+found←[0m
drwxrwx--t 1 1000 9998 2048 Aug 16 17:41 ←[1;34mmisc←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:41 ←[1;34mnv←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34mnx←[0m
drwx------ 1 0 0 2048 Aug 17 10:54 ←[1;34mproperty←[0m
drwxrwx--- 1 1001 1001 2048 Aug 16 22:12 ←[1;34mradio←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34mscnt←[0m
drwx------ 1 1000 1000 2048 Aug 16 17:42 ←[1;34msecure←[0m
drwxrwxr-x 1 1000 1000 2048 Aug 17 10:56 ←[1;34msystem←[0m
drwxr-xr-x 1 1000 1000 2048 Aug 16 18:36 ←[1;34mtombstones←[0m
drwxrwx--- 1 1013 1000 2048 Aug 16 17:41 ←[1;34muma←[0m
drwxrwx--- 1 4001 4002 2048 Aug 16 17:41 ←[1;34mwmdrm←[0m
drwxrwxrwx 1 1000 1000 2048 Aug 16 17:43 ←[1;34mxt9←[0m
-rw-r--r-- 1 0 0 142 Aug 16 22:12 ←[0;0mzipalign.log←[0m
sh-3.2# a2sd check
a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
[Γ£û] Ext partition found, but not mounted.
Your rom may not be setup to run Apps2SD.
Check with your rom developer if the boot image
is programmed to run Apps2SD.
Your partition may be using an EXT4 partition,
but your rom may not support EXT4. Repartition
your SD card to use EXT2 or EXT3.
sh-3.2# mount
mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock1 on /system type yaffs2 (rw,relatime)
/dev/block/mtdblock9 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock8 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock3 on /lgdrm type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,r
elatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,
iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noe
xec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=c
p437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
sh-3.2#
Click to expand...
Click to collapse
whu dont u use s2e which is a great alternative to a2sd and works like a charm.
search market
doctor you are amazing... i did step 1 and 2 with that crappy cmd and...
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
H:\Downloads\Phone stuff\droid\android-sdk-windows\tools>adb shell
sh-3.2$ su
su
sh-3.2# a2sd check
a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Creating /cache/dc
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
Darktremor 2.7.5.2-1 Apps2SD Status Report
================================================================================
===
Legend: [Γ£ö]=Setting is correct
[‼]=Setting is correct, but not optimal.
[Γ£û]=Setting is incorrect and needs to be fixed or option is not availa
ble.
================================================================================
===
Block Device - [Γ£ö] Found
- [Γ£ö] /dev/block/mmcblk0p2
EXT Partition - [Γ£ö] Mounted
Mount Point - [ ] /system/sd
Partition Type - [Γ£ö] EXT4
- [‼] May be incompatible w/ ROMS
Support EXT2? - [Γ£ö] Yes
Support EXT3? - [Γ£ö] Yes
Support EXT4? - [Γ£ö] Yes
Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[Γ£ö] Programs run from SD card
To run from internal storage, type a2sd remove
Private Apps - [ ] Linked to SD Card.
[ ] No Apps2SD Flag File not found.
[Γ£ö] Private Programs run from SD card
To run from internal storage, type a2sd remove
Dalvik Cache - [ ] Symbolically Linked.
[ ] Dalvik to SD flag file found.
[Γ£ö] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart
Swap - [ ] Partition not present or no swap support.
[Γ£ö] Swap does not start.
ZipAlign - [Γ£ö] Not running at boot.
To activate it, type a2sd zipalign
Dalvik Heap(MB) - [Γ£ö] 32m
Low Memory
Killer Settings - [Γ£ö] 2048,3072,4096,6144,7168,8192
Note: Values are in pages.
1 page = 4KB memory.
Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App
[Γüç] For a list of commands that you can use with Apps2SD
Type: a2sd help
sh-3.2#
i want to know...shoud i activate zip align? and can you please explain to me how come those tweaks prevented my ext partition to be mounted. i just don't understand. or was it because of the missnaming of app2sd?
anyway i'm glad it's working! this really made my day
shhbz said:
whu dont u use s2e which is a great alternative to a2sd and works like a charm.
search market
Click to expand...
Click to collapse
S2E is for CyanogenMod ROMs only!!!
biggiex2 said:
doctor you are amazing... i did step 1 and 2 with that crappy cmd and...
i want to know...shoud i activate zip align? and can you please explain to me how come those tweaks prevented my ext partition to be mounted. i just don't understand. or was it because of the missnaming of app2sd?
anyway i'm glad it's working! this really made my day
Click to expand...
Click to collapse
Wrt zipalign - makes boot a bit longer, should not harm anything though.
Otherwise - do not have time to download OpenOptimus ROM right now to check. Will look later whether your /system partition did not get formatted properly on flashing or whether the stuff is really misnamed and borked there.
I don't have yhis problem
If you do not have problems, then move on... As said above, most likely /system not formatted properly on flashing, leaving stale junk behind.
interesting....thanks for the help though
i have the same problem it always says sdcard not mounted, i also tried flashing again dta2sd but the same result.
Code:
C:\android-sdk\platform-tools>adb shell
sh-3.2$ su
su
sh-3.2# mount -o remount,rw /system
mount -o remount,rw /system
sh-3.2# rm -f /system/etc/init.d/04sdcard
rm -f /system/etc/init.d/04sdcard
sh-3.2# mv /system/etc/init.d/*apps2sd /system/etc/init.d/04apps2sd
mv /system/etc/init.d/*apps2sd /system/etc/init.d/04apps2sd
sh-3.2# a2sd reinstall
a2sd reinstall
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2-1 (2011-01-02)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Starting Darktremor Apps2SD Version 2.7.5.2-1
[ ] Launching Apps2SD Start Program with reinstall
[ ] Starting Darktremor Apps2SD in reinstall mode
[X] SD Card not mounted.
Cannot reinstall applications to SD card.
I had the same problem, I reinstalled the a2sd script and worked.

[Q] Help:Can't mount cache, overlapping partitions.

Hi folks,
I have bricked Desire X. It was unlocked and rooted. Still has stock ROM. Before 4 months comes OTA update. It was start updating (I think), but with low battery it was turned of in the middle of update. And after that problems starts. After start of phone only HTC logo remains. I can run ClockworkMod Recovery v6.0.1.4 or use fastboot or ADB. When run recovery Im getting
Code:
W:failed to mount cache (Block device required)
In reported log is following
Code:
Starting recovery on Sun Jan 6 09:52:55 1980
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (480 x 800)
ClockworkMod Recovery v6.0.1.4
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /boot emmc boot (null) 0
2 /cache ext4 cache (null) 0
3 /data ext4 userdata (null) 0
4 /misc emmc misc (null) 0
5 /recovery emmc recovery (null) 0
6 /sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 0
7 /system ext4 system (null) 0
8 /devlog ext4 devlog (null) 0
9 /internal_sdcard vfat /dev/block/mmcblk0p35 (null) 0
W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
I:Completed outputting fstab.
I:Processing arguments.
stat misc try 1: No such file or directory
stat misc try 2: No such file or directory
stat misc try 3: No such file or directory
stat misc try 4: No such file or directory
stat misc try 5: No such file or directory
stat misc try 6: No such file or directory
stat misc try 7: No such file or directory
stat misc try 8: No such file or directory
stat misc try 9: No such file or directory
stat misc try 10: No such file or directory
failed to stat misc
E:Can't open misc
(No such file or directory)
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/command
stat misc try 1: No such file or directory
stat misc try 2: No such file or directory
stat misc try 3: No such file or directory
stat misc try 4: No such file or directory
stat misc try 5: No such file or directory
stat misc try 6: No such file or directory
stat misc try 7: No such file or directory
stat misc try 8: No such file or directory
stat misc try 9: No such file or directory
stat misc try 10: No such file or directory
failed to stat misc
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"
ro.boot.pagesize=4096
ro.boot.lb=1
ro.boot.baseband=1.10.40.23
ro.boot.cid=HTC__032
ro.boot.devicerev=2
ro.boot.batt_poweron=die_battery
ro.boot.carrier=HTC-EastEurope
ro.boot.mid=PM6610000
ro.boot.keycaps=qwerty
ro.boot.dq=PASS
ro.boot.mode=recovery
ro.boot.serialno=SH2BWLY00975
ro.boot.bootloader=1.24.0000
ro.boot.nledhw=1
ro.serialno=SH2BWLY00975
ro.bootmode=recovery
ro.baseband=1.10.40.23
ro.bootloader=1.24.0000
ro.hardware=protou
ro.revision=128
ro.emmc=1
ro.boot.emmc=1
ro.factorytest=0
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=adb
ro.build.id=JZO54K
ro.build.display.id=cm_protou-userdebug 4.1.2 JZO54K eng.hudson.20121013.201247 test-keys
ro.build.version.incremental=eng.hudson.20121013.201247
ro.build.version.sdk=16
ro.build.version.codename=REL
ro.build.version.release=4.1.2
ro.build.date=Sat Oct 13 20:13:14 PDT 2012
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=hudson
ro.build.host=koushik-lion
ro.build.tags=test-keys
ro.product.model=protou
ro.product.brand=htc
ro.product.name=cm_protou
ro.product.device=protou
ro.product.board=protou
ro.product.cpu.abi=armeabi
ro.product.manufacturer=htc
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=unknown
ro.build.product=protou
ro.build.description=cm_protou-userdebug 4.1.2 JZO54K eng.hudson.20121013.201247 test-keys
ro.build.fingerprint=htc/cm_protou/protou:4.1.2/JZO54K/eng.hudson.20121013.201247:userdebug/test-keys
ro.build.characteristics=default
ro.cm.device=protou
ro.rommanager.developerid=cyanogenmod
keyguard.no_require_sim=true
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.cm.version=10-20121014-UNOFFICIAL-protou
ro.modversion=10-20121014-UNOFFICIAL-protou
ro.config.ringtone=CyanTone.ogg
ro.config.notification_sound=CyanMessage.ogg
ro.config.alarm_alert=CyanAlarm.ogg
ro.carrier=unknown
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.adb.qemud=1
dalvik.vm.lockprof.threshold=500
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
init.svc.ueventd=running
init.svc.recovery=running
service.adb.root=1
init.svc.adbd=running
I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
W:failed to mount cache (Block device required)
W:Can't unlink /cache/recovery/command
I tried:
1. install stock rom - nothing changed,
2. stock recovery - not possible, still I'm getting
Code:
fastboot flash recovery stock_recovery.img
sending 'recovery' (4272 KB)...
OKAY [ 0.823s]
writing 'recovery'...
FAILED (remote: image update error)
finished. total time: 1.946s
3. customized ICS ROM - nothing,
4. update of ROM via GoldCard in Bootloader - green progress bar was displayed, but orange progress was not changed.
HELP!
Phone status:
Code:
version: 0.5
version-bootloader: 1.24.0000 (HBOOT)
version-baseband: 1.10.40.23 (RADIO)
version-cpld: None
version-microp: None
version-main: 1.18.401.1
version-misc: PVT SHIP S-ON
serialno: SH2BWLY00975
imei: 358835049211086
meid:
product: proto
platform: HBOOT-8225
modelid: PM6610000
cidnum: HTC__032
battery-status: good
battery-voltage: 0mV
partition-layout: HTC
security: on
build-mode: SHIP
boot-mode: FASTBOOT
commitno-bootloader: dirty-46aff746
hbootpreupdate: 12
gencheckpt: 0
Code:
~ # mount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
Code:
~ # cat /proc/mounts
cat /proc/mounts
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
Code:
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 310900 48 310852 0% /dev
Code:
~ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name
179 0 3784704 mmcblk0
179 1 20 mmcblk0p1
179 2 544 mmcblk0p2
179 3 4500 mmcblk0p3
179 4 1 mmcblk0p4
179 5 30000 mmcblk0p5
179 6 12500 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 3072 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 1024 mmcblk0p10
179 11 1024 mmcblk0p11
179 12 8751 mmcblk0p12
179 13 4096 mmcblk0p13
179 14 4096 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 6909 mmcblk0p16
179 17 256 mmcblk0p17
179 18 1024 mmcblk0p18
179 19 1024 mmcblk0p19
179 20 1280 mmcblk0p20
179 21 8701 mmcblk0p21
179 22 4096 mmcblk0p22
179 23 256 mmcblk0p23
179 24 2047 mmcblk0p24
179 25 980991 mmcblk0p25
179 26 1261567 mmcblk0p26
179 27 262143 mmcblk0p27
179 28 24247 mmcblk0p28
179 29 71 mmcblk0p29
179 30 256 mmcblk0p30
179 31 1155072 mmcblk0p31
179 64 7925760 mmcblk1
179 65 7920013 mmcblk1p1
Code:
~ # ls -la /dev/block/mmcblk*
ls -la /dev/block/mmcblk*
brw------- 1 root root 179, 0 Jan 6 20:49 /dev/block/mmcblk0
brw------- 1 root root 179, 1 Jan 6 20:49 /dev/block/mmcblk0p1
brw------- 1 root root 179, 10 Jan 6 20:49 /dev/block/mmcblk0p10
brw------- 1 root root 179, 11 Jan 6 20:49 /dev/block/mmcblk0p11
brw------- 1 root root 179, 12 Jan 6 20:49 /dev/block/mmcblk0p12
brw------- 1 root root 179, 13 Jan 6 20:49 /dev/block/mmcblk0p13
brw------- 1 root root 179, 14 Jan 6 20:49 /dev/block/mmcblk0p14
brw------- 1 root root 179, 15 Jan 6 20:49 /dev/block/mmcblk0p15
brw------- 1 root root 179, 16 Jan 6 20:49 /dev/block/mmcblk0p16
brw------- 1 root root 179, 17 Jan 6 20:49 /dev/block/mmcblk0p17
brw------- 1 root root 179, 18 Jan 6 20:49 /dev/block/mmcblk0p18
brw------- 1 root root 179, 19 Jan 6 20:49 /dev/block/mmcblk0p19
brw------- 1 root root 179, 2 Jan 6 20:49 /dev/block/mmcblk0p2
brw------- 1 root root 179, 20 Jan 6 20:49 /dev/block/mmcblk0p20
brw------- 1 root root 179, 21 Jan 6 20:49 /dev/block/mmcblk0p21
brw------- 1 root root 179, 22 Jan 6 20:49 /dev/block/mmcblk0p22
brw------- 1 root root 179, 23 Jan 6 20:49 /dev/block/mmcblk0p23
brw------- 1 root root 179, 24 Jan 6 20:49 /dev/block/mmcblk0p24
brw------- 1 root root 179, 25 Jan 6 20:49 /dev/block/mmcblk0p25
brw------- 1 root root 179, 26 Jan 6 20:49 /dev/block/mmcblk0p26
brw------- 1 root root 179, 27 Jan 6 20:49 /dev/block/mmcblk0p27
brw------- 1 root root 179, 28 Jan 6 20:49 /dev/block/mmcblk0p28
brw------- 1 root root 179, 29 Jan 6 20:49 /dev/block/mmcblk0p29
brw------- 1 root root 179, 3 Jan 6 20:49 /dev/block/mmcblk0p3
brw------- 1 root root 179, 30 Jan 6 20:49 /dev/block/mmcblk0p30
brw------- 1 root root 179, 31 Jan 6 20:49 /dev/block/mmcblk0p31
brw------- 1 root root 179, 4 Jan 6 20:49 /dev/block/mmcblk0p4
brw------- 1 root root 179, 5 Jan 6 20:49 /dev/block/mmcblk0p5
brw------- 1 root root 179, 6 Jan 6 20:49 /dev/block/mmcblk0p6
brw------- 1 root root 179, 7 Jan 6 20:49 /dev/block/mmcblk0p7
brw------- 1 root root 179, 8 Jan 6 20:49 /dev/block/mmcblk0p8
brw------- 1 root root 179, 9 Jan 6 20:49 /dev/block/mmcblk0p9
brw------- 1 root root 179, 64 Jan 6 22:41 /dev/block/mmcblk1
brw------- 1 root root 179, 65 Jan 6 22:41 /dev/block/mmcblk1p1
Code:
~ # tail ./etc/fstab
tail ./etc/fstab
♥ /cache ext4 rw
/dev/block/mmcblk0p26 /data ext4 rw
/dev/block/mmcblk0p25 /system ext4 rw
/dev/block/mmcblk1p1 /sdcard vfat rw
Code:
~ # tail ./etc/recovery.fstab
tail ./etc/recovery.fstab
/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
Code:
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Error: Can't have overlapping partitions.
I also tried to lock phone, but it doesnt work.
Code:
c:\adb>fastboot oem lock
(bootloader) Lock failed!
FAILED (status read failed (Too many links))
finished. total time: 0.789s
My findings was ended only on one conclusion. Internal partitions were screwed up. I think it was done by OTA from ICS to JB - need more space. I can I fix missed partitions (cache..)?
I think you're screwed (always charge up your battery before updating).
Send it to a HTC Repair Center, and hope they will/can fix it
You still have ICS radio, ICS hboot and ICS partition layout (I don't know if the latter is true, but your output differs from mine). Try to re-apply the update by following http://forum.xda-developers.com/showthread.php?t=2212067.
EDIT: I also got that error message when relocking the bootloader. Are you sure it's still unlocked?
Can not lock - black screen after that
cobje said:
You still have ICS radio, ICS hboot and ICS partition layout (I don't know if the latter is true, but your output differs from mine). Try to re-apply the update by following http://forum.xda-developers.com/showthread.php?t=2212067.
EDIT: I also got that error message when relocking the bootloader. Are you sure it's still unlocked?
Click to expand...
Click to collapse
I need also locked BOOTLOADER for updating ICS to JB. But when I execute locking
c:\adb>fastboot oem lock
(bootloader) Lock failed!
FAILED (status read failed (Too many links))
finished. total time: 0.785s
phone was restarted and black screen occurs. What is strange that I can connect with ADB shell to the phone with black screen. Any idea where is a problem?
Monet007 said:
I need also locked BOOTLOADER for updating ICS to JB. But when I execute locking
c:\adb>fastboot oem lock
(bootloader) Lock failed!
FAILED (status read failed (Too many links))
finished. total time: 0.785s
phone was restarted and black screen occurs. What is strange that I can connect with ADB shell to the phone with black screen. Any idea where is a problem?
Click to expand...
Click to collapse
Your bootloader or Hboot is corrupt too, I think the only way to send it to a HTC repair center

missing boot partition on xperia

Hello
I want to install new kernel image, but there is no boot partition, trying "ls" command gives this output:
~ # ls
acct init.goldfish.rc sd-ext
cache init.rc sdcard
config mnt sys
d modules system
data pre_hw_config.sh tmp
default.prop proc ueventd.delta.rc
dev recovery.fstab ueventd.goldfish.rc
etc res ueventd.rc
init root vendor
init.delta.rc sbin
~ # ls -l
drwxr-xr-x 3 root root 0 Feb 28 15:56 acct
drwxrwx--x 1 system cache 2048 Aug 31 16:12 cache
dr-x------ 2 root root 0 Feb 28 15:56 config
lrwxrwxrwx 1 root root 17 Feb 28 15:56 d -> /sys/kernel/debug
drwxrwx--x 1 system system 2048 Aug 31 16:12 data
-rw-r--r-- 1 root root 118 Jul 1 2012 default.prop
drwxr-xr-x 14 root root 3340 Feb 28 15:57 dev
lrwxrwxrwx 1 root root 11 Feb 28 15:56 etc -> /system/etc
-rwxr-xr-x 1 root root 98576 Aug 22 2012 init
-rwxr-xr-x 1 root root 5802 Jul 1 2012 init.delta.rc
-rwxr-xr-x 1 root root 1677 Jul 1 2012 init.goldfish.rc
-rwxr-xr-x 1 root root 15559 Aug 22 2012 init.rc
drwxrwxr-x 6 root system 0 Feb 28 15:56 mnt
drwxr-xr-x 2 root root 0 Feb 25 2012 modules
-rwxr-xr-x 1 root root 1406 Jul 1 2012 pre_hw_config.sh
dr-xr-xr-x 138 root root 0 Jan 1 1970 proc
-rwxr-xr-x 1 root root 243 Jul 1 2012 recovery.fstab
drwxr-xr-x 3 root root 0 Feb 28 15:57 res
drwx------ 2 root root 0 Aug 22 2012 root
drwxr-xr-x 2 root root 0 Jul 1 2012 sbin
drwxrwx--x 2 system system 0 Feb 28 15:56 sd-ext
lrwxrwxrwx 1 root root 11 Feb 28 15:56 sdcard -> /mnt/sdcard
drwxr-xr-x 12 root root 0 Jan 1 1970 sys
drwxr-xr-x 1 root root 2048 Feb 22 12:24 system
drwxr-xr-x 2 root root 0 Feb 28 15:57 tmp
-rw-r--r-- 1 root root 744 Jul 1 2012 ueventd.delta.rc
-rw-r--r-- 1 root root 0 Jul 1 2012 ueventd.goldfish.rc
-rw-r--r-- 1 root root 4225 Jul 1 2012 ueventd.rc
lrwxrwxrwx 1 root root 14 Feb 28 15:56 vendor -> /system/vendor
what should I do? its xperia x8, doesnt support fastboot

[Q] Request for rooting/modding orbsmart soundpad400 rk3028a

Hi,
I tried all root methods on the net but nothing worked.
Now I tried to add the su binary and the other files how it is described on the rockchipfirmware page.
But it didn't work either. Than I changed the boot.img to get write permission on the /system partition.
The permissions are now VERY unsafe, but nothing is working.
Info:
ro.build.description=rk3028a-user 4.4.4 KTU84P user.lucid.20141014.100831 release-keys
ro.com.google.gmsversion=4.4.4_r4
ro.product.version=1.0.3
Code:
mount:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtd/by-name/system /system ext4 rw,seclabel,noatime,nodiratime,user_xattr,barrier=1,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/mtd/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=1,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/mtd/by-name/metadata /metadata ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=1,noauto_da_alloc,discard 0 0
/dev/block/mtd/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,user_xattr,barrier=1,data=ordered,noauto_da_alloc,discard 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.maxmpz.audioplayer.unlock-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/system:
drwxr-xr-x. 16 root root 4096 Jan 1 1970 ./
drwxr-x---+ 4 root root 4096 Mai 24 19:52 ../
drwxrwxrwx. 2 root root 4096 Mai 24 00:58 app/
drwxrwxrwx. 3 root 2000 4096 Mai 24 20:18 bin/
-rw-r--r--. 1 root root 3783 Dez 1 03:46 build.prop
drwxr-xr-x. 10 root root 4096 Dez 1 04:03 etc/
drwxr-xr-x. 2 root root 4096 Sep 30 2014 fonts/
drwxr-xr-x. 3 root root 4096 Sep 30 2014 framework/
drwxr-xr-x. 8 root root 8192 Dez 1 03:41 lib/
drwx------. 2 root root 4096 Jan 1 1970 lost+found/
drwxr-xr-x. 3 root root 4096 Dez 1 04:07 media/
drwxr-xr-x. 2 root root 4096 Okt 14 2014 preinstall/
drwxr-xr-x. 2 root root 4096 Okt 10 2014 priv-app/
drwxr-xr-x. 3 root root 4096 Sep 30 2014 tts/
drwxr-xr-x. 8 root root 4096 Sep 30 2014 usr/
drwxr-xr-x. 5 root 2000 4096 Sep 30 2014 vendor/
drwxrwxrwx. 2 root 2000 4096 Mai 23 23:28 xbin/
/system/bin(shorted)
drwxrwxrwx. 3 root 2000 4096 Mai 24 20:18 ./
drwxr-xr-x. 16 root root 4096 Jan 1 1970 ../
-rwsrwsrwt. 1 root 2000 1062992 Mai 24 20:18 busybox*
-rwsrwsrwt 1 root 2000 83 Mai 24 00:17 remount.sh* (self written script to remount /system in rw mode...did not work)
-rwsrwsrwt 1 root 2000 91980 Mai 24 20:18 su*
/system/xbin
drwxrwxrwx. 2 root 2000 4096 Mai 23 23:28 ./
drwxr-xr-x. 16 root root 4096 Jan 1 1970 ../
-rwsr-sr-x 1 root root 1062992 Mai 23 22:07 busybox*
-rwxr-xr-x 1 root root 104800 Mai 23 23:28 daemonsu*
-rwxr-xr-x. 1 root 2000 59748 Sep 30 2014 dexdump*
-rwxr-xr-x. 1 root 2000 9620 Sep 30 2014 io*
-rwsr-sr-x 1 root root 104800 Mai 23 23:27 su*
Do I have to do something else to get root access?
Thanks
Chrno219

[Android 8.1 (API level 27) / Qualcomm] partitions layout, fstab, fdisk

Hello everyone!
I'd like to better understand my smartphone's Partitions Layout...
At the moment I'm inside TWRP and I managed to enter into Shell as root:
Code:
\platform-tools>adb.exe shell
~ #
So... I'm gathering these infos:
~ # fdisk /dev/block/mmcblk0
Code:
Found valid GPT with protective MBR; using GPT
Command (m for help): p
Disk /dev/block/mmcblk0: 30535680 sectors, 2622M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 52 entries
First usable sector is 34, last usable sector is 30535646
Number Start (sector) End (sector) Size Code Name
1 131072 303103 84.0M 0700 modem
2 393216 393217 1024 0700 fsc
3 393218 393233 8192 0700 ssd
4 393234 394257 512K 0700 sbl1
5 394258 395281 512K 0700 sbl1bak
6 395282 396305 512K 0700 rpm
7 396306 397329 512K 0700 rpmbak
8 397330 401425 2048K 0700 tz
9 401426 405521 2048K 0700 tzbak
10 405522 406033 256K 0700 devcfg
11 406034 406545 256K 0700 devcfgbak
12 406546 439313 16.0M 0700 dsp
13 439314 442385 1536K 0700 modemst1
14 442386 445457 1536K 0700 modemst2
15 524288 524351 32768 0700 DDR
16 524352 527423 1536K 0700 fsg
17 527424 527455 16384 0700 sec
18 655360 677887 11.0M 0700 splash
19 786432 788479 1024K 0700 aboot
20 788480 790527 1024K 0700 abootbak
21 790528 921599 64.0M 0700 boot
22 921600 1052671 64.0M 0700 recovery
23 1052672 1054719 1024K 0700 devinfo
24 1054720 7346175 3072M 0700 system
25 7471104 7995391 256M 0700 cache
26 7995392 8060927 32.0M 0700 persist
27 8060928 8062975 1024K 0700 misc
28 8062976 8063999 512K 0700 keystore
29 8064000 8064063 32768 0700 config
30 8064064 8588351 256M 0700 oem
31 8650752 8650815 32768 0700 limits
32 8781824 8782847 512K 0700 mota
33 8782848 8784895 1024K 0700 dip
34 8784896 8850431 32.0M 0700 mdtp
35 8850432 8851455 512K 0700 syscfg
36 8851456 8859647 4096K 0700 mcfg
37 8912896 8913151 128K 0700 lksecapp
38 8913152 8913407 128K 0700 lksecappbak
39 8913408 8913919 256K 0700 cmnlib
40 8913920 8914431 256K 0700 cmnlibbak
41 8914432 8914943 256K 0700 cmnlib64
42 8914944 8915455 256K 0700 cmnlib64bak
43 8915456 8915967 256K 0700 keymaster
44 8915968 8916479 256K 0700 keymasterbak
45 9043968 9044479 256K 0700 apdp
46 9044480 9044991 256K 0700 msadp
47 9044992 9045007 8192 0700 dpo
48 9045008 9176079 64.0M 0700 logdump
49 9176080 30535646 10.1G 0700 userdata
~ # mount
Code:
rootfs on / type rootfs (rw,seclabel,size=853376k,nr_inodes=134849)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=936796k,nr_inodes=138672,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=936796k,nr_inodes=138672)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/block/mmcblk0p25 on /cache type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk1p1 on /external_sd type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/block/mmcblk0p24 on /system type ext4 (rw,seclabel,relatime,data=ordered)
~ # ls -lh /dev/block/platform/soc/7824900.sdhci/ | sort -g
Code:
drwxr-xr-x 2 root root 1020 Feb 17 19:54 by-name
drwxr-xr-x 2 root root 1020 Feb 17 19:54 by-num
lrwxrwxrwx 1 root root 18 Feb 17 19:54 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 Feb 17 19:54 mmcblk0p9 -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p12 -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p13 -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p14 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p15 -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p16 -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p17 -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p18 -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p19 -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p20 -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p21 -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p22 -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p23 -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p24 -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p25 -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p26 -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p27 -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p28 -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p29 -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p30 -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p31 -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p32 -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p33 -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p34 -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p35 -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p36 -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p37 -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p38 -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p39 -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p40 -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p41 -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p42 -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p43 -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p44 -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p45 -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p46 -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p47 -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p48 -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mmcblk0p49 -> /dev/block/mmcblk0p49
lrwxrwxrwx 1 root root 22 Feb 17 19:54 mmcblk0rpmb -> /dev/block/mmcblk0rpmb
~ # ls -lh /dev/block/platform/soc/7824900.sdhci/by-name | sort -f -k6
Code:
lrwxrwxrwx 1 root root 21 Feb 17 19:54 aboot -> /dev/block/mmcblk0p19
lrwxrwxrwx 1 root root 21 Feb 17 19:54 abootbak -> /dev/block/mmcblk0p20
lrwxrwxrwx 1 root root 21 Feb 17 19:54 apdp -> /dev/block/mmcblk0p45
lrwxrwxrwx 1 root root 21 Feb 17 19:54 boot -> /dev/block/mmcblk0p21
lrwxrwxrwx 1 root root 21 Feb 17 19:54 cache -> /dev/block/mmcblk0p25
lrwxrwxrwx 1 root root 21 Feb 17 19:54 cmnlib -> /dev/block/mmcblk0p39
lrwxrwxrwx 1 root root 21 Feb 17 19:54 cmnlib64 -> /dev/block/mmcblk0p41
lrwxrwxrwx 1 root root 21 Feb 17 19:54 cmnlib64bak -> /dev/block/mmcblk0p42
lrwxrwxrwx 1 root root 21 Feb 17 19:54 cmnlibbak -> /dev/block/mmcblk0p40
lrwxrwxrwx 1 root root 21 Feb 17 19:54 config -> /dev/block/mmcblk0p29
lrwxrwxrwx 1 root root 21 Feb 17 19:54 DDR -> /dev/block/mmcblk0p15
lrwxrwxrwx 1 root root 21 Feb 17 19:54 devcfg -> /dev/block/mmcblk0p10
lrwxrwxrwx 1 root root 21 Feb 17 19:54 devcfgbak -> /dev/block/mmcblk0p11
lrwxrwxrwx 1 root root 21 Feb 17 19:54 devinfo -> /dev/block/mmcblk0p23
lrwxrwxrwx 1 root root 21 Feb 17 19:54 dip -> /dev/block/mmcblk0p33
lrwxrwxrwx 1 root root 21 Feb 17 19:54 dpo -> /dev/block/mmcblk0p47
lrwxrwxrwx 1 root root 21 Feb 17 19:54 dsp -> /dev/block/mmcblk0p12
lrwxrwxrwx 1 root root 20 Feb 17 19:54 fsc -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 21 Feb 17 19:54 fsg -> /dev/block/mmcblk0p16
lrwxrwxrwx 1 root root 21 Feb 17 19:54 keymaster -> /dev/block/mmcblk0p43
lrwxrwxrwx 1 root root 21 Feb 17 19:54 keymasterbak -> /dev/block/mmcblk0p44
lrwxrwxrwx 1 root root 21 Feb 17 19:54 keystore -> /dev/block/mmcblk0p28
lrwxrwxrwx 1 root root 21 Feb 17 19:54 limits -> /dev/block/mmcblk0p31
lrwxrwxrwx 1 root root 21 Feb 17 19:54 lksecapp -> /dev/block/mmcblk0p37
lrwxrwxrwx 1 root root 21 Feb 17 19:54 lksecappbak -> /dev/block/mmcblk0p38
lrwxrwxrwx 1 root root 21 Feb 17 19:54 logdump -> /dev/block/mmcblk0p48
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mcfg -> /dev/block/mmcblk0p36
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mdtp -> /dev/block/mmcblk0p34
lrwxrwxrwx 1 root root 21 Feb 17 19:54 misc -> /dev/block/mmcblk0p27
lrwxrwxrwx 1 root root 20 Feb 17 19:54 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 21 Feb 17 19:54 modemst1 -> /dev/block/mmcblk0p13
lrwxrwxrwx 1 root root 21 Feb 17 19:54 modemst2 -> /dev/block/mmcblk0p14
lrwxrwxrwx 1 root root 21 Feb 17 19:54 mota -> /dev/block/mmcblk0p32
lrwxrwxrwx 1 root root 21 Feb 17 19:54 msadp -> /dev/block/mmcblk0p46
lrwxrwxrwx 1 root root 21 Feb 17 19:54 oem -> /dev/block/mmcblk0p30
lrwxrwxrwx 1 root root 21 Feb 17 19:54 persist -> /dev/block/mmcblk0p26
lrwxrwxrwx 1 root root 21 Feb 17 19:54 recovery -> /dev/block/mmcblk0p22
lrwxrwxrwx 1 root root 20 Feb 17 19:54 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 Feb 17 19:54 rpmbak -> /dev/block/mmcblk0p7
lrwxrwxrwx 1 root root 20 Feb 17 19:54 sbl1 -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 Feb 17 19:54 sbl1bak -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 21 Feb 17 19:54 sec -> /dev/block/mmcblk0p17
lrwxrwxrwx 1 root root 21 Feb 17 19:54 splash -> /dev/block/mmcblk0p18
lrwxrwxrwx 1 root root 20 Feb 17 19:54 ssd -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 21 Feb 17 19:54 syscfg -> /dev/block/mmcblk0p35
lrwxrwxrwx 1 root root 21 Feb 17 19:54 system -> /dev/block/mmcblk0p24
lrwxrwxrwx 1 root root 20 Feb 17 19:54 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx 1 root root 20 Feb 17 19:54 tzbak -> /dev/block/mmcblk0p9
lrwxrwxrwx 1 root root 21 Feb 17 19:54 userdata -> /dev/block/mmcblk0p49
~ # find / -iname "*fstab*"
Code:
/cache/recovery/recovery.fstab
/cache/recovery/storage.fstab
/system/etc/vold.fstab
/system/vendor/etc/fstab.qcom
find: /sys/kernel/slab/L2TP/IPv6: No such file or directory
find: /sys/kernel/slab/L2TP/IP: No such file or directory
/etc/fstab
/etc/twrp.fstab
Contents of ~ # find / -iname "*fstab*"
Code:
/cache/recovery/recovery.fstab
### EMPTY FILE ###
\\\
/cache/recovery/storage.fstab
/data/media;Internal Storage;
/external_sd;External SD;
/usb-otg;USB OTG;
\\\
/system/etc/vold.fstab
# Copyright (c) 2013, The Linux Foundation. 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 The Linux Foundation 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/sdcard1 auto /devices/msm_sdcc.2/mmc_host
# MTP
#dev_mount sdcard2 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.3/mmc_host
\\\
/system/vendor/etc/fstab.qcom
# 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>
#/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait, verify
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,resize,forceencrypt=footer,quota
/devices/platform/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd,encryptable=footer
/devices/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd,encryptable=footer
/devices/platform/soc/78db000.usb/msm_hsusb_host* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
/devices/soc/78db000.usb/msm_hsusb_host* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
/dev/block/bootdevice/by-name/config /frp emmc defaults defaults
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1 wait
/dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait
\\\
/etc/fstab
/dev/block/mmcblk0p25 /cache ext4 rw 0 0
/dev/block/mmcblk0p24 /system ext4 rw 0 0
/dev/block/dm-0 /data ext4 rw 0 0
/dev/block/mmcblk1p1 /external_sd vfat rw 0 0
/usb-otg vfat rw 0 0
\\\
/etc/twrp.fstab
/cache ext4 /dev/block/bootdevice/by-name/cache
/system ext4 /dev/block/bootdevice/by-name/system
/system_image emmc /dev/block/bootdevice/by-name/system
/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=footer;length=-16384
/boot emmc /dev/block/bootdevice/by-name/boot
/recovery emmc /dev/block/bootdevice/by-name/recovery
/misc emmc /dev/block/bootdevice/by-name/misc
/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="External SD";storage;wipeingui;removable
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB OTG";storage;wipeingui;removable
And now... Questions time!
Which fstab should I trust? Why there are so many different ones?
Why my smartphone has the by-name/ directory inside this path: /dev/block/platform/soc/7824900.sdhci/ ?
In case I would use ddto backup or restore or reflash partitions, can i use dd within ADB Shell while I'm into Recovery (TWRP)?
Will dd be capable of reflashing .bin and .img and .mbn partitions even if I am OEM locked-out from Fastboot?
Why I cannot mount /datawhile inside TWRP?
Code:
~ # mount -o noatime,nosuid,nodev,barrier=1,noauto_da_alloc,discard,wait,resize,forceencrypt=footer,quota /dev/block/bootdevice/by-name/userdata /data \\\ mount: mounting /dev/block/bootdevice/by-name/userdata on /data failed: Device or resource busy
Many thanks guys!!
1. vold fstab is for external storage managed by StorageManagerService in android mode.
vendor/etc fstab is fstab for emmc storage provided by vendor. other fstabs are generated by and only used by TWRP.
2. android partitions are always referenced by it's symlinks generated from kernel. for example on A/B devices the /dev/block/bootdevice/by-name/system is linked to either /dev/block/bootdevice/by-name/system_a or /dev/block/bootdevice/by-name/system_b depending on active slot. in android mode you will see /dev/block/dm-0 instead as the partition is protected by dm-verity.
3. we don't care about real block partition, you can just dd its symlink. (Note, it requires exFAT MicroSD Card, FAT32 has 4 GB file size limit.) it's even more comfortable to just adb pull partition btw.
4. /data is already mounted in TWRP (Device or resource busy) except for failed decrypts (check /tmp/recovery.log)
if /dev/block/bootdevice/by-name/userdata is decrypted successfully, a new (decrypted) block device /dev/block/dm-0 is created by dm-crypt and mounted to /data.
/proc/partitions is maintained in realtime by kernel.
aIecxs said:
4. /data is already mounted in TWRP (Device or resource busy) except for failed decrypts (check /tmp/recovery.log)
if /dev/block/bootdevice/by-name/userdata is decrypted successfully, a new (decrypted) block device /dev/block/dm-0 is created by dm-crypt and mounted to /data.
/proc/partitions is maintained in realtime by kernel.
Click to expand...
Click to collapse
Hey... I'm doing some testing... Here's the steps I've done so far:
wipe / reformat all partitions
entirely re-flash the whole Stock ROM
reboot
completed the Startup Wizard
set a PIN when requested (instead of a Password or a Pattern)
boot into Android
reboot
boot again into Android
reboot to Bootloader
Bash:
fastboot flash recovery twrp.img
reboot into Android
reboot into TWRP
[V] Never show this screen during boot again
Swipe to Allow Modifications
TWRP is NOT asking me the PIN to decrypt /data
/data is NOT mounted, but with different error now (see logs down below)
every time I boot into TWRP, it always keeps me asking Swipe to Allow Modifications!!!
recovery.log
Bash:
[...]
Data successfully decrypted, new block device: '/dev/block/dm-0'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Updating partition details...
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Unable to mount storage
/data | /dev/block/dm-0 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Is_Decrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/mmcblk0p49
Decrypted_Block_Device: /dev/block/dm-0
Crypto_Key_Location: footer
Length: -16384
Display_Name: data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65537
I:Unmounting main partitions...
Successfully decrypted with default password.
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Updating partition details...
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Unable to mount storage
I:Unmounting main partitions...
[...]
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Failed to mount '/data' (No such process)
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount /data/media during GUI startup.
[...]
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Copying file /cache/recovery/log to /cache/recovery/last_log
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
Unable to mount /data/media/TWRP/.twrps
I:Attempt to load settings from settings file...
I:InfoManager file '/data/media/TWRP/.twrps' not found.
I:Backup folder set to '/data/media/TWRP/BACKUPS/WF012646'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
I:TWFunc::Set_Brightness: Setting brightness control to 128
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
[...]
Failed to mount '/data' (No such process)
I:Actual block device: '/dev/block/dm-0', current file system: 'ext4'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
~ # dmesg
Bash:
[...]
[ 5.628850] SELinux: initialized (dev mmcblk0p25, type ext4), uses xattr
[ 5.658433] EXT4-fs (mmcblk0p49): VFS: Can't find ext4 filesystem
[ 5.658777] EXT4-fs (mmcblk0p49): VFS: Can't find ext4 filesystem
[ 5.667880] EXT4-fs (mmcblk0p49): VFS: Can't find ext4 filesystem
[ 5.668184] EXT4-fs (mmcblk0p49): VFS: Can't find ext4 filesystem
[...]
[ 8.417484] device-mapper: req-crypt: req_crypt_ctr: Mapping block_device /dev/block/mmcblk0p49 to dm-req-crypt ok!
[...]
[ 14.258270] EXT4-fs (dm-0): warning: maximal mount count reached, running e2fsck is recommended
[ 14.259729] EXT4-fs warning (device dm-0): ext4_enable_quotas:5282: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.
[ 14.259840] EXT4-fs (dm-0): mount failed
[ 14.261825] EXT4-fs (dm-0): warning: maximal mount count reached, running e2fsck is recommended
[ 14.263192] EXT4-fs warning (device dm-0): ext4_enable_quotas:5282: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.
[ 14.263286] EXT4-fs (dm-0): mount failed
[...]
[ 56.822575] EXT4-fs (dm-0): warning: maximal mount count reached, running e2fsck is recommended
[ 56.824051] EXT4-fs warning (device dm-0): ext4_enable_quotas:5282: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.
[ 56.824153] EXT4-fs (dm-0): mount failed
[ 56.826017] EXT4-fs (dm-0): warning: maximal mount count reached, running e2fsck is recommended
[ 56.827383] EXT4-fs warning (device dm-0): ext4_enable_quotas:5282: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.
[ 56.827477] EXT4-fs (dm-0): mount failed
[...]
~ # e2fsck /dev/block/dm-0
Bash:
e2fsck 1.42.9 (28-Dec-2013)
/dev/block/dm-0 has unsupported feature(s): quota
e2fsck: Get a newer version of e2fsck!
No such process is known issue with disk quota. try to mount dm-0 read-only with ro,noexec,noload,noatime flags.
(Unrelated) for changing default_password try this app (may be outdated)
Cryptfs Password - Apps on Google Play
Easily set a complex disk encryption password different from the lockscreen one
play.google.com
aIecxs said:
try to mount dm-0 read-only with ro,noexec,noload,noatime flags.
Click to expand...
Click to collapse
Code:
~ # mount -o ro,noexec,noload,noatime /dev/block/dm-0
~ # mount | grep dm-0
/dev/block/dm-0 on /data type ext4 (ro,seclabel,noexec,noatime,norecovery)
And what if I completely disable /data encryption? Is it a viable option?
Are there some infos on how to disable Android encrypting /data? Can Stock ROMs be patched to disable encryption?
disable avb/dm-verity to allow modification on /system.
in vendor/etc fstab replace forceencrypt= flag with encryptable= and format userdata partition.
there exist flashable zip for this
no-verity-opt-encrypt.zip
(recommended for FDE)
Disable_Dm-Verity_ForceEncrypt.zip
(can also remove disk quota, read instructions)

Categories

Resources