System mount/unmount - Droid 2 General

My droid 2 is rooted and bootstrapped. I sbf'd to stock then updated to 2.3 then rerooted. No wipe no clear cache. Contacts ok, phone works fine. Just ran bootstrap again as I am getting ready for custom rom install. When I hit REBOOT RECOVERY and navigated around I noticed my system is apparently not mounted. It says mount system. Should I mount system now or leave it alone? I do not understand what exactly I am doing by mounting system. Please advise.
Sent from my DROID2 using Tapatalk

Mounting basically gives bootstrap the ability to change, delete, or alter anything in the system folder. This must be done to install custom roms.
Sent from my DROID2 using XDA App

I must mount system before I install zip from sd, or is this typically done after installation? I'm still reading and trying to take all this in and put it together into a cohesive process in my mind before I proceed. I've come this far w/o bricking(he knocks on wood).
Sent from my DROID2 using Tapatalk

it depends,
if the update zip is written correctly you don't need to mount system.
for example all Fission update-zips since 2.3 mount system themselves so you don't have to worry.
if you are unsure, you should always mount system.

Related

[Q] No room to put dalvik back.......

Im currently running s2e and i have no room to put dalvik back onto the internal memory. I wondering if i can just go into root explorer and go into /data/dalvik-cache/ and delete everything to clear dalvik? so like right before flashing a rom? I just want to see if this method works. I used to do a titanium back up, and then start deleting apps that were pretty large to make room for dalvik and that's a big pain in the booty. thanks guys.
tommyguns818 said:
Im currently running s2e and i have no room to put dalvik back onto the internal memory. I wondering if i can just go into root explorer and go into /data/dalvik-cache/ and delete everything to clear dalvik? so like right before flashing a rom? I just want to see if this method works. I used to do a titanium back up, and then start deleting apps that were pretty large to make room for dalvik and that's a big pain in the booty. thanks guys.
Click to expand...
Click to collapse
You can make an Ubuntu installation cd (I actually use an Ubuntu USB). You can actually run Ubuntu from a disc, no need to install. From there you can actually mount the ext as USB storage and add/delete things from it.
The Ubuntu website has Ubuntu for download for free and also provides instructions on making a bootable disc.
Sent from my cm7 Aria.
Ill have to check Ubuntu out. Especially if I can do it via USB. I was wondering If i weren't by a computer, is there a way like root explorer or a terminal command? Im usually never by a computer. Just seeing some more options.
sent from cm7 rc4 ladios, 6-7 kernel
tommyguns818 said:
Ill have to check Ubuntu out. Especially if I can do it via USB. I was wondering If i weren't by a computer, is there a way like root explorer or a terminal command? Im usually never by a computer. Just seeing some more options.
sent from cm7 rc4 ladios, 6-7 kernel
Click to expand...
Click to collapse
If you have a root access file manager such as Root Explorer you can delete the dalvik cache easy. In Root Explorer go to:
/sd-ext/dalvik-cache/
just select all and delete it power off the phone/boot into recovery. Im not sure if this will also clear the dalvik in /data/dalvik-cache, so you may want to check that as well. The sd-ext and /data/ are both able to be modified with the phone on. I personally use Root Explorer. Sure it costs, but its the best file manager around. I use to wipe the dalvik off the sd-ext, but never thought to wipe the /data/dalvik-cache. I usually just wipe sd-ext from RE, and then boot into recovery and wipe dalvik that way too just to be on the safe side. But I suppose its easier to just use R.E. to wipe it all
Just relized that my work is very strict on running programs off of CDs and usb. So ubuntu wont work for me. Thanks so much though. anybody else out there have a different way of clearing dalvik on ext3 without a computer or moving back onto internal memory?
sent from cm7 rc4 ladios, 6-7 kernel
tommyguns818 said:
Just relized that my work is very strict on running programs off of CDs and usb. So ubuntu wont work for me. Thanks so much though. anybody else out there have a different way of clearing dalvik on ext3 without a computer or moving back onto internal memory?
sent from cm7 rc4 ladios, 6-7 kernel
Click to expand...
Click to collapse
Read the post above yours
EDIT: You can use EStrongs File Explorer to do the same thing and its Free in the market. You have to go into settings and scroll all the way down to Root Options and select the two check boxes first. Then you will be able to access the sd-ext and /data/
Didn't see that post above. Oopps. I have RE. I will try this out. Thanks again.
sent from cm7 rc4 ladios, 6-7 kernel

New, here needs some explanation.

