Ok,
I'm working on trying to port Clockwork Mod to my LG Optimus S and have it mostly working. Issue is, if I try to wipe or mount the SD:EXT partition I get an error saying that it can't find /dev/block/mmcblk0p2 but when I do a mount on my phone well running I get /dev/block/mmcblk0p2 /system/sd ext3. /dev/block/mmcblk0p1 is the fat32 partition on my micro sd card so logic says that /dev/block/mmcblk0p2 is the ext partition and that shows when running. I want to use Clockwork Mod as the beginning of porting CyanogenMod ROM to the Optimus S but I'm getting frustrated with where it is now
https://github.com/mik9
Here is you will find recovery and patches for ClockworkMod 3 for Optimus One.
mik_os said:
https://github.com/mik9
Here is you will find recovery and patches for ClockworkMod 3 for Optimus One.
Click to expand...
Click to collapse
Do you have the BoardConfig.mk somewhere in there?
yes, in android_device_lge_thunderg repo.
mik_os said:
yes, in android_device_lge_thunderg repo.
Click to expand...
Click to collapse
Then hopefully I can use your work to get SD:EXT mounting/wiping working on the Optimus S. That is if you have SD:EXT mounting/wiping working on the Optimus One.
Hmm, your BoardConfig.mk is a lot different than mine. I don't have a recovery.fstab in mine either. Could it be due to your using 3.x for ClockworkMod and I'm using 2.5.x?
Yeah, that didn't help
Sent from my LS670 using Tapatalk
Ok,
I'm now accepting donations so I can pickup an Optimus S w/ a bad ESN so I don't accidentally brick my daily phone. If you want to help, PM me.
Related
Today I finally updated my Nexus One to CM 7.1 RC1. Everything in the update went fine, phone booted up perfect.
But I'm having some serious issues getting Link2sd to work now. I first tried using a ext2 partition that was already on my sd card from before. Kept getting this error message from link2sd, no matter how many times I rebooted:
Mount script cannot be created.
mount: mounting /dev/block/vold/179:2 on /data/sdext2 failed: device or resource busy
Click to expand...
Click to collapse
I then wiped the ENTIRE SD card, which included destroying the ext2 partition. From my newly blank SD card, I created a 2nd partition using MiniTool Partition Wizard in an ext4 format. Uninstalled Link2SD, reinstalled, opened the app - and I have the exact same error message:
Mount script cannot be created.
mount: mounting /dev/block/vold/179:2 on /data/sdext2 failed: device or resource busy
Click to expand...
Click to collapse
What am I doing wrong here? I've also tried using a FAT32 partition, but using that I got a similar Mount Script cannot be created error except it was an I/O error - whatever that is.
Please, someone, anyone, tell me this can be fixed and it's not an issue with CM7.1RC1.
When you did the wipe did you do it full wipe (erase on)? If not then try that. Also try in an ext3 partition.
Dude Random21 said:
When you did the wipe did you do it full wipe (erase on)? If not then try that. Also try in an ext3 partition.
Click to expand...
Click to collapse
Thanks for the suggestions. Unfortunately I have tried both of those to no avail. I always do a full wipe when updating ROMs, so that's never really been the issue. Tried ext3 twice. Both times I got Mount-Script-Creation errors (device or resource busy).
Sorry my bad when I said full wipe I meant for the SD card because it's happened to me once I did a quick wipe and it still didn't work then I did a full wipe and it worked.
Dude Random21 said:
Sorry my bad when I said full wipe I meant for the SD card because it's happened to me once I did a quick wipe and it still didn't work then I did a full wipe and it worked.
Click to expand...
Click to collapse
What did you do a full wipe with? I'm guessing Amon Ra from your signature?
Actually no I did it from my computer with this http://www.sdcard.org/consumers/formatter_3/ just go into option and put "FULL (Erase)".
Alrighty I'll give it a shot and let ya know. Thanks.
EDIT: Tried...epic fail. Still the same error.
In that casse I'm kind of running out of ideas maybe link2sd isn't compatible with cm7.1-rc1 yet?? If I were you I would try DT, s2e or some other app2ext solution and see if one of those work (DT is usually the one that works the best).
ISSUE RESOLVED.
Sort of.
Did clean wipe of everything (except boot, of course) using Amon Ra.
Downgraded back to CM 7.0.3 (using Amon Ra)
Flashed DTAPPS
a2sd cachesdreset
a2sd install
Installed Link2SD
mount -o /data/sdext2
Set partition type in Link2sd to ext2 (which is very odd considering I know I partitioned a ext3 filesystem in Amon Ra...but whatever)
Reboot
Link2Sd works perfect
Now I gotta figure out how to make DTAPPS go away. I've heard it's counterproductive to have them both on there. We'll see.
Ok that's cool I'm glad you got it resolved and AFAIK it might cause problems but if it works for now why mess with it... Oh right cause it's fun
Dude Random21 said:
Ok that's cool I'm glad you got it resolved and AFAIK it might cause problems but if it works for now why mess with it... Oh right cause it's fun
Click to expand...
Click to collapse
Figured out a better workaround method. LINK
Will an ext4 partition do as well in this case?
SmallWalrus said:
Will an ext4 partition do as well in this case?
Click to expand...
Click to collapse
Good question, didn't try it. I used ext3. The original a2ext mod method designed by icecreamisdrugs was meant to be used with an ext3 filesystem, and that's the method that I borrowed for my workaround. I imagine as long as you're using a CM ROM it should work fine. But don't quote me on that.
Bling_Diggity said:
Figured out a better workaround method. LINK
Click to expand...
Click to collapse
Can work with Motorola Milestone? Thx... I read the other post that u linked here.
P.D.: ops, I use HO!NO cm7 Gingerbread for Milestone
Im trying to update to a newer nightly build ....
but want to preserve apps, contacts, sms, settings....everything
im using vorkKernel and ext4...
cant i do a strait update....
could i just update individual files?...
i tried titanium backup pro but came out with losts of bugs ....
please help
You can do a straight upgrade, however you will have to flash Vorkernel straight after (or other EXT4 kernel/converter) as CM7 is EXT3 and wont be able to read /data until you do.
how do i do that...
i use the kernel auto updater....
Flash from recovery.
use CWM recovery.. fully wipe cache/ user data/ and dalvik cache..
What? No need to wipe.
Rusty! said:
You can do a straight upgrade, however you will have to flash Vorkernel straight after (or other EXT4 kernel/converter) as CM7 is EXT3 and wont be able to read /data until you do.
Click to expand...
Click to collapse
Thats wierd. Mine is ext4, no problems. :\
Sent from my Optimus 2X using Tapatalk
Your /system won't be, CM reformats its to EXT3 on install. Run mount in the terminal and see what it says.
just now upgraded to 2.3.7 and its great...made the partition in advanced option..i didnt have any problems in doing that..
it all started when i tried to install a2sd...first i installed it from one of the links...
i was not able to install got the following error in recovery...
"it was necessary to remove it when upgrading to cwm 3.0 gb based recovery,please switch to edify scripting (updater-script and update binary) to create working update zip package.
Installation aborted"
installed it from other link...i was able to flash sucessfully in cwm..then i rebooted my phone.but again it didnt restart....now i dont know its working or not..take a look at the screenshots in zip file and tell me what has happened... ..i think its not workin..pleaseeeee...
Small_town_boy said:
just now upgraded to 2.3.7 and its great...made the partition in advanced option..i didnt have any problems in doing that..
it all started when i tried to install a2sd...first i installed it from one of the links...
i was not able to install got the following error in recovery...
"it was necessary to remove it when upgrading to cwm 3.0 gb based recovery,please switch to edify scripting (updater-script and update binary) to create working update zip package.
Installation aborted"
installed it from other link...i was able to flash sucessfully in cwm..then i rebooted my phone.but again it didnt restart....now i dont know its working or not..take a look at the screenshots in zip file and tell me what has happened... ..i think its not workin..pleaseeeee...
Click to expand...
Click to collapse
It didn't restarted again means there is some problem in installing. Please read this for more info and make sure you get the exact result as mentioned there.
Few things to keep in mind...
1. [format, optional but recommended] and mount sd-ext at boot
run mount | grep sd-ext command in terminal for it.
Make sure you get this result
/dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,barrier=1,nodelalloc,data=ordered)
If not format or repartition your sd-ext and try again.
2. mount /data and /system on CWM recovery
yagya said:
It didn't restarted again means there is some problem in installing. Please read this for more info and make sure you get the exact result as mentioned there.
Few things to keep in mind...
1. [format, optional but recommended] and mount sd-ext at boot
run mount | grep sd-ext command in terminal for it.
Make sure you get this result
/dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,barrier=1,nodelalloc,data=ordered)
If not format or repartition your sd-ext and try again.
2. mount /data and /system on CWM recovery
Click to expand...
Click to collapse
Small_town_boy said:
just now upgraded to 2.3.7 and its great...made the partition in advanced option..i didnt have any problems in doing that..
it all started when i tried to install a2sd...first i installed it from one of the links...
i was not able to install got the following error in recovery...
"it was necessary to remove it when upgrading to cwm 3.0 gb based recovery,please switch to edify scripting (updater-script and update binary) to create working update zip package.
Installation aborted"
installed it from other link...i was able to flash sucessfully in cwm..then i rebooted my phone.but again it didnt restart....now i dont know its working or not..take a look at the screenshots in zip file and tell me what has happened... ..i think its not workin..pleaseeeee...
Click to expand...
Click to collapse
Well you might not get the same like yagya did : /dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,barrier=1,nodelalloc,data=ordered) .
The ext3 for you could be a ext4 so don't be afraid or shocked if you get other filesystem
Ok..then I will format my extra partition and try it again..and the ext partition must be formatted in recovery right? Or any specific mthd i should follow to format it...?
Sent from my GT-S5570 using XDA App
Small_town_boy said:
Ok..then I will format my extra partition and try it again..and the ext partition must be formatted in recovery right? Or any specific mthd i should follow to format it...?
Sent from my GT-S5570 using XDA App
Click to expand...
Click to collapse
Yes, you can format it in recovery...
---------- Post added at 05:25 AM ---------- Previous post was at 05:23 AM ----------
Netas3k said:
Well you might not get the same like yagya did : /dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,barrier=1,nodelalloc,data=ordered) .
The ext3 for you could be a ext4 so don't be afraid or shocked if you get other filesystem
Click to expand...
Click to collapse
But, doesn't CWM recovery creates ext3 partition by default and it doesn't even provides the flexibility to change it to ext4.... unless you manually do it in other partition manger
yagya said:
Yes, you can format it in recovery...
---------- Post added at 05:25 AM ---------- Previous post was at 05:23 AM ----------
But, doesn't CWM recovery creates ext3 partition by default and it doesn't even provides the flexibility to change it to ext4.... unless you manually do it in other partition manger
Click to expand...
Click to collapse
u can convert the ext3 to ext4 frm terminal
su
a2sd convert-ext4
for more commands type
su
a2sd help
Then I am going to format my partition in cwm..again create it..mount system and data..install the scripts again...should I mount the ext while installing the scripts...?is that it....?
Sent from my GT-S5570 using XDA App
Small_town_boy said:
Then I am going to format my partition in cwm..again create it..mount system and data..install the scripts again...should I mount the ext while installing the scripts...?is that it....?
Sent from my GT-S5570 using XDA App
Click to expand...
Click to collapse
mounting at boot is important...
You can even mount it in Recovery..it won't do any harm
Small_town_boy said:
Then I am going to format my partition in cwm..again create it..mount system and data..install the scripts again...should I mount the ext while installing the scripts...?is that it....?
Sent from my GT-S5570 using XDA App
Click to expand...
Click to collapse
no need to mount sd-ext, only need to mount system and data when flashing dtapps2sd, and try a2sdgui to confirm the script is working or not.
Ya its working perfectly..don't no why it didn't restart....but when tried a2sd gui and moved the apps worked perfectly...thank you all for responding...
Sent from my GT-S5570 using XDA App
Small_town_boy said:
Ya its working perfectly..don't no why it didn't restart....but when tried a2sd gui and moved the apps worked perfectly...thank you all for responding...
Sent from my GT-S5570 using XDA App
Click to expand...
Click to collapse
It can auto install new apps to sd-ext, right ?
Tks
sohot said:
It can auto install new apps to sd-ext, right ?
Tks
Click to expand...
Click to collapse
android see its intalled in the phone memory, but technically it resides in your sd-ext.
Ya it can install the apps to sd ext automatically once you install the scripts...download dt a2sd gui from market and select dalvik cache on sd ext..that's it all your apps will be installed on the partition that you have created...
Sent from my GT-S5570 using XDA App
Sent from my GT-S5570 using XDA App
hey guys if you get following error..
"it was necessary to remove it when upgrading to cwm 3.0 gb based recovery,please switch to edify scripting (updater-script and update binary) to create working update zip package.
Installation aborted"...
i think the above error will appear if you are not using right version...
then try to download it from the following link..
http://api.viglink.com/api/click?fo...m/CJJ606UMY2&jsonp=vglnk_jsonp_13183165556861
it will work perfectly(for me it did)..
the new version cannot install in our mini
i got the same error like above
installed the beta04 version only FYI
If you are still having problem with Darktremor A2SD Script and are fed up use this alternative method to move app to sd-ext....
http://yagyagaire.blogspot.com/2011/10/s2e-way-of-moving-apps-to-sd-card-for.html
But, Darktremor A2SD is working fine for me..
CM7/Zeus v7alongside any rom with GB bootloader and CM7 alongside v28a
Hi!This is my"how to" for installing two roms on one OB.
1.We need to partition sdcard
partition #1 : format it to fat(will be used as sdcard)
partition #2 : format it to ext4(will be used as system of zeus and must be at least 320 MB)
partition #3 : format it to ext4(will be used as data of zeus and must be at least 400 MB)
2.Now if u want:
1.Zeus flash this
2.cm7 flash this
(DO NOT FORGET TO PUT YOUR INTERNAL ROM`S KERNEL TO /sdcard/boot/ and name it nandboot.img!)
3.cm7 alongside v28a flash first this, then flash v28a with SFT, then root your v28a and after that put files from this bin.zip to the /system/bin
3.Now if u want to boot:
1.Zeus type in the terminal
Code:
su
bootzeus
2.cm7 type in the terminal
Code:
su
bootcm7
3.v28c ICS
Code:
su
bootsd
4.your nand rom
Code:
su
bootnand
NOTE:If u change your nand rom first install your new rom and after that copy your new rom's boot.img and put it to /sdcard/boot.img and after that rename it to nandboot.img and after all this install this if your sdrom is cm7 and if Zeus this
Now partition table is:
Code:
Zeus/CM7/v28c ICS
system /dev/block/mmcblk1p2
data /dev/block/mmcblk1p3
CM10
system /dev/block/mmcblk0p8
data /dev/block/mmcblk0p9
YouTube
suleymanovemil8 said:
Hi!So is it possible to boot android from sdcard?I think changing root directory to mmcblk1 in the default kernel kommand line could help, have anyone done smthing like this before?
Click to expand...
Click to collapse
Even if it works you'll still be using the same kernel and ramdisk which will only work on ROM very similar to your base.
Sent from my LG-P970
look what i've found http://forum.xda-developers.com/showthread.php?t=1642185
suleymanovemil8 said:
look what i've found http://forum.xda-developers.com/showthread.php?t=1642185
Click to expand...
Click to collapse
I had a look. It looks promising. Its quite a cheap trick and should work on our phone.
I am on my phone now so I can't study what he did in detail and I'm not entirely sure how he handles kernel switching (yet).
It's a good find.
EDIT: Nothing to do with kernel root or command line though.
Sent from my LG-P970
xonar_ said:
I had a look. It looks promising. Its quite a cheap trick and should work on our phone.
I am on my phone now so I can't study what he did in detail and I'm not entirely sure how he handles kernel switching (yet).
It's a good find.
EDIT: Nothing to do with kernel root or command line though.
Sent from my LG-P970
Click to expand...
Click to collapse
I`ve made script for OB and it works
HTML:
cat /sdcard/boot/sdboot.img > /dev/block/mmcblk0p3
echo Rebooting to SD Rom. Please wait...
sleep 3
reboot
return 0
I have repacked zeus rom`s kernel with sd mounts and put the system partition to mmcblk1p1 but it looks like smthing goes wrong(if sdcard is inserted it reboots to recovery in a few seconds but if I remove sd card it stucks at lg logo) and it have created app, data, etc. folders on data (sd) partition
suleymanovemil8 said:
I`ve made script for OB and it works
HTML:
cat /sdcard/boot/sdboot.img > /dev/block/mmcblk0p3
echo Rebooting to SD Rom. Please wait...
sleep 3
reboot
return 0
I have repacked zeus rom`s kernel with sd mounts and put the system partition to mmcblk1p1 but it looks like smthing goes wrong(if sdcard is inserted it reboots to recovery in a few seconds but if I remove sd card it stucks at lg logo) and it have created app, data, etc. folders on data (sd) partition
Click to expand...
Click to collapse
Make so that it only mount the sd partitions if the sd card is present and is made to be bootable.
Reflashing the boot.img isn't a nice way of doing it since bad flash would result in a bootloop. Linux has the ability to reload a kernel without shutting down. I don't know if the kernel that we use can do that maybe it's worth looking into.
Sent from my LG-P970
xonar_ said:
Make so that it only mount the sd partitions if the sd card is present and is made to be bootable.
Reflashing the boot.img isn't a nice way of doing it since bad flash would result in a bootloop. Linux has the ability to reload a kernel without shutting down. I don't know if the kernel that we use can do that maybe it's worth looking into.
Sent from my LG-P970
Click to expand...
Click to collapse
as i said "and it have created app, data, etc. folders on data (sd) partition"
What if i will move /system #2 to /data partition and both of the systems will have data partition on sdcard?
PS. It worked!Now I have data partition on mmcblk1p2
here it is(this is kernel for cm10(26.10.2012))
suleymanovemil8 said:
What if i will move /system #2 to /data partition and both of the systems will have data partition on sdcard?
PS. It worked!Now I have data partition on mmcblk1p2
Click to expand...
Click to collapse
What are you going to do with the GB thats on the phone and not used?
EDIT: its rebooting to recovery because the kernel is set to reboot to recovery when it's 'panicking'.
Sent from my LG-P970
xonar_ said:
What are you going to do with the GB thats on the phone and not used?
Sent from my LG-P970
Click to expand...
Click to collapse
no this kernel boots with normal system and data at sdcard and now i will make kernel with booting from data directory and with data at sdcard)
YES! I have now two roms on one phone!
suleymanovemil8 said:
YES! I have now two roms on one phone!
Click to expand...
Click to collapse
Do a walkthrough for us! :laugh::laugh:
genarinho said:
Do a walkthrough for us! :laugh::laugh:
Click to expand...
Click to collapse
Yes ,pls
sent from my Nokia 1100 with droid 4.0
Just everyone thats reading this know that it still booting from phone and then reading data from sd. (Not true dualboot yet )
@ sulley
Why not use recovery as the phone boot.img and then normal boot then goes of two sd. CWM sources are available and can be modified so that it works as a boot manager. It will then be actual dual boot because from there you can load kernel from either sd or phone (and unload the recovery kernel and with its dying breath start the new kernel ).A project like this will take A LOT of time and will definitely be more than 6 months. Since it would be based on recovery it should be able to make it work for all phones that can use CWM and have similar boot structure. I will help out on a project like this but I can't be that involved with it since my studies will take up most of my time.
As much I understand, bootloader is needed for dualboot and it applies same on Android. So you got access to our bootloader or just directing the boot.img from 1st ROM to 2nd one? Like handshaking?
xonar_ said:
Just everyone thats reading this know that it still booting from phone and then reading data from sd. (Not true dualboot yet )
@ sulley
Why not use recovery as the phone boot.img and then normal boot then goes of two sd. CWM sources are available and can be modified so that it works as a boot manager. It will then be actual dual boot because from there you can load kernel from either sd or phone (and unload the recovery kernel and with its dying breath start the new kernel ).A project like this will take A LOT of time and will definitely be more than 6 months. Since it would be based on recovery it should be able to make it work for all phones that can use CWM and have similar boot structure. I will help out on a project like this but I can't be that involved with it since my studies will take up most of my time.
Click to expand...
Click to collapse
Well I have installed rom's kernel to the recovery partition but after booting to this new kernel i couldn't boot back tonormal kernel till i reflashed recovery from rom manager
ps.recovery partition is at mmcblk0p4 and boot mcblk0p3
genarinho said:
Do a walkthrough for us! :laugh::laugh:
Click to expand...
Click to collapse
tada!
As I expected, not real dualboot. But very much appreciting try. Keep it up
Anyway i still want to make one rom at nand and anouther on sdcard, but if i set in kernel system directory to mmcblk1p1(sdcard) it starts to boot but smthing goes wrong but it starts to boot and i know it because it creates app, data, app-private etc. folders on data partition of sdcard(mmcblk1p2), i think this is because it remounts sdcard or smthing like this.Any ideas about soving this problem?
I use the 3.2 HC method to root my P7320 with ICS4.04 (Hong Kong version), after flash the CWM recovery into the tab I boot into the recovery mode and choose to install the zip file from SDcard, but it said( E: Can't mount /sdcard/ ). I have already copy the superuser.zip into the sdcard's root directory but cannot find it to install, any idea if I have done something wrong?
Many thanks!
Wrong section, anyways try reflashing the recovery, or remount sdcard.
Sent from my Xperia'ed One X+
panpjp said:
Wrong section, anyways try reflashing the recovery, or remount sdcard.
Sent from my Xperia'ed One X+
Click to expand...
Click to collapse
I have flash for several times but still same. The option on the recovery is mount /efs, mount /data, mount /system but it shows error mounting /data, others seems no change. The CWM recovery v5.5.0.4
Jimmywwk said:
I have flash for several times but still same. The option on the recovery is mount /efs, mount /data, mount /system but it shows error mounting /data, others seems no change. The CWM recovery v5.5.0.4
Click to expand...
Click to collapse
For my know, ROOT P7320 LTE is use odin, and not install by CWM.
U can see by this thread:
http://forum.xda-developers.com/showthread.php?t=1401100
Problem Fixed, Thanks All!
Jimmywwk said:
Problem Fixed, Thanks All!
Click to expand...
Click to collapse
How did you fix it?
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
How did you fix it? I want to know it too. I get P7320 E: Can't mount /sdcard/
for my galaxy i957 i used http://forum.xda-developers.com/showthread.php?t=1287205 that on honeycomb but im going to try it again on my ice cream version