Recovery / Edify / Data Mount Issue - Samsung Galaxy Mini
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 ?
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
Wrong section bro!! This is for dev only, post such things in general!!
Sent from my GT-S5570 using xda premium
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.
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...
viperbjk said:
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 ?
Click to expand...
Click to collapse
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]
viperbjk said:
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 ?
Click to expand...
Click to collapse
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/showthread.php?tid=12
Good luck!
try it
Code:
mount("rfs", "/dev/block/stl11", "/data");
ahmadsafar said:
try it
Code:
mount("rfs", "/dev/block/stl11", "/data");
Click to expand...
Click to collapse
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
;(
kurotsugi said:
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...
Click to expand...
Click to collapse
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 ....
yagya said:
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/showthread.php?tid=12
Good luck!
Click to expand...
Click to collapse
Yeah, I basically just try to mount /data to access files. Sorry for the typo, it's updater-script of course.
When I just try to use
run_program("/system/xbin/busybox", "mount", "/data");
it isn't accepted because of
"mount: can't read '/etc/fstab': No such file or directory"
Ok, guys ... found the solution ...
mount("rfs", "EMMC", "/dev/stl11", "/data");
is working, but only using old updater-binary. Seems the AOSP
one doesn't work ... no idea why.
Many thanks for helping me out !
there's a possibility that the AOSP one doesn't compatible with the recovery.
viperbjk said:
Yeah, I basically just try to mount /data to access files. Sorry for the typo, it's updater-script of course.
When I just try to use
run_program("/system/xbin/busybox", "mount", "/data");
it isn't accepted because of
"mount: can't read '/etc/fstab': No such file or directory"
Click to expand...
Click to collapse
Well, it's probably because you don't have busybox installed. Are you sure you are rooted and have latest busybox version installed on your system?
Also, which rom do you have now?
I'm using stock rom, and yes, busybox and root is also done in recovery.
The GT-5570i hasn't got a fstab file, so that's fine.
Everything is working fine now, it was obviously that the samsung update-bin didn't work with mobiles with broadcom chipset.
try this, it's working
http://forum.xda-developers.com/showthread.php?p=27018781
meccaandroid said:
try this, it's working
http://forum.xda-developers.com/showthread.php?p=27018781
Click to expand...
Click to collapse
No. This has to do with the binary n not amend.
The issue has been resolved, so rip thread.
Related
Missing files on sd card
hey guys, when i try and update my recovery through terminal emulator I get an error after the line "mount -a" i get: mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or directory mount: mounting /system/modules/modules.sqf on /system/modules failed: No such file or directory mount: mounting /system/xbin/xbin.sqf on /system/xbin failed: No such file or directory What is wrong here? it seems as if my sd card is missing files?! Can someone give me the files i am missing or would an sd card reformat fix it?
asb123 said: hey guys, when i try and update my recovery through terminal emulator I get an error after the link "mount -a" i get: mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or directory mount: mounting /system/modules/modules.sqf on /system/modules failed: No such file or directory mount: mounting /system/xbin/xbin.sqf on /system/xbin failed: No such file or directory What is wrong here? it seems as if my sd card is missing files?! Can someone give me the files i am missing or would an sd card reformat fix it? Click to expand... Click to collapse The first error means you don't have an ext2/3/4 partition and you should be fine The second and third are common errors and don't really mean anything Just continue flashing the recovery
alright cool, i have now got the new amon recovery!
[Q]: Read-only filesystem
Hi! I have rooted my phone (LG Optimus 2X) and mistakenly deleted some files. I have these files, and want to push them back using adb, put my problem is, that when i try to mount the system in read / write mode using "adb remount" i get this error: "remount faileded: Operation not permitted". I can't figure out how to fix it, i can pull files etc. I have also tried to use the adb shell, and copy the files from the internal sdcard, but i'm getting the same error. Only read-mode.. :/ Anybody who can help, fixing this problem?
If you want to mount /system just write: mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system Then you're good to go
How to unmount into read-mode only? Thank! - You saved my day
mrhtml said: How to unmount into read-mode only? Thank! - You saved my day Click to expand... Click to collapse A little easier to type... Mount r/w Code: busybox mount -o,remount -rw /system Mount r/only Code: busybox mount -o,remount -r /system Edit: You shouldn't post stuff like this in dev
[High experimental] CM10 for new ICS Bootloader and Layout
Hello in the CallBug Thread wrote any User can be flash CM10 on the new Layout. I replaced any in the updater-script in META-INF... to its work you need - Topogigis LGP990-ICS28G_TG or a another ICS with new unlocked Bootloader and new Layout and CWM 6 No i worked hard and first Tests says it can works. I tested it with the Kernel from Topogigi_SP2_ICS28G_20121126... I see the Bootscreen. Next step i test it with the Kernel form CallBugThread... I see only the LG Logo. Next i test it with the boot.img from LGP990_ICS_v28G_Stock_NewBL_Root_CWM_initd_NVFlash in the Moment i dont see the Starts Wizard Now i must first do following: In CWM go to mount and storage and format: system, data, cache manually wipe Data/Cache (factory-reset) is not enough a success boot to start wizard works only when any can make a Kernel. In the Moment, all available Kernel is not enough in the Attachment the Updaterscript pengus77 have made a step by step guide for work CM10 with the new Bootloader and Layout pengus77 said: So... here comes the step-by-step sum up guide to boot cm10 on the new bootloader ! 1) Edit BoardConfig.mk in device/lge_p990/lge_p990 and replace Code: BOARD_SYSTEMIMAGE_PARTITION_SIZE := 665681920 BOARD_USERDATAIMAGE_PARTITION_SIZE := 1170259968 with Code: BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 BOARD_USERDATAIMAGE_PARTITION_SIZE := 1610612736 then add this line Code: TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true and replace this other one Code: BOARD_VOLD_MAX_PARTITIONS := 10 with Code: BOARD_VOLD_MAX_PARTITIONS := 20 2) Edit, in the same folder, the file init.p990.rc and fix it so that it looks like this Code: # mount partitions mount ext4 /dev/block/mmcblk0p12 /system wait mount ext4 /dev/block/mmcblk0p12 /system ro noatime remount barrier=1 wait # We chown/chmod /data again so because mount is run as root + defaults mount ext4 /dev/block/mmcblk0p9 /data nosuid nodev noatime barrier=1 wait chown system system /data chmod 0771 /data mount ext4 /dev/block/mmcblk0p2 /cache nosuid nodev noatime barrier=1 wait chown system cache /cache chmod 0770 /cache mount ext3 /dev/block/mmcblk0p7 /lgdrm nosuid nodev noatime 3) Edit, always there, the file vold.fstab Code: dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1 dev_mount emmc /storage/sdcard0 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0 4) Edit (yeah same folder, same folder) the file recovery.fstab (don't know for sure if it's needed but here we go...) Code: # mount point fstype device [device2] fstype2 /recovery emmc /dev/block/mmcblk0p8 /boot emmc /dev/block/mmcblk0p6 /cache ext4 /dev/block/mmcblk0p2 /data ext4 /dev/block/mmcblk0p9 /external_sd vfat /dev/block/mmcblk1p1 /sdcard vfat /dev/block/mmcblk0p11 /system ext4 /dev/block/mmcblk0p12 5) Go to kernel/lge/star/arch/arm/configs/cyanogenmod_p990_defconfig and replace this line Code: CONFIG_CM_BOOTLOADER_COMPAT=y with this Code: CONFIG_CM_BOOTLOADER_COMPAT=n 6) Edit kernel/lge/star/arch/arm/mach-tegra/lge/star/include/lge/board-star-nv.h and replace Code: #define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p3" with Code: #define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p5" 7) In device/lge/star-common/init.cm-star.rc modify this (at about line 120) Code: chmod 777 /dev/block/mmcblk0p3 chmod 644 /dev/block/mmcblk0p5 into this Code: chmod 777 /dev/block/mmcblk0p5 chmod 644 /dev/block/mmcblk0p6 8) Replace vendor/lge/p990/proprietary/lib/liblgeril.so with the one attached or edit it with a hex editor and change mmcblk0p3 with mmcblk0p5 9) Fix reboot-to-recovery by editing the file device/lge/star-common/prebuilt/setup-recovery and change it to this Code: #!/system/bin/sh echo "boot-recovery" | dd of=/dev/block/mmcblk0p5 seek=6144 bs=1 10) Time for a brunch ! Compile cm10 as usual, then in out/target/product/p990 grab system.img and boot.img and copy them to your nvflash folder... that of course you know how to use and already have installed I used the ICS nvflash pack from Stefan and from Topogigi. Leave the defaults as they are, replace system.img and boot.img and flash DO NOT FLASH THE INTERNAL SD CONTENTS OF THE ICS ROMS !!! 11) Fix the sdcard by enabling debug mode after the first boot, enter via adb and manually mount it with "mount -t ext3 /dev/block/mmcblk0p11 /storage/sdcard0". Then go in settings -> storage and format it from there. Hope this is everything... if i forgot something shout Update: The attached ics-partitions.cfg file for nvflash has the ext3 fs fix for the MSC partition... better safe than sorry Attachments: http://forum.xda-developers.com/attachment.php?attachmentid=1577239&d=1355958301 http://forum.xda-developers.com/attachment.php?attachmentid=1577265&d=1355958826 Click to expand... Click to collapse Orginalpost: http://forum.xda-developers.com/showpost.php?p=35661482&postcount=100 Big thanks to all User and Devs where help him and the specially Thanks go to pengus77 Important: Use it at own risk, when you brick your phone... dont blame me This is for CM10 based Builds: http://d-h.st/Nfe This is for CM10.1 based Builds: http://d-h.st/5VO
You need to edit the cm10 kernel itself to make it bootable with the new partition. Sent from my LG-P990 using xda app-developers app
I have no Linux to edit the kernel. And unfortunately I do not also the knowledge. I figured that you can get as basics to run it. I dealt with the feasibility
Need kernel dev to do this. This is the best way to prove if the layout partition is indeed has nothing to do with the call bug. Sent from RC's Official CM10
Okay will get you kernel img tomorrow with proper ICS ramdisk. You will need to put that kernel and modules in cm10 zip and also change updater script as necessary. Sent from my Nexus 4
Finished my build. Waiting to nvflash my phone to new partition and then test. *fingers crossed*
Imperticus said: Finished my build. Waiting to nvflash my phone to new partition and then test. *fingers crossed* Click to expand... Click to collapse so if it works, u will give a link, so other ppl can try it too? :fingers-crossed:
Using CM10 with the old and the new bootloader? There is no need to reinvent the wheel: just use wkpark's excellent patch on CM10 (kernel) source. http://forum.xda-developers.com/showpost.php?p=33993473&postcount=636
not working for me, dont have time to try fix it. guess i'll just wait for harsh.
Here is cwm flashable new CM10 with modified kernel for NEW BOOTLOADER. It is untested (I am using ICS on old boot loader), so booting up is not guaranteed. Those who dont know what they are doing, please stay away from this download. http://d-h.st/auX You will need NEW Bootloader, partition and recovery for new bootloader.
I am on ROM_OptiICS-v0.6_LGP990_CWM-v6_v28G-based_NVflash can i try this from CMW like full wipe + wipe cash then install from SD
komunistvb said: I am on ROM_OptiICS-v0.6_LGP990_CWM-v6_v28G-based_NVflash can i try this from CMW like full wipe + wipe cash then install from SD Click to expand... Click to collapse yes, but dont forget to backup first. This is highly experimental cm10. Let me know how it goes.
thank u i will try it!
Harsh said: Here is cwm flashable new CM10 with modified kernel for NEW BOOTLOADER. It is untested (I am using ICS on old boot loader), so booting up is not guaranteed. Those who dont know what they are doing, please stay away from this download. http://d-h.st/auX You will need NEW Bootloader, partition and recovery for new bootloader. Click to expand... Click to collapse I was having problem with the updater-script, it wasnt flashing properly. Guess i tried changing too much.
Imperticus said: I was having problem with the updater-script, it wasnt flashing properly. Guess i tried changing too much. Click to expand... Click to collapse Not to mess with updater script too much, just change system mmcblk0p1 to mmcblk0p12 and change for kernel from mmcblk0p5 to mmcblk0p6. thats all i did in script. and changed kernel with ramdisk for same. nothing more in system
Try to flash via CMW-based Recovery v6.0.1.5 and get this (Status 7) Error
So, first test: I can Flash it when i remove the first line (assert(getprop("ro.product.device") == "p990" || getprop("ro.build.product") == "p990") But dont boot yet. I dont see the Bootanimation, I test it with a another combination EDIT: @ Harsh, the Topogigi SP 2 Kernel are the best Basis i think, i can with this see the Bootanimation. Have a look in Topogigis Kernel and boot.img. With yours i see only the LG Logo
MetaIIica said: So, first test: I can Flash it when i remove the first line (assert(getprop("ro.product.device") == "p990" || getprop("ro.build.product") == "p990") But dont boot yet. I dont see the Bootanimation, I test it with a another combination EDIT: @ Harsh, the Topogigi SP 2 Kernel are the best Basis i think, i can with this see the Bootanimation. Have a look in Topogigis Kernel and boot.img. With yours i see only the LG Logo Click to expand... Click to collapse His kernel boot.img have ramdisk from ICS stock. This one has modified CM10 ramdisk. Will check if change of ramdisk matters or not.
Harsh said: Here is cwm flashable new CM10 with modified kernel for NEW BOOTLOADER. It is untested (I am using ICS on old boot loader), so booting up is not guaranteed. Those who dont know what they are doing, please stay away from this download. http://d-h.st/auX You will need NEW Bootloader, partition and recovery for new bootloader. Click to expand... Click to collapse Too much slow to download Sent from my LG-P990 using xda app-developers app
Edit: see my next post
HELP! SM-N9208 Failed to mount /Efs (invalid argument)
I deleted my efs folder and now it says error. I have tried other fixes from xda like this using twrp and adb Code: adb shell Code: mke2fs /dev/block/mmcblk0p3 Code: mount -w -t ext4 /dev/block/mmcblk0p3 Code: reboot but everytime i input the first line it says could not stat /dev/block/mmcblk0p3 --- No such file or directory. And when i try to flash stock firmware using odin whenever i finish flashing it is stuck on samsung logo. Anyone know how to solve this problem and fix? Thanks
dukesterology said: I deleted my efs folder and now it says error. I have tried other fixes from xda like this using twrp and adb Code: adb shell Code: mke2fs /dev/block/mmcblk0p3 Code: mount -w -t ext4 /dev/block/mmcblk0p3 Code: reboot but everytime i input the first line it says could not stat /dev/block/mmcblk0p3 --- No such file or directory. And when i try to flash stock firmware using odin whenever i finish flashing it is stuck on samsung logo. Anyone know how to solve this problem and fix? Thanks Click to expand... Click to collapse If you have taken a back up of your efs through twrp then you can restore it in twrp. Or Download latest firmware of your device & reflash it through Odin.
Data recovery, how to mount messed up /data - Internal SD - sda25 in Recovery/ADB
Hi: I've messed up my Note 9 pretty bad, such that no partitions mount in TWRP except cache - I'll need to do a data wipe, but I need to save data that I have in the Internal SD. I've discovered via fdisk in TWRP that the media part - the Internal SD is partition sda25 - however can t mount it in the terminal through a simple: mount /dev/block/sda25 /mnt I get an error: mount failed: Invalid argument I've tried: mount -t sdcardfs /dev/block/sda25 /mnt This gives me also an error: mount failed: Not a directory Mounting with -t vfat or exfat gives the Invalid argument error. Anyone can help me with how to mount it, so that I may copy data off of it manually? I don't want to lose it. Many thanks.
白い熊 said: Hi: I've messed up my Note 9 pretty bad, such that no partitions mount in TWRP except cache - I'll need to do a data wipe, but I need to save data that I have in the Internal SD. I've discovered via fdisk in TWRP that the media part - the Internal SD is partition sda25 - however can t mount it in the terminal through a simple: mount /dev/block/sda25 /mnt I get an error: mount failed: Invalid argument I've tried: mount -t sdcardfs /dev/block/sda25 /mnt This gives me also an error: mount failed: Not a directory Mounting with -t vfat or exfat gives the Invalid argument error. Anyone can help me with how to mount it, so that I may copy data off of it manually? I don't want to lose it. Many thanks. Click to expand... Click to collapse cant you simply wipe the affected partitions(except data of course)? then flash a rom? have you tried; mount /sys/block/sda25 /mydata or mount /dev/block/sda25 /mydata or adb mount -o rw /dev/block/sda25/data /mydata in both cases /mydata is just the mount point so I believe it can simply be called what ever you want including just /data have you read: https://android.stackexchange.com/q...data-partitions-in-recovery-mode-in-adb-shell edit: by any chance when you first flashed twrp, did you forget to format data? if yes then flash back stock AP file(original phone's firmware) in Odin AP slot only and you should be good to go.( you shouldn't loose any files in internal storage)