I've read over and over and need verification and reassuarance that I'm doing this properly. Trying to keep track of android devices get confusing at time. I'm not a total android noob, I've got my thunderbolt, the wife's fascinate, and a droid x, I've just bought the iconia and it's rooted, my confusion lies with, its magic and the Acer recovery installer. After rooting do you just flash cwm via the Acer recovery installer? Create a backup and flash a new rom? And treat it like any other device?what's the importance of having both cwm and the Acer stock image? Stock is for receiving ota updates correct?
What's different between its magic and the Acer recovery installer?
Sent from my A500 using XDA Premium App
ARI installs both the custom CWM and itsmagic on to your tablet once rooted. Flashing ROMs through CWM will automatically run itsmagic to calculate the new checksums, you don't need to worry about it.
ARI is just there to make installing itsmagic and CWM a lot simpler.
Thanks. How do you format external SD on this thing?
Sent from my A500 using XDA Premium App
ibsk8 said:
Thanks. How do you format external SD on this thing?
Sent from my A500 using XDA Premium App
Click to expand...
Click to collapse
Have yet to find an app that can do this - have never had the need, but if needed I would just use a microsd card reader, hook it to my PC, and format from there. Anyone else know of a utility for Droid that allows format of external SD card?
to OP:
I could not the format function in honeycomb either kinda odd.
Anyway, if you are trying to 'format' for first time use in your tab, upon inserting SD card the tab automatically creates the file structure it needs. Hope that helps.
Take the card out.I use a format utility by sandisk works with all removable media.think I gotfeom there website. But there are alot of format utilities out there just format in fat 32 seems to work best.for me anyway
Hope this helps
I was just going to pop in in my thunderbolt and format it, is this a problem?
Also when creating backups with cwm does it save backups to the internal memory? Or external_sdcard?
Drives me nuts that the internal memory is at /mnt/sdcard and its not an SD card.
Sent from my ADR6400L using XDA Premium App
ibsk8 said:
I was just going to pop in in my thunderbolt and format it, is this a problem?
Also when creating backups with cwm does it save backups to the internal memory? Or external_sdcard?
Drives me nuts that the internal memory is at /mnt/sdcard and its not an SD card.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
CWM saves to ext SD card!
Another Q, the tablet I have says android 3.0.1 ,what else do I need to know before flashing, do certain roms on work when on certain android versions?
On the phones you have to match roms to radios (but no radios here) are there firmware versions that need to be matched with the from or will flashing the rom bring you up to the current version.
I've learned the hard way so sorry for the noob questions, each device is a new method thanks.
Sent from my A500 using XDA Premium App
Check for update, newest update ota is 3.1
Sent from my SCH-I500 using XDA App
Hymizzle said:
Check for update, newest update ota is 3.1
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
What he said ^
update to 3.1 and then root with Iconiaroot 1.3
http://forum.xda-developers.com/showthread.php?t=1138228
That way you don't have to bother with the orientation lock, etc of gingerbreak.
Thanks. Downloading now.
More questions.
When retrieving an ota is it necessary to revert back to the stock recovery as well?
For example prior to retrieving
1. Restore stock backup via cwm
2. Restore stock recovery (is this necessary?)
3. Unroot via terminal or other method
4. Retrieve OTA
Then reroot and reflash cwm recovery and create a backup.
Sent from my A500 using XDA Premium App
ibsk8 said:
For example prior to retrieving
1. Restore stock backup via cwm
2. Restore stock recovery (is this necessary?)
3. Unroot via terminal or other method
4. Retrieve OTA
Click to expand...
Click to collapse
There shouldn't be the need for any of those steps, CWM doesn't care if you have rooted the tablet for example, and the OTA update just updates binaries on the system, it shouldn't be affected either.
if you install a stock rom, you have to re-flash cwm, root, kernel because it cleans everything, and i think that it is a good thing to happen.

switching to cm7#199.( ended up in cm7#203)

