
28th May 2012, 06:02 PM
(Last edited by viperbjk; 29th May 2012 at 05:22 PM.)
|
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
|
Recovery / Edify / Data Mount Issue
Hi,
I'm trying to mount /data with GT-5570I using recovery / updater-script.
However, I'm stuck with an issue, I just don't know what's happening :
running the script :
Code:
run_program("/system/xbin/busybox","mount","-t rfs","/dev/stl11","/data");
the log in /cache/recovery/last_log says :
Code:
Mount : cannot mount /dev/stl11 on /data : no such device
however, if I start adbd using
Code:
run_program("/sbin/adbd")
right in recovery, and sending
Code:
# /system/xbin/busybox mount -t rfs /dev/stl11 /data
/data mounts fine.
Now the big question :
Why isn't it possible to mount /data using recovery script, but running adbd in recovery, I am able to mount /data in recovery ?
Any ideas ?
|

28th May 2012, 06:10 PM
|
Senior Member
Thanks Meter 15
Posts: 167
Join Date: Mar 2012
Location: Kuala Lumpur
|
wrong section dude
and u manually boot into recovery? i turn off my phone and i boot it myself and i cant mount/ anything.....but u must tryboot yr device to recovery at ur power menu(only some rom got this option,in my exp gb no this option)...and it will solve the cache log prob...its work for me
Sent from my GT-S5570 using XDA
|

28th May 2012, 06:26 PM
|
Senior Member
Thanks Meter 174
Posts: 562
Join Date: Dec 2011
|
Wrong section bro!! This is for dev only, post such things in general!!
Sent from my GT-S5570 using xda premium
Hit Thanx when I helped you!!
|

28th May 2012, 07:43 PM
|
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
|
It's nothing general, it's dev actually. I'm not talking about how to enter recovery, but about scripting and developing own recovery / custom recovery.
But thanks so far for your answers.
|

28th May 2012, 09:23 PM
|
Recognized Contributor
Thanks Meter 1568
Posts: 2,428
Join Date: Feb 2012
Location: yogyakarta
|
recovery already has mount command...try this one to mout your /data partition
Code:
mount("rfs", "EMMC", "/dev/block/stl11", "/data");
if you want to use run_program command, you can make a file contain
Code:
#!/system/bin/sh
mount -t rfs /dev/block/stl11 /data
put that file on your root folder of your zip file. to run the script you'll need to use these command on updater script
Code:
package_extract_file("<your filename>", "/tmp/<your filename>");
set_perm(0, 0, 0777, "/tmp/<your filename>");
run_program("/tmp/<your filename>");
the first method is easier...
all praise is due to Allah, The Ruler of universe
|

29th May 2012, 07:38 AM
|
Senior Member
Thanks Meter 956
Posts: 1,620
Join Date: Jul 2011
Location: Dz ʄØᴦ ԐvԐЯ
DONATE TO ME
|
Quote:
Originally Posted by viperbjk
Hi,
I'm trying to mount /data with GT-5570I using recovery / update-script.
However, I'm stuck with an issue, I just don't know what's happening :
running the script :
Code:
run_program("/system/xbin/busybox","mount","-t rfs","/dev/stl11","/data");
the log in /cache/recovery/last_log says :
Code:
Mount : cannot mount /dev/stl11 on /data : no such device
however, if I start adbd using
Code:
run_program("/sbin/adbd")
right in recovery, and sending
Code:
# /system/xbin/busybox mount -t rfs /dev/stl11 /data
/data mounts fine.
Now the big question :
Why isn't it possible to mount /data using recovery script, but running adbd in recovery, I am able to mount /data in recovery ?
Any ideas ?
|
Hello
you use what
update-script ?
if yesy is wrong for edify on edify is caled
updater-script and commande on it is diferant from amend script [ update-script]
|

29th May 2012, 08:10 AM
|
Senior Member
Thanks Meter 427
Posts: 833
Join Date: Aug 2011
Location: Chitwan
DONATE TO ME
|
Quote:
Originally Posted by viperbjk
Hi,
I'm trying to mount /data with GT-5570I using recovery / update-script.
However, I'm stuck with an issue, I just don't know what's happening :
running the script :
Code:
run_program("/system/xbin/busybox","mount","-t rfs","/dev/stl11","/data");
the log in /cache/recovery/last_log says :
Code:
Mount : cannot mount /dev/stl11 on /data : no such device
however, if I start adbd using
Code:
run_program("/sbin/adbd")
right in recovery, and sending
Code:
# /system/xbin/busybox mount -t rfs /dev/stl11 /data
/data mounts fine.
Now the big question :
Why isn't it possible to mount /data using recovery script, but running adbd in recovery, I am able to mount /data in recovery ?
Any ideas ?
|
If you are still using update-script then, I suggest you switch to updater-script and update-binary since, latest clockwork mod (v3 and above use these Edify scripting methods...).
I believe you are trying to mount data to copy files to or from /data/ partition on your device...
Here's a script to do so in recovery and I'm sure it's the exact thing you are looking for :
http://handyinformation.freevar.com/...ead.php?tid=12
Good luck!
|

29th May 2012, 09:57 AM
|
Senior Member
Thanks Meter 370
Posts: 103
Join Date: Dec 2011
Location: Handil, Kalimantan Timur
|
try it
Code:
mount("rfs", "/dev/block/stl11", "/data");
|

29th May 2012, 05:38 PM
|
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
|
Quote:
Originally Posted by ahmadsafar
try it
Code:
mount("rfs", "/dev/block/stl11", "/data");
|
This one is leading into "E:Error in /tmp/sideload/package.zip (Status 0)"
last_log says that :
MountFn, 53
MountFn : type is rfs
MountFn : rfs type
MountFn result is : /data
;(
|

29th May 2012, 05:41 PM
|
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
|
Quote:
Originally Posted by kurotsugi
recovery already has mount command...try this one to mout your /data partition
Code:
mount("rfs", "EMMC", "/dev/block/stl11", "/data");
if you want to use run_program command, you can make a file contain
Code:
#!/system/bin/sh
mount -t rfs /dev/block/stl11 /data
put that file on your root folder of your zip file. to run the script you'll need to use these command on updater script
Code:
package_extract_file("<your filename>", "/tmp/<your filename>");
set_perm(0, 0, 0777, "/tmp/<your filename>");
run_program("/tmp/<your filename>");
the first method is easier...
|
The first one doesn't work with my update-binary as it's the new AOSP one only taking 3 variables instead of four.
using mount("rfs", "/dev/block/stl11", "/data") or mount("emmc","/dev/block/stl11","/data") leads to "E:Error in /tmp/sideload/package.zip (Status 0)"
Using the second one, the sh method, this leads into the same error message, "No such device".
I'm guessing that the main problem might be some driver/init adbd does for mounting ....
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
Go to top of page...
|
|
|
|