Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
viperbjk
Old
(Last edited by viperbjk; 29th May 2012 at 05:22 PM.)
#1  
viperbjk's Avatar
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
Default 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 ?
 
AndroidUser99
Old
#2  
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
 
galaxy mini
Old
#3  
galaxy mini's Avatar
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!!
 
viperbjk
Old
#4  
viperbjk's Avatar
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.
 
kurotsugi
Old
#5  
kurotsugi's Avatar
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...
 
spawk
Old
#6  
spawk's Avatar
Senior Member
Thanks Meter 956
Posts: 1,620
Join Date: Jul 2011
Location: Dz ʄØᴦ ԐvԐЯ

 
DONATE TO ME
Quote:
Originally Posted by viperbjk View Post
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]
 
yagya
Old
#7  
yagya's Avatar
Senior Member
Thanks Meter 427
Posts: 833
Join Date: Aug 2011
Location: Chitwan

 
DONATE TO ME
Quote:
Originally Posted by viperbjk View Post
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!
Find me on : Facebook | Twitter | My Blogs : Handy Information | Android Solutions

Know more information on various topics such as rooting, flashing, upgrading, overclocking your :

1. Samsung Galaxy Pop/Mini GT-S5570
2. Samsung Galaxy Ace GT-S5830


Press THANKS button for useful or helpful posts.

 
ahmadsafar
Old
#8  
Senior Member
Thanks Meter 370
Posts: 103
Join Date: Dec 2011
Location: Handil, Kalimantan Timur
try it
Code:
mount("rfs", "/dev/block/stl11", "/data");
 
viperbjk
Old
#9  
viperbjk's Avatar
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
Quote:
Originally Posted by ahmadsafar View Post
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

;(
 
viperbjk
Old
#10  
viperbjk's Avatar
Recognized Developer - OP
Thanks Meter 41
Posts: 387
Join Date: Nov 2007
Location: Hamburg
Quote:
Originally Posted by kurotsugi View Post
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 ....

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more

More Tips to Help Promote Your Android App

With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more

Sony Continues AOSP Initiative on the Tablet Z

Sometimes, you can harp on a subject so much that you end upbeating a dead horse. In our eyes, … more