dudes i am planning to switch to #199 cm7.
the plans are...
1) fresh flash #199 with 2.6.32 buzz kernal.
2) dta2sd beta 3,jewz ram script, sd speed increase script(4068) .
3) custom mtd partition with 170mb system and 30 mb cache.
4) data and app to sd ext4.
5) 8gb class 4 sd partitioned to 1gb ext4, 32mb swap, rest with fat32 with a large allocation value.
6) lot of paid app of course.
i need your suggestions ....
thanks in advance.
Sent from my HTC Wildfire using XDA App
Do the mtd partition as you install 199, I got problems when a2sd was already installed, my mtd settings are 140 10, 10mb works fine for cache just make sure you have 06mountdl in your init.d folder otherwise you wont be able to download anything from the market above 10mb in size, if it isn't in the init.d folder you should find it in the cm zip.
Sent from my HTC Wildfire using xda premium
Scratch0805 said:
Do the mtd partition as you install 199, I got problems when a2sd was already installed, my mtd settings are 140 10, 10mb works fine for cache just make sure you have 06mountdl in your init.d folder otherwise you wont be able to download anything from the market above 10mb in size, if it isn't in the init.d folder you should find it in the cm zip.
Sent from my HTC Wildfire using xda premium
Click to expand...
Click to collapse
dude i haven't heared of init.d folder. pls explain. well i surely plan to give 25 mb cache. if so do i need to care about init.d folder?
" just make sure you have 06mountdl in your init.d folder" dude i realy dont understand this.
" if it isn't in the init.d folder you should find it in the cm zip." and this too i dnt understand.
so i am a newbee to custom mtd partition. hence i need help about this. how should i need to use the script? i plan to flash it soon after i reboot to #199. only after that i will install my apps.and also gapps. so do i need to take nandroid backup? as i have backups of my app using titanium backup. so i will install every thing later.
Sent from my HTC Wildfire using XDA App
Put the files needed on your sd card and write your settings in the txt file.
Run the first part of the mtd partition (wipe system/data/cache and install the first zip, bravo recovery or something like that, reboot your recovery from the advanced setting.
After doing the first step install your fresh copy of cm7 (instead of the nandroid backup) without wiping anything, then run the bravo boot zip and let it boot before installing anything else.
Files from the market, when first downloaded go to your /cache folder which if set to only 10mb would mean you can only download files below 10mb in size, the 06mountdl script deals with this by diverting the downloads elsewhere /data partition I think (not sure), the scripts are found in /system/etc/init.d after installing cyanogen if your cache size is small just check that folder (with root explorer) as a few times I have had to extract 06mountdl from the cm7 zip because it hasn't installed.
All that happens if 06mountdl isn't there is, when you go to the market you'll get an annoying message saying you don't have space left if the filesize of the app is larger than your cache.
Hope that made sense its 7am here.
Sent from my HTC Wildfire using xda premium
thanks for your help dude. i will check it out. also do i need to flash dta2sd b4 or after i install apps. i had done it b4 i install apps in my current rom#177. do you have any suggestions?
Sent from my HTC Wildfire using XDA App
Not entirely sure, I know some people say before but its never harmed me doing it after, you may aswell just run it straightaway though after your first reboot. Just in case.
I only use beta 3 as I had problems with beta 4, I don't think there's any noticeable changes between them tbh.
Sent from my HTC Wildfire using xda premium
k. i will check it. and will post my experience. thank you dude. see you soon.
Sent from my HTC Wildfire using XDA App
So i ended up in cm7#203. Stable. Fast, like it a lot.
The sad thing is i can't make custom mtd. Every time i ended in a non booting cm7 boot screen. Actually i had to flash froyo 2.2.1 ruu 2 times. Rooted, installed cwm. 2 times. Coz i had done like u said. Flashed custom mtd recovery with mtdpartmap.txt file containing 160 25. Then installed new rom with a reboot of recovery only.also flashed bravo boot. All as you said. Stuck in splash screen. So again tried to flash new rom and kernel from recovery. Still the same after flashing. So again ruu flash. Install custom cwm v5.xxx.partitioned SD. This time the SD got corrupted. So removed custom cwm and put original cwm using fastboot flash. Then partitioned with out errors. And installed cm7#203 from cwm, SD speed increase script,Jews ram script,2.6.35 kernal, latest radio, mediaprofile patch, gapps for 2.3.5 Andy. Rebooted after dalvic wipe. Itz running perfect. Installed s2e app . Moved app,private app, data, to ext.
I think that s2e is more efficient than dta2sd. It is faster, move almost every thing to ext. And internal memory consumption is quite low after app installations(when compared to dta2sd). Also booting and shut down are faster.
I will be watching for future errors. Thank you.
Sent from my HTC Wildfire using XDA App

Dual-boot app install via adb

I know how to install apps via adb, but am unaware how to install them to a particular image when there is more than one. For instance, if I'm dual-booting ics and gb from and sdcard, how can I control whether the install goes to ics, gb, or emmc?
frappatino said:
I know how to install apps via adb, but am unaware how to install them to a particular image when there is more than one. For instance, if I'm dual-booting ics and gb from and sdcard, how can I control whether the install goes to ics, gb, or emmc?
Click to expand...
Click to collapse
I think you are going to have to use the right partition numbers to mount. I know on emmc, /system is /dev/block/mmcblk0p5 and on regular single SD installs /system is .../mmcblk1p2. I also know usually the /system2 on a dual boot is ...mmcblk1p5.
I'm assuming you are wanting to install to /system since you can install to /data from within the system you are operating in without adb.
Edit: I can't remember if the /system is already mounted for you when you start adb. If it is, then boot to the system you want to install to and adb should see /system for the one you are on. It's been a while since I have installed anything with adb. I just use root explorer to put them in /system/app. Usually installing by adb is for systems that are not rooted.
frappatino said:
I know how to install apps via adb, but am unaware how to install them to a particular image when there is more than one. For instance, if I'm dual-booting ics and gb from and sdcard, how can I control whether the install goes to ics, gb, or emmc?
Click to expand...
Click to collapse
Just boot into which ever Rom you want to install to and "adb install" from there. It will install to the active system your running. Wont touch the other one.
-Racks
Sent from my NookColor using Tapatalk

[Help] Flashing zip files off sdcard

EDIT: Ok, I've located where my problem is. Basically what happens is when I install the Custom ROM it replaces my 2ndInit bootmenu and CWM and it 'upgrades' them. But because it has 'upgraded' them I can no longer mount sd card. I have to reinstall 2ndInit to 'downgrade' CWM and then I can flash again.
Hi there,
A few weeks back I flashed Paranoid Android onto my phone (latest release), however now I have discovered that in recovery mode, my phone can't read or mount the sdcard, i.e. I can't apply updates.
Code:
If I select 'Install zip from sdcard > Choose zip from sdcard' I get:
E:Can't mount /sdcard/
And if I try 'Mounts and storage > mount /sdcard' I get:
Error mounting /sdcard!
I would really appreciate any help on this issue.
Note it was working previously (which is how I installed the ParanoidAndroid ROM) but now my phone can't read the sdcard in recovery. IT CAN READ IT ONCE THE PHONE HAS BOOTED UP.
Try running a chkdsk scan from a Windows machine to check if there's corruption in the filesystem
Sent from my MB526 using xda premium
thekguy said:
Try running a chkdsk scan from a Windows machine to check if there's corruption in the filesystem
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
will do and will post the results, but before I do, would that show anything because the sdcard works fine once the phone has booted up?
Not sure myself, it just eliminates any filesystem corruption as the cause. Also try using another build like quarx to check for this problem
Sent from my MB526 using xda premium
thekguy said:
Not sure myself, it just eliminates any filesystem corruption as the cause. Also try using another build like quarx to check for this problem
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
But I can't flash using recovery, so how would I test Quarx's build? Haven't had time to boot up my windows partition, but I will eventually.
EDIT: Ran fsck on fedora partition (forgot about the command). It came up with this
Code:
fsck from util-linux 2.21.2
e2fsck 1.42.3 (14-May-2012)
fsck.ext2: Is a directory while trying to open /media/CDF2-6BE2
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I've backed up my SDCard and am going to run e2fsck command (will post results) otherwise I'm going to have to reformat it
EDIT 2: Came up with same error. Should I reformat it? As ext3/ext4? What should I do?
My memory card was standard fat32
And I'm no Linux expert but I think you're trying to check for a wrong filesystem, what is your current sdcard format(filesystem)
And I think you should reformat as fat32
Sent from my MB526 using xda premium
thekguy said:
My memory card was standard fat32
And I'm no Linux expert but I think you're trying to check for a wrong filesystem, what is your current sdcard format(filesystem)
And I think you should reformat as fat32
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
Code:
/dev/sdb vfat 7856128 1361952 6494176 18% /media/CDF2-6BE2
Now I've checked fsck again
Code:
fsck.vfat /media/CDF2-6BE2/
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Read 512 bytes at 0:Is a directory
Can you try with Windows? And format to fat32
Sent from my MB526 using xda premium
thekguy said:
Can you try with Windows? And format to fat32
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
will do
EDIT:
Code:
The type of the file system is RAW.
CHKDSK is not available for RAW drives.
OK, Am backing up now. Will reformat as fat32
Ok... So now I've formatted as fat32, tried again, flashed full sbf, re-rooted phone, installed 2nd-init, flashed Quarx's latest build (before wi-fi experimentation builds) and still I have the problem
Sorry for the triple post
I've located where my problem is. Basically what happens is when I install the Custom ROM it replaces my 2ndInit bootmenu and CWM and it 'upgrades' them. But because it has 'upgraded' them I can no longer mount sd card. I have to reinstall 2ndInit to 'downgrade' CWM and then I can flash again.
Any suggestions on how I might be able to fix this?
Probably there isn't any fix, but you could make zip containing the working recovery, and flash it after every rom flash
Sent from my MB526 using xda premium
thekguy said:
Probably there isn't any fix, but you could make zip containing the working recovery, and flash it after every rom flash
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
If you could show me how to do that, I would so extremely grateful
Aparently there was a similar problem with the Defy running the 'official' CM and the wiki documented a fix here: http://oldwiki.cyanogenmod.org/wiki/Motorola_Defy:_FAQ#SD_Card
Do you think that could possibly work for the Defy+?
EDIT: However if I make a .zip file, would that put my phone in bootloop though? Because whenever I reinstall 2ndInit (v2.3) and it 'downgrades' my CWM/Bootmenu it causes a bootloop where I have to reflash everything. If I make a .zip that I flash after each install would it cause the same problem because it's 'downgrading' from the Bootmenu/CWM of the JB CM10 ROM.
I would've made you one, but unfortunately my computer is not working. I think it should be enough if the boot menu folder is replaced by your working set by a flash after every install
Sent from my MB526 using xda premium
thekguy said:
I would've made you one, but unfortunately my computer is not working. I think it should be enough if the boot menu folder is replaced by your working set by a flash after every install
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
I really appreciate your help! I guess you could perhaps guide me in doing it, or I could wait till you've got a wroking computer.
So, computer just started working, and I made you a zip
Download the zip to your computer and extract the contents[META-INF and system) folders. Add your working bootmenu files inside the system/bootmenu folder you just extracted and delete the pre-existing text file there. Then add both META-INF and system to a zip(not rar!) and try flashing it. Make sure that the file consists of META-INF and system folders within itself. It should work
IF THERE'S A SIGNATURE VERIFICATION ERROR JUST TOGGLE SIGNATURE VERIFICATION WHICH IS PRESENT JUST BEFORE SELECTING THE ZIP FILE TO FLASH VIA RECOVERY
thekguy said:
So, computer just started working, and I made you a zip
Download the zip to your computer and extract the contents[META-INF and system) folders. Add your working bootmenu files inside the system/bootmenu folder you just extracted and delete the pre-existing text file there. Then add both META-INF and system to a zip(not rar!) and try flashing it. Make sure that the file consists of META-INF and system folders within itself. It should work
IF THERE'S A SIGNATURE VERIFICATION ERROR JUST TOGGLE SIGNATURE VERIFICATION WHICH IS PRESENT JUST BEFORE SELECTING THE ZIP FILE TO FLASH VIA RECOVERY
Click to expand...
Click to collapse
Thank you very much, I'll definitely try this out!
EDIT1: First attempt, didn't work
Trying something again...
EDIT2: Second attempt.... Put phone into bootloop :\
EDIT3: Third attempt... Seems like a bootloop again
So basically it changes the Recovery version (not the bootmenu) and puts it into bootloop :\ however I can flash via recovery.
Try copying only recovery folder from inside boot menu
I'll try to make a zip which first deletes the folder to avoid incompatibilities.
BTW can you enter the boot menu when there's boot loop?
And also try fixing permissions
Sent from my MB526 using xda premium
thekguy said:
Try copying only recovery folder from inside boot menu
I'll try to make a zip which first deletes the folder to avoid incompatibilities.
BTW can you enter the boot menu when there's boot loop?
And also try fixing permissions
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
Yeah I can enter bootmenu during bootloop before it starts. I'll retry with the recovery folder only.
EDIT: Wow it worked! Thank you so much I hope you don't mind too much, but if you can modify the recovery slightly that it'd help out a lot and make everything perfect. But I can't thank you enough
I'll upload my working Patch.zip:
If you can do these, that would be amazing: (this is from the working CWM)
1) When I select 'Wipe data/factory reset' it says 'Formatting /data...' and then immediately says 'Formatting /cache...' and when the phone boots up, all my data is there. Now that isn't a problem as such but if I needed to do a clean install that may cause some issues.
2) This isn't a problem, but I was wondering if you could add a printed line whenever I execute the 'Wipe dalvik cache' because it wipes it very fast, but doesn't say anything in the console so I'm not sure if I clicked it or not. Nevertheless when I boot my phone up it says optimising apps which means that it worked.
But yeah only minor things.
Thank you so much
1)I can't modify the recovery, since I'm not really a dev but I can try to make you another zip to wipe data separately
2)Again, that is something coded in the recovery, which I don't know how to alter. Plus, my computer isn't working again(bad ram :banghead: ) so I'm limited to the phone
But are you able at all to wipe data from the custom recovery? Bootmenu? Are both not working?
Sent from my MB526 using xda premium

Categories

Resources