ICS Device Encryption and SDCARD Impact - Nexus S General

Damnit.. My company required encryption of the data on my Nexus S when I was testing ICS Beta with Email / Exchange.
Went ahead and encrypted the device.
Then, I wanted to install ICS Combo Beta 11, so I formatted /system /data /boot and tried to install from /sdcard/*.zip.
No luck.
Clockworkmod recovery cannot mount /sdcard anymore.
Wanted to try and format it, but the clockworkmod tries to mount it first, before formatting
HELP!
I'm stuck with only recovery now and no way to get the update package installed
Is there a way to install from zip via the command line?

You should be able to use fastboot to load the rom on your device. I haven't tried it this way before but it should work:
Code:
fastboot update rom.zip [-w if you want to erase data too]
Give it a spin.
The SDCard not being able to be mounted has been covered a few times but I can't recall the proper fix by heart - search around and you'll definitely get some results that can help you with that.
Greetz

Sounds like it's busted.
Sent from my Nexus S using xda premium

Can you still enable USB Mass Storage in recovery? Try reformat the SD from your desktop?

Si_NZ said:
Can you still enable USB Mass Storage in recovery? Try reformat the SD from your desktop?
Click to expand...
Click to collapse
Thought about that, but what filesystem? FAT32?

Sure
Greetz

I had the same problem with one of the first ICS betas.
Formatting to FAT32 on my Mac was not enough, I had also to reformat under Android. Hope, you backed up your data

dr911 said:
I had the same problem with one of the first ICS betas.
Formatting to FAT32 on my Mac was not enough, I had also to reformat under Android. Hope, you backed up your data
Click to expand...
Click to collapse
Definately backed up..
This was a real scare.. I couldn't mount or format from clockworkmodrecovery. All I had was the adb shell and the builtin /sbin commands.
LUCKILY I found this article;
http://forum.cyanogenmod.com/topic/...mmcblk0++mkfs++ext2__fromsearch__1#entry56396
It didn't exactly match what I was experiencing, but the key was the parted program.
Using it, I was able to reformat my media (partition 3) and am now able to repush things to it.
Stupid sdcard encryption..
Reinstalling ICS Beta 11 now
Blood pressure slowly decreasing.. damn that was a nightmare

So some lessons learned;
DON'T try to partition your SDCARD from clockworkmod or Windows or Mac. The USB storage presented to your computer is a single partiton from you mmcblk0 sd storage. If you partition it, you've got a partition inside a partition which will only make sense to your windows/mac system. Inside of Android, the partition is essentially corrupted and it won't mount.
Formatting from Windows only makes it appear to be working.. in reality you've created a second partition and it's corrupted from the Android point of view.
parted is the only way to fix it. from parted do mkfs type fat32 partiton 3 (media) that will reformat the partition correctly and give you access from Android and external USB hosts.

That's weird...
People have been able to format the SD as ext4 on a desktop using Ubuntu for example. I don't understand how that is different to mkfs.ext4 vs mkfs.vfat. I mean why am I confined to formatting on the phone itself? I'm really confused now.
On a side note. What you experienced is totally expected if you think about it carefully. It's like you have just lost the key to open your SD content by wiping the phone, of course it can no longer be mounted. But I'm not sure why it cannot be simply formatted in CWM.

nauckwj said:
Formatting from Windows only makes it appear to be working.. in reality you've created a second partition and it's corrupted from the Android point of view.
Click to expand...
Click to collapse
That means, I should check my SD Card, which I formatted under OSX with Disk Utility?
Maybe I'll do it next time I flash a new ROM, because for now it works fine.
nauckwj said:
Blood pressure slowly decreasing.. damn that was a nightmare
Click to expand...
Click to collapse
Yeah, I had a similar situation a few weeks after I got my beloved NS when I tried Whispercore. The hole NS got encrypted and formatting the system partition in CWM didn't work, but what I read it was luckily due to a problem with the CWM version. Flashing a newer Version of CWM solved the problem. First I was dying!
So, when I encrypted with ICS and got this problem I calmed down much faster

Si_NZ said:
That's weird...
People have been able to format the SD as ext4 on a desktop using Ubuntu for example. I don't understand how that is different to mkfs.ext4 vs mkfs.vfat. I mean why am I confined to formatting on the phone itself? I'm really confused now.
On a side note. What you experienced is totally expected if you think about it carefully. It's like you have just lost the key to open your SD content by wiping the phone, of course it can no longer be mounted. But I'm not sure why it cannot be simply formatted in CWM.
Click to expand...
Click to collapse
My problem was I used the Windows fdisk partitioning utility to repartition my /sdcard partition. That was part of the problem. I did also read how some people were repartitioning the /sdcard partition, which is kind of weird. I can understand why someone might want to reformat it as an ext4 filesystem, but why would you want to partition a partition?
The /sdcard partition is actually the third partition on your mmcblk0 device. If you partition it, most utilities will fail to recognize it as a valid media device anymore, because they expect to be able to read the filesystem data structures when they mount it. These won't exist if a partition table is sitting at the beginning of the blocks.
I couldn't reformat from within CWM because it first tries to mount the partition. if it fails to mount, CWM won't reformat it. Only way to reformat it was with parted, unless you have a working system installation.
Last night I was also able to reformat it from within ICS. Had to do a full factory-wipe from within ICS, then it indicated the sdcard was no longer valid and asked me if I wanted to reformat it. Once I said yes, all was back to normal.
Fun fun

Related

SD card lost with message "Removed SD card" after update to cyanogenmod

Did not get any help in cyanogenmod thread, so creating a separate thread here.
I am in trouble. After I updated my ROM to cyanogenmod 3.6.7.2 (with his recovery image 1.3.1 and latest radio) I get a message saying: "Removed SD Card" in the notification and I am getting force closes in apps which access sd card.
Why did it remove my sd card? I have the following partition structure"
c (formatted fat32) 2GB - this is what used for upgrading the radio and rom.
83 (formatted ext4) 6GB
c (formatted fat32) 7GB
82 (mkswapped) whatever left off from 16GB card.
Is this structure causing the issues? I used Linux 2.6.30 and e2fsprogs 1.41.7 to format ext4 and dosfstools 3.0.2 to format fat32 FSs.
I ran fix_permissions from recovery console because I was getting FCs in powermanager (which logs files on SD card).
Also, if I boot into the recovery console, I can mount /sdcard and it automatically mounts the first fat32 partition on /sdcard. I can 'fdisk -l' and see all my partitions are there. So, its not a hardware issue. Some sort of chicken&egg because of apps2sd.
I just mounted the partition2 (which is ext4) in recovery console and I can see there are "app app-private dalvik-cache lost+found" folders on it. So, it looks like normally initialized.
Does anybody know what's going on here? Appreciate your help!
It's the same response you've been getting in the other section.
Try backing up your data on your computer, and completely formatting your card to fat32.
From there, instead of making the partitions on the computer, use the Recovery Console (accessed from Cyano's Recovery) and re-create the partitions as you like.
Ok, I delete the 3rd and 4th partitions, and it seems to be working fine now. So, it seems like there is an assumption about the partition structure in the code somewhere.
devsk said:
Ok, I delete the 3rd and 4th partitions, and it seems to be working fine now. So, it seems like there is an assumption about the partition structure in the code somewhere.
Click to expand...
Click to collapse
So you are all good now?
What exactly did you do? Just remove the 3rd & 4th partition, without formatting?
akapoor said:
So you are all good now?
What exactly did you do? Just remove the 3rd & 4th partition, without formatting?
Click to expand...
Click to collapse
Yeah, I just removed the 3rd and 4th partitions from recovery console and the card is recognized and working fine. Now, I need to find out why is it hard coded like that.
It seems like something doesn't like more than 3 partitions on the SD card. I now have 3 partitions with 'c' (fat32), '83' (ext4) and 'c' (fat32) codes and it seems to work fine.
An ext partition of more than 1.5gb can cause problems
Most roms will not work with the way you had it set up (at least not well)
They follow a 3 partition scheme as such
FAT32 > EXT > SWAP
B-man007 said:
An ext partition of more than 1.5gb can cause problems
Most roms will not work with the way you had it set up (at least not well)
They follow a 3 partition scheme as such
FAT32 > EXT > SWAP
Click to expand...
Click to collapse
I've heard this repeated elsewhere but nobody ever actually says what the problem is with partitions greater than 1.5gb. I'm very curious to know, because I haven't noticed anything wrong.
Except that /sdcard won't automount if my sd card has 4 partitions defined on it. As soon as I mark the 4th one empty and reboot, it's fine again. But that has nothing to do with the size of the ext fs on partition 2. Something with vold is funky, because I can mount /sdcard manually from adb.

[How-to]Darktremors apps2sd on Froyo

Edit: I made some scripts that you can run from gscript lite found in market for free. This script will mount the last partition so your windows pc will see it. There is one for mount and one for unmount. Plug your phone in pc and run the mountsd script and your window should pop up on the pc with the folder showing the partition that your froyo rom is using. If you have your card partitioned differently then these instructions then you can just edit the mountsd script where it says /dev/block/mmcblk0p4. Change the 4 to the number of the fat32 partition that you want it to mount. http://www.multiupload.com/HNIKCP720C
If you want to copy from froyo partition to recovery partition try this
Conap said:
No need to stop being lazy but you gotta give me a minute lol...download script and run it in gscripts. In File Manager if you press the home button you will see sdcard and sdcard2. sdcard is the froyo partition and sdcard2 is the recovery partition of the card. I am sure you can get to it in astro too but don't have it downloaded to test. Just navigate to the root folder of the phone and it should have the sdcard2 directory. This will stick untill you reboot then you will have to run the script again.
Click to expand...
Click to collapse
We all have seen that froyo doesn't like partitioned sd cards. After many attempts at partitioning my sd card for another project i'm working on I figured out a way to install the "old" apps2sd on Froyo. I know alot of people preferred the way it was done in 2.1. Froyo seems to use the last partition on the sd card at least untill the 7th partition which it stops looking after that. Amon's recovery works with the first partition on the sd card. So the solution is to put a Fat32 partition as the first partition then put your ext3 and swap partitions and then a 4th partition as fat32 for the phone to use when booted. The important thing to remember is to put any rom's you want to flash on the first partition. Your nand backups will also be stored on the first partition. Pictures, music, video's, stuff you download to the phone and any other normal stuff that uses sd card will end up on 4th partition. I will give instructions using a program called gparted. I think it is available for windows also. This should work with any type of partitioning software.
I will leave the original instructions at bottom of post but after a lot of partitioning my sd card for this project and the ubuntu/debian project and the DualRom project I've found that this method is a little better. I believe someone else linked to this method somewhere in this thread
Conap said:
THIS WILL DELETE EVERYTHING OFF OF YOUR SD CARD
ok try this...boot phone into recovery...hopefully you have amon's recovery cause I don't think clockwork uses parted(not sure). Then type or copy/paste these commands:
adb shell
parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
rm 4
mkpartfs primary fat32 0 2000
mkpartfs primary ext2 2001 2500
mkpartfs primary linux-swap 2501 2550
mkpartfs primary fat32 2551 7948
quit
Depending on the number of partitions on your sdcard currently it may say error after the rm 1,rm 2, rm 3, rm 4 commands. You can ignore them.
Then reboot your phone or copy the file you want to flash back on to card and flash it.
Click to expand...
Click to collapse
PLEASE BE CAREFUL WHEN USING A FORMATTING PROGRAM THAT YOU ONLY REFORMAT YOUR SD CARD AND NOT YOUR HARD DRIVE
1. BACK UP YOUR SD CARD!!!!!!!!(this will erase all data on sd card)
2. Plug your phone into your pc and mount the sd card(like you would if transferring files from pc to your card)
3. Open GParted and on the bar at the top click Gparted then devices and choose the phone( should be the second in the list if you only have one hard drive and no other external storage devices connected)
4. On the gparted screen you will see the partitions of your sd card. There should only be one at the moment if you are already using froyo. Right click on all of the partitions and click unmount and then delete. This will delete everything on your sd. Please be sure you have backed up your card.
5. You should now have one line that says unallocated.
6. Right click on unallocated and click click new. It will bring up a screen that has size and type of partition sizes. The only things you need to change are the size and type. For the first partitions I used 2000mib in the new size box but I keep around 5 Nand backups and 10 to 15 rom's stored on my card at a time. If you do not do alot of nands and store alot of roms you could probably make this partition smaller. Then under file system choose fat32 from the dropdown menu and choose add.
7. Right click on unallocated again and click new. This will bring up the screen to chose size and file system again. Normally people use 500mb for the ext3 partition for apps2sd. You can adjust the number to fit your needs. Choose your size and then make the file system ext3 and click add.
8. Right click unallocated again and click new. This partition should be around 50mb and choose file system as linux-swap.
9. Right click unallocated and new again. This will be the partition you use for your media on your phone such as pic's or music. You will want to use the rest of the space left on your card for this partition. Choose fat32 for the file system and click add.
10. You should now see 4 sections listed. First and last should be fat32, second ext3 and 3rd linux-swap. If it looks correct you hit the checkmark button at the top of the gparted screen. It will make all changes to your sd card. You can then unmount your card and make sure your phone reads it. I reccomend taking 1 picture before copying the stuff you backed up back onto your card.
Remember to put your Nand folder and any roms onto partition 1 and all other stuff you backed up on partition 4. When your card is setup you can go to http://forum.xda-developers.com/showthread.php?t=715933 to get the zip to flash to install the apps2sd. Install apps2sd as per instructions on that thread.
I have apps2sd currently running on my phone with CELB3.2 and it is working fine. I set my card up on a linux machine with gparted.
you are the man Conap ...currently running your 3.2froyo, which BTW is smooth as heck....what I hate the most about froyo is there A2sd setup ....and you have just solved that problem
rvpartsguy said:
you are the man Conap ...currently running your 3.2froyo, which BTW is smooth as heck....what I hate the most about froyo is there A2sd setup ....and you have just solved that problem
Click to expand...
Click to collapse
Well if you or anyone else that has windows test's this can someone report if you can access both fat32 partitions when you mount the phone in windows....
I'll be trying this ish later. Superb work conap. I'm on windows, I'll let you know how it goes as well
Sent from my Droid Eris using XDA App
I'm undecided if I'll try this, but if I do it'll probably more to see how it works under Windows than to use it myself.
I wish the best of both worlds, being able to have Widget apps installed to SD card, but not have separate partitions, and still be able to specify applications I want to remain in the phone memory, for speed.
No matter what, though, beautiful! Thanks for writing up the instructions!
roirraW "edor" ehT said:
I'm undecided if I'll try this, but if I do it'll probably more to see how it works under Windows than to use it myself.
I wish the best of both worlds, being able to have Widget apps installed to SD card, but not have separate partitions, and still be able to specify applications I want to remain in the phone memory, for speed.
No matter what, though, beautiful! Thanks for writing up the instructions!
Click to expand...
Click to collapse
I agree it would be nice to have the option to move specific apps back to the phone. But I have seen alot of people that prefer this way so I thought i'd write this up. I actually needed partitions for other things which is why I was looking into it anyway. I now have 8 partitions on my sd card and everything still functions correctly. I did find that Froyo would read the last partition on the sd card up untill 7 partitions. When I added an 8th partition it still looked at partition 7. In case any one was interested in more partitions just make sure the fat32 is last partition untill you have more then 7 leave 7 as fat32.
Conap said:
I agree it would be nice to have the option to move specific apps back to the phone. But I have seen alot of people that prefer this way so I thought i'd write this up. I actually needed partitions for other things which is why I was looking into it anyway. I now have 8 partitions on my sd card and everything still functions correctly. I did find that Froyo would read the last partition on the sd card up untill 7 partitions. When I added an 8th partition it still looked at partition 7. In case any one was interested in more partitions just make sure the fat32 is last partition untill you have more then 7 leave 7 as fat32.
Click to expand...
Click to collapse
Do you have a 16GB or larger card? Wow!
Very interesting information, thank you!
roirraW "edor" ehT said:
Do you have a 16GB or larger card? Wow!
Very interesting information, thank you!
Click to expand...
Click to collapse
nope just stock 8gb...mostly small partitions for testing some ideas lol...i did find that the phone does not mount any more then 7 partitions(kernel limitation maybe) You can have more then 7 if you are useing your card for things other then the phone but for phone purposes 7 is the limit.
How do I plug my phone into my computer?
need help!!
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Conap said:
nope just stock 8gb...mostly small partitions for testing some ideas lol...i did find that the phone does not mount any more then 7 partitions(kernel limitation maybe) You can have more then 7 if you are useing your card for things other then the phone but for phone purposes 7 is the limit.
Click to expand...
Click to collapse
Oh, okay! Nosey people (me) want to know. Hehehe.
workshed said:
How do I plug my phone into my computer?
Click to expand...
Click to collapse
You're messing with me, right? The USB cable that came with your phone, that you can also charge your phone with???
ykhehra1 said:
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Click to expand...
Click to collapse
You'll probably have to boot your Vista 32-bit installation DVD and run a Startup Repair. Or if the computer came with a recovery DVD that you hopefully burned after booting up the computer the first time, use that.
If you don't have any easier option, you can download Startup Repair-only burnable disc images from the EasyBCD website. Just google for it. Make sure and download the correct one (Vista 32-bit), and then you'll have to burn it to a CD and boot from it. Hopefully you're computer doesn't have any SATA or RAID setup that Vista doesn't include the drivers for, otherwise you'll have to download those and put them on a flash drive, and then you can load them from the Vista repair CD.
Good luck.
ykhehra1 said:
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Click to expand...
Click to collapse
There is no makeboot option on gparted in linux that i can see...if you think you have messed up the boot partition of your pc don't restart it till you fix it. Google should be your best friend on that one. I don't use windows so can't be of any help to you there....
roirraW "edor" ehT said:
Oh, okay! Nosey people (me) want to know. Hehehe.
You're messing with me, right? The USB cable that came with your phone, that you can also charge your phone with???
Click to expand...
Click to collapse
LMAO
What's a usb cable... is it that black thing with a square end??
Its g8 solution, good job! little tricky on windows, but worked at the end.
workshed said:
LMAO
What's a usb cable... is it that black thing with a square end??
Click to expand...
Click to collapse
Ooooh, you got me. LOL!
ykhehra1 said:
Its g8 solution, good job! little tricky on windows, but worked at the end.
Click to expand...
Click to collapse
Are you able to get both FAT32 partitions (partition 1 for ROMs and other flashes, partition 4 for everything else) mounted with drive letters under Windows?
is there an advantage to doing this? i'm just curious
asilentcivilian said:
is there an advantage to doing this? i'm just curious
Click to expand...
Click to collapse
nevermind, i found the 2.1 dark tremor thread. i assume the same results apply to froyo with this.
asilentcivilian said:
is there an advantage to doing this? i'm just curious
Click to expand...
Click to collapse
some people just prefer this way. this way actually stores the whole apk on the phone and save's more room then froyo. plus you can mount your sd card while still using your apps. I did this mainly cause I wan't partitions for other things on my phone personally. It just happens that it helps the apps2sd issue too...

[Q] Failed to get ext2 partition in any way i tried!

I have tried all kinds of ways to partition my sd card to get data2ext to work on b 0.5.
- Partitioning through rom manager
- Partitioning through paragon partition manager (didn't even work)
- Manually partitioning by running commands through terminal emulator
I manage to get the linux swap and fat32 partition but no matter which method i tried, i just can't get the ext2 partition. On the emulator, it asked if my file system was an ext2 system.
By the way, i am using an 8gb sd card that came with Nokia 5800. Is this the cause of not being able to create the ext2 partition?
Easiest way I can think of is to use the live distro of Gparted.
http://gparted.sourceforge.net/livecd.php
Awesome partitioning tool and has a gui anyone can follow.
E.E.
i just partioned my 8gb yesterday with paragon, no problems. what kind of problem did you have?
@eepunk I will try that later... i'll see if there is any solution in the current software(s) i have...
@haha123 the problem i'm facing is i cannot see the sd card when i click format partition... Maybe i'm doing it wrong. Here is how i do..
1. Plug my phone into USB and click Disk Drive
2. Open up Paragon Partition Manager 11 Personal
3. Click on Partition Manager on the left tabs and launch the partition manager
4. At the bottom, click on Basic Hard Disk (HTC Android Phone USB Device)
5. Click on Format Partition in the Disk View tab.
The problem is when i click format partition. It just shows the hard disk in my PC but not the HTC Android phone USB Device.
I even tried skipping the format partition to try creating a partition but i still cannot see the HTC Android Phone USB Device.
The Error i get is "The disk already contains four primary partitions. Basic hard disks can contain only four primary partitions, including extended one.
Eh...
Why not just boot into Clockwork and use the Partition menu
spicyjoe said:
@haha123 the problem i'm facing is i cannot see the sd card when i click format partition... Maybe i'm doing it wrong. Here is how i do..
1. Plug my phone into USB and click Disk Drive
2. Open up Paragon Partition Manager 11 Personal
3. Click on Partition Manager on the left tabs and launch the partition manager
4. At the bottom, click on Basic Hard Disk (HTC Android Phone USB Device)
5. Click on Format Partition in the Disk View tab.
The problem is when i click format partition. It just shows the hard disk in my PC but not the HTC Android phone USB Device.
I even tried skipping the format partition to try creating a partition but i still cannot see the HTC Android Phone USB Device.
The Error i get is "The disk already contains four primary partitions. Basic hard disks can contain only four primary partitions, including extended one.
Click to expand...
Click to collapse
I followed this step by step guide:
http://forum.xda-developers.com/showthread.php?t=512873
I had the card formatted to fat32 (using windows) before partitioning, maybe you can try that?
pjgodd said:
Eh...
Why not just boot into Clockwork and use the Partition menu
Click to expand...
Click to collapse
Hmmm, i was looking around in that menu but there isn't any saying create partition... just format and stuff... :S
@haha123 Hmmm, give that a try.... i've just downloaded the gparted software so will try that first...
EDIT: Given up all hope, i can't even get gparted to boot with USB...
Check the GUIDE...
Thanks blayo, i tried that and it crashed all the apps on my phone until i had to format my sd card and restore nandroid... hmmm... mysterious, but thanks, i'll let data2ext pass.... wouldn't want to brick my phone...
spicyjoe said:
Thanks blayo, i tried that and it crashed all the apps on my phone until i had to format my sd card and restore nandroid... hmmm... mysterious, but thanks, i'll let data2ext pass.... wouldn't want to brick my phone...
Click to expand...
Click to collapse
Well, this is the formatting guide... what the hell did you expect? There are certain files on SD fat32 partition that some of apps use. If you unmount SD card and reformat it, those files are not available any more. Right?
Yeah true but even when i restore it doesn't work. Alright man, thanks for the guide anyways.

[Q solved] cannot mount sdcard in recovery

So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
I'm running 3.1 rooted
I've flashed Thor's 1.4.2 recovery.
I have two sd cards: a 2g and an 8g.
Both work when accessed on a PC and on the iconia.
Neither work in cwm so I can't flash any roms.
I have tried formatting the sdcards on two different PCs. for the 2g I tried both fat and fat32. The 8g is fat32. In every case cwm says it can't mount it.
Additionally, I can't seem to use a USB key, although that may be that i don't know how to use it.
Thanks for any help.
-Bert
When in CWM and you go to install zip from sdcard do you see any folders where you choose the zip. Just wondering if it isn't mounted already. Physical sdcard is in /mnt/external_sd
and not /mnt/sdcard.
PsychosisNC said:
When in CWM and you go to install zip from sdcard do you see any folders where you choose the zip. Just wondering if it isn't mounted already. Physical sdcard is in /mnt/external_sd
and not /mnt/sdcard.
Click to expand...
Click to collapse
Thanks for your reply. I'm prety sure It's not mounted already.
I'm attaching a screenshot to show the exact message I get when trying to browse for a zip. I get a similar message when I go to mounts and storage and try to mount the sdcard.
im bumping this because I'm really becoming concerned that the device is defective in some way.
I'm hoping that someone can give me some guidence on what I may be doing wrong.
So, brosell, did you figure out a solution? I have the exact same problem - cannot mount sdcard in recovery and I get the exact same message.
When the system is booted normally, the internal storage mounts ok as /sdcard
EDIT:
It seems CWM treats the external sdcard as /sdcard, not the internal storage. So, to flash an update, you need to place it on an external SD card
I always get that error, and I never had to mount anything using cwm, just booted it selected the zip to flash and flash. I still don't mount anything...?
And the zip goes on the external sd not the inturn
Can't format SC Card in Window. If won't mount.
Guys,
Unfortunately SD cards for Android must be formatted by Android. If the card is not properly formatted CWM can not mount it, nor can CWM format it. The best way to get it properly formatted is to put it into an Android Phone and use its format functions. There really is no way on the Icona Tab to reformat an improperly formatted card or a new formatted card. If you don't have an Android phone borrow a friends. You will know that it is properly formatted when you see a lost files folder created on the card by the Android phone formatting process. This is a common problem that many people encounter when performing their first ROM flash. If it was formatted under windows as FAT 32 you can access it and store on it in normal operation mode. But ClockWorkMod can not mount it in recovery mode. Hope this helps. Good luck.
Can mount SD card in Recovery
I should have also mentioned last night in my post here, that my experience has been that it is much easier to flash a new custom ROM from a USB thumb drive. Flashing a custom ROM from USB seems to be less problematic than from an SDCard that appears otherwise to be good and formatted with FAT32, but CWM can't mount it. You can fast format the thumb drive on Windows to clean it off. Then copy your custom .zip ROM to be flashed on to the thumb drive from within Windows then insert it into the USB port of your Icona Tab, boot into CWM recovery (I'm assuming you know how to do that so I won't go into it here.) I forget exactly where in the CWM menu it is, it might be under the CWM advanced sub-menu but it say's something to the effect of Install zip from USB. It always works for me with no problem. The advantage is that you do all your prep work on Windows and then flash from the thumb drive which I believe has an ISO standard across all platforms and usually comes already per-formatted. This is an alternative method if you can't get your SDCard properly formatted (see my previous post in this thread for how to get it properly formatted so that it will mount under CWM.) Again, good luck!
I want to cry!!
I tried re formatting! Nothing! Cmw is not on sd card! Nothing is working! Still stuck on acer start screen! Yes i am a noob! But i read alot into this stuff b4 i do it! I wish there was someone i can have come to my house and do this for me! I have tried everything!!!!!!!!!!! So frustrated!!! Someone pls help me!!!!
in CWM recovery, there are 2 options,sd and "internal sd" i think(for me atleast). i chose the internal sd and it mounts.
brosell said:
So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
-Bert
Click to expand...
Click to collapse
Thank You Sir! been looking for this fix for a long time
brosell said:
So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
/QUOTE]
thanks brosell, for the solution,
I have a 512MB SD card in the g5360, was FAT formatted. reformatting the sdcard with the tool from sdcard.org worked for me as well, afterwards it could be mounted by the stock recovery
and could install update.zip (prior to install CMW)
kr, Erik
Click to expand...
Click to collapse

[Q] Can I have partitions that can be accessed from both NC Stock and CM7 on SD card?

Hi everyone!
I just got CM7 (latest stable release) installed on on external sdhc card. I have wifi issues with CM7 (and looking around the forums tells me that CM7 can be finicky with certain routers) so I would love to be able to use Nook's stock ROM (4.1.4) when I am having issues.
But, when I am on NC ROM, I don't see anything except the small boot partition on the SD and when I am on CM7, I don't get access to this boot partition. I am wondering if there is a way to either create another partition or make the currently existing partitions accessible on both ROMS so that I can share data between them.
I am a n00b without any Android experience so thanks in advance for your patient responses.
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
andrandom said:
Hi everyone!
I just got CM7 (latest stable release) installed on on external sdhc card. I have wifi issues with CM7 (and looking around the forums tells me that CM7 can be finicky with certain routers) so I would love to be able to use Nook's stock ROM (4.1.4) when I am having issues.
But, when I am on NC ROM, I don't see anything except the small boot partition on the SD and when I am on CM7, I don't get access to this boot partition. I am wondering if there is a way to either create another partition or make the currently existing partitions accessible on both ROMS so that I can share data between them.
I am a n00b without any Android experience so thanks in advance for your patient responses.
Click to expand...
Click to collapse
Look in my signature for a link to my tips thread. I explain there how to make the SD media partition available to both ROMs (item B3).
leapinlar said:
Look in my signature for a link to my tips thread. I explain there how to make the SD media partition available to both ROMs (item B3).
Click to expand...
Click to collapse
*That's* the one I wanted to point them to.
leapinlar said:
Look in my signature for a link to my tips thread. I explain there how to make the SD media partition available to both ROMs (item B3).
Click to expand...
Click to collapse
Thanks.
Do you mean step #3 in Section B? I could edit it without running your script too, can't I?
andrandom said:
Thanks.
Do you mean step #3 in Section B? I could edit it without running your script too, can't I?
Click to expand...
Click to collapse
If whatever you have on emmc is rooted, you can manually edit it. If you have unrooted stock, then you need to flash the zip since without root you cannot edit those files manually. And I did mean item B3. Each item is a different topic, they are not steps. One topic does not depend on another. Just do B3 and no others if you want.
Yes, item B3. My mistake...
I should be able to do flash the zip from my current CM7 SD card's boot partition, shouldn't I?
So I put the update-stockemmc-vold-fstab-modified-for-partition4.zip file in the boot partition of the SD card, rebooted to Recovery mode and then booted to NC's stock ROM. NC is still using the tiny boot partition on the SD card as my external storage instead of the much larger CM7 partition. This was the same partition that was under 'My Files / Memory card' before I flashed so nothing has changed. I did this twice to double-check.
Am I doing this wrong?
andrandom said:
Yes, item B3. My mistake...
I should be able to do flash the zip from my current CM7 SD card's boot partition, shouldn't I?
So I put the update-stockemmc-vold-fstab-modified-for-partition4.zip file in the boot partition of the SD card, rebooted to Recovery mode and then booted to NC's stock ROM. NC is still using the tiny boot partition on the SD card as my external storage instead of the much larger CM7 partition. This was the same partition that was under 'My Files / Memory card' before I flashed so nothing has changed. I did this twice to double-check.
Am I doing this wrong?
Click to expand...
Click to collapse
Yes you are doing it wrong. You need to flash that file with a CWM card, not put in the boot partition of your SD. And since you did that, you need to re-flash your latest ROM on SD to correct your mistake. (I will edit my instructions to make it a little clearer that you use CWM to flash that file.)
I got NC stock ROM to see my SD card partition by following item A10. That is most excellent and thanks again!
Unfortunately, I no longer see the boot partition when I attach NC to my computer whether NC is running off stock ROM or CM7. My guess is that this is due to my failed attempt to flash from my CM7 SD card yesterday. Am I right?
I thought I could reverse that by copying the update-stockemmc-vold-fstab-return-to-stock.zip file to CM7's boot (and then booting to the recovery mode) but that seemed to have nothing.
If I understand your previous message correctly, I should re-do my entire SD card but... I have already spent a few hours downloading and customizing the Android apps. Is there a way to preserve all that before Win32diskimager destroys the contents of the SD card?
Is there a way to manually mount the /etc folder from a unix prompt and alter the file?
Does it even matter if I don't see boot while I attach NC to a computer? Are there any caveats to 'let it be'?
Questions, questions and more questions...
That leads me to the obvious question, is there a book that explains Android to someone who is not interested in programming it but wants to understand the architecture and design of the OS (and custom ROMs)?
Thanks for being patient with all these n00b questions.
andrandom said:
I got NC stock ROM to see my SD card partition by following item A10. That is most excellent and thanks again!
Unfortunately, I no longer see the boot partition when I attach NC to my computer whether NC is running off stock ROM or CM7. My guess is that this is due to my failed attempt to flash from my CM7 SD card yesterday. Am I right?
I thought I could reverse that by copying the update-stockemmc-vold-fstab-return-to-stock.zip file to CM7's boot (and then booting to the recovery mode) but that seemed to have nothing.
If I understand your previous message correctly, I should re-do my entire SD card but... I have already spent a few hours downloading and customizing the Android apps. Is there a way to preserve all that before Win32diskimager destroys the contents of the SD card?
Is there a way to manually mount the /etc folder from a unix prompt and alter the file?
Does it even matter if I don't see boot while I attach NC to a computer? Are there any caveats to 'let it be'?
Questions, questions and more questions...
That leads me to the obvious question, is there a book that explains Android to someone who is not interested in programming it but wants to understand the architecture and design of the OS (and custom ROMs)?
Thanks for being patient with all these n00b questions.
Click to expand...
Click to collapse
You do not need or want to re-set up the whole SD installation. Just put the same CM7 zip file back in the boot partition and boot to SD recovery. It will put the correct vold.fstab back on the SD. You will not lose any settings or apps you have already set up. (And putting the return to stock zip there was also the wrong thing to do. The vold.fstab for stock and CM7 are different. But don't worry, it will fix that too.)
You are not supposed to see the boot partition on the PC when you plug the nook in with the cable. You are only supposed to see 'emmc' and 'sdcard'. Under the original setup, your stock system thought the boot partition was 'sdcard' and that was why you saw it on your PC. Since you modified stock to see partition 4 as 'sdcard', partition 4 is what the PC sees, not the boot partition.
Most people have to physically take the card out of the nook and put it in the PC to see the boot partition on the PC. If you don't want to do that, use my script in item B4. But since you are on CM7, you will not be adding many things to the boot partition to install with SD recovery in the future. So it is probably best to leave things be.
And I don't know of any books to help you.
Sent from my Nook Color running ICS and Tapatalk
That is excellent news!
A bit of playing around with Astro tells me that I was wrong about seeing the 'CM7 SDCARD' partition when I was on CM7 ROM. I am only seeing the boot. Anyway, I am going to flash the CM7 ROM again and I am hoping it would fix everything.
Also, yes, I can see the boot partition when I put the SD card directly on my computer but I was also able to see it when I hooked up the NC to my computer via USB before I did my unintended tweaks but... I'll survive.
I'll be back after I flash. (Famous last words??)
Mission accomplished!
Thanks again for all your help.
For future reference after you alter stock's fstab... all you have to do is:
mkdir /sdcard/boot (only have to do this one time)
mount /dev/block/mmcblk1p1 /sdcard/boot (do this every time you want to put something on the boot partition)
put anything you want on boot partition in /sdcard/boot
DizzyDen said:
For future reference after you alter stock's fstab... all you have to do is:
mkdir /sdcard/boot (only have to do this one time)
mount /dev/block/mmcblk1p1 /sdcard/boot (do this every time you want to put something on the boot partition)
put anything you want on boot partition in /sdcard/boot
Click to expand...
Click to collapse
Yes, there is one big advantage to using that method. I think it allows the boot partition to be seen not only on the nook, but also on the PC when you plug in the usb.
leapinlar said:
Yes, there is one big advantage to using that method. I think it allows the boot partition to be seen not only on the nook, but also on the PC when you plug in the usb.
Click to expand...
Click to collapse
We could probably come up with a symlink to /dev/block/mmcblk1p1 to /sdcard/boot and avoid having to mount it everytime as well.
DizzyDen said:
We could probably come up with a symlink to /dev/block/mmcblk1p1 to /sdcard/boot and avoid having to mount it everytime as well.
Click to expand...
Click to collapse
Thank you Dizz, your suggestion got me to thinking and I was able to come up with an init.d bash script that does the trick. I just temporarily mounted sdcard and created the sdcard/boot directory and the mounted the boot partition to it, then unmounted sdcard so it could be mounted again by the system later in the boot sequence.
The only problem is now sdcard will not mount on the PC using UMS mass storage. Must be because of having a second mount within the mount. But it does mount with MTP. But that may be acceptable. I will test some more, including using Goo Manager tomorrow.
EDIT (6-21): Goo Manager works. But I think I have figured out why sdcard is not mounting in UMS. Once it is mounted in my script and the boot partition mounted under it, it cannot be unmounted. And since it cannot be unmounted, it cannot be mounted later by the system as vold. If it cannot be mounted as vold, it does not show in UMS. For now I think I will leave it as I have it in Rev 2 of my script (symlinking to the root directory with full r/w permissions). If people want to see the boot partition on the PC, just use my modified for CM9 NookColorUMS available in my tips thread.
Sent from my Nook Color running ICS and Tapatalk
Help!
When CM7 is running, my computer is no longer mounting any of the partitions when I connect NC to my computer via the USB cable.
If the NC stock ROM is running, my computer mounts all three partitions (MyNook..., boot and CM7SDcard) but calibre is not recognizing the external partitions for transfers.
Further, when I boot to my NC stock ROM, I am no longer seeing my SD card's contents in the NC's library.
This may have something to do with the fact that NC stock ROM seemed to have updated itself to 4.1.3.
Should I re-run the scripts again or am I missing something else?
When it was updated to 1.4.3, you lost the emmc mods. Just re-flash my zip with the CWM SD. You may have lost CWM on emmc too.
On CM7, you have to select the turn on storage button after you plug it in. It is not automatic like stock. Pull up the notification area and touch the turn on button.
Darn, I forgot about that 'USB' option under notifications. Enabling it allows me to find the partitions. I will run your scripts again when I find a spare mUSB card.
Thanks again for your help!

Categories

Resources