Cant Mount SD card in twrp - Verizon Galaxy Note 4 Q&A, Help & Troubleshooting

I successfully rooted and unlocked my verizon note 4 but for some reason my twrp 3.0.2 will not mount my sd card!
I already tried doing this fix mentioned here
http://forum.xda-developers.com/note-4-verizon/help/wiped-internal-everything-external-t3363814
maybe i didnt perform the fix correctly?
Any help is greatly appreciated!
Thanks,
deershoot3r
EDIT: Fixed retried the fix 2 more times and it finally went through

Um is it just me or am I not seeing the fix? I am perfectly rooted and have no issues except TWRP sees my ext SD card as 0mb. I cant mount it and nothing changes. I can see it on my phone and put files on it. Why does TWRP not recognize it? Any help would be appreciated. It isn't crippling by any means but it sure is frustrating.

Get sdcard reader..put it on your laptop or desktop.. Run cmd..format the drive (eg. E it might take 5 to 30 minutes...I believe it's due to the process of unlocking the bootloader the SD card got corrupted.
Sent from my SM-N910V using Tapatalk

I don't see the fix either.. has anyone found a fix?

I think this is more of a MM issue. I had to format my 128 GB with my Moto X Pure for it to even work in a MM rom. I'm guessing all of you are using 5.1.1 roms which is why it works fine for daily use? If so flash a CM13 rom and it should prompt you to format the sd card. Once you've formatted it within the rom it should also read it properly with the latest TWRP. Since my sd card was already formatted, I've had no issues with TWRP or 6.0.1 roms.
This is all my opinion. So please don't fuss if I'm wrong. But I believe the latest TWRP is built for MM and MM allows you to use your sd card as internal storage or as external storage. I prefer external storage. Internal means it's bound to your phone, it won't work with any other phone unless reformatted, and removing it could cause issues to your current rom.
Sent from my SM-N910V using Tapatalk

I might just try the whole CM13 thing. It is very strange because a lot of people would not be on MM so it should work both ways? However once it is formatted I am curious if I go back to 5.1.1 if it will stop working? My Sd card was originally corrupted by the transfer to dev edition method we all used. I was able to regain it by using the sd formatter. Since then my phone works very well with it but TWRP doesn't like it. I will try and switch roms then report back. Who knows maybe it is the fix we need.

Its the root process that killed the sd card, not your ROM, or TWRP. I tried a different sd card and works great with TWRP and all apps (running Jasmine ROM).... Format the one you used to root with your PC.

NOTE:
If you are someone who does not like or just doesn't choose to have Xposed installed, then this step will not work.
Lets go,
1.) Install Xposed Framework
2.) Download and install Wanap Xposed module
3.) Activate the module and reboot.
4.) Open Wanam and go to security hacks and check the box for SDcard RW permission, then reboot.
There may be other ways of going about the sd write/mount fix, but this method worked for me. Hope it works for you.

Guys, if people want to link to this post to resolve this issue, please feel free to do so.
The reason why your SD card becomes 'messed up' is because during the unlock, we do a clone of the first 256MB of your eMMC and write it 'raw' to your SD card. In the event your eMMC would get messed up and fail to boot, it would failover to your MicroSD. When we do this, the GPT/MBR (Partition Table) is cloned also, so it's only recognized the NON-HLOS (FAT) partition. Your card is actually perfectly fine but the partition table is telling the computer/phone that it's a different size. Here's the fix:
Code:
adb shell
su
dd if=/dev/zero of=/dev/block/mmcblk1 bs=512 count=524288
You MUST do mmcblk1 and NOT mmcblk0 (your eMMC) as that will wipe your internal storage. Once you execute the command, you can reformat like normal.

ryanbg said:
Guys, if people want to link to this post to resolve this issue, please feel free to do so.
The reason why your SD card becomes 'messed up' is because during the unlock, we do a clone of the first 256MB of your eMMC and write it 'raw' to your SD card. In the event your eMMC would get messed up and fail to boot, it would failover to your MicroSD. When we do this, the GPT/MBR (Partition Table) is cloned also, so it's only recognized the NON-HLOS (FAT) partition. Your card is actually perfectly fine but the partition table is telling the computer/phone that it's a different size. Here's the fix:
Code:
adb shell
su
dd if=/dev/zero of=/dev/block/mmcblk1 bs=512 count=524288
You MUST do mmcblk1 and NOT mmcblk0 (your eMMC) as that will wipe your internal storage. Once you execute the command, you can reformat like normal.
Click to expand...
Click to collapse
Thanks ryanbg but I can use my sd card just fine in my phone. Full storage and all. TWRP is the only place it won't recognize it. Tibu works with my sd card as well. Will this script fix the TWRP issue? I don't think it will but thought I would ask. You know more than I do
Sent from my SM-N910V using Tapatalk

ryanbg said:
Guys, if people want to link to this post to resolve this issue, please feel free to do so.
The reason why your SD card becomes 'messed up' is because during the unlock, we do a clone of the first 256MB of your eMMC and write it 'raw' to your SD card. In the event your eMMC would get messed up and fail to boot, it would failover to your MicroSD. When we do this, the GPT/MBR (Partition Table) is cloned also, so it's only recognized the NON-HLOS (FAT) partition. Your card is actually perfectly fine but the partition table is telling the computer/phone that it's a different size. Here's the fix:
Code:
adb shell
su
dd if=/dev/zero of=/dev/block/mmcblk1 bs=512 count=524288
You MUST do mmcblk1 and NOT mmcblk0 (your eMMC) as that will wipe your internal storage. Once you execute the command, you can reformat like normal.
Click to expand...
Click to collapse
ryanbg, thanks so much. This worked perfectly, and thanks for explaining how and why. Awesome!

Another fix for TWRP users who are unable to mount external storage:
None of the listed fixes worked for me so here is how I fixed the issue...
1. Insert your sd card into a MicroSD adapter and put into your PC
2. Run command prompt as administrator
3. In the command prompt window type the following commands:
Press Enter after each command -
diskpart
list disk
select disk 1 [enter the disk number assigned to your sd card. e.g. select disk 1]
clean
create partition primary
select partition 1
format quick fs=fat32 [If your sc card is larger than 32GB the change format quick fs=fat32 to format quick fs=ntfs]
exit
4. Remove your sd card and place it back in your phone, reboot/enter recovery and mount your external storage.
You should now see the full available storage space.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

ryanbg said:
Guys, if people want to link to this post to resolve this issue, please feel free to do so.
The reason why your SD card becomes 'messed up' is because during the unlock, we do a clone of the first 256MB of your eMMC and write it 'raw' to your SD card. In the event your eMMC would get messed up and fail to boot, it would failover to your MicroSD. When we do this, the GPT/MBR (Partition Table) is cloned also, so it's only recognized the NON-HLOS (FAT) partition. Your card is actually perfectly fine but the partition table is telling the computer/phone that it's a different size. Here's the fix:
Code:
adb shell
su
dd if=/dev/zero of=/dev/block/mmcblk1 bs=512 count=524288
You MUST do mmcblk1 and NOT mmcblk0 (your eMMC) as that will wipe your internal storage. Once you execute the command, you can reformat like normal.
Click to expand...
Click to collapse
Thank you for this but mine still shows as 0MB in TWRP. Everywhere else, I see full capacity. I've deleted partitions and reformatted multiple times, still no dice.

Any solution this issue? I have a 64gb card that I had used for the unlocking process. I had removed all the partitions and re-created a single one, but TWRP won't mount it, and shows the card as 0mb. It shows full capacity 59.61gb after booting into the OS on the phone, it works fine in Windows, heck I even put it in an SD adaptor and used it fine in my DSLR!
TWRP is the only thing that won't read it. It behaves as if there is no uSD inserted at all.
I'm attempting the diskpart instructions now.
Edit: OK, fixed it. Following the instructions in post #12 made it readable by TWRP, but couldn't write to it. Booted into the OS and it said the uSD card was messed up - allowed it to format. Rebooted into TWRP and was able to backup to it successfully!

newmartinr said:
None of the listed fixes worked for me so here is how I fixed the issue...
1. Insert your sd card into a MicroSD adapter and put into your PC
2. Run command prompt as administrator
3. In the command prompt window type the following commands:
Press Enter after each command -
diskpart
list disk
select disk 1 [enter the disk number assigned to your sd card. e.g. select disk 1]
clean
create partition primary
select partition 1
format quick fs=fat32 [If your sc card is larger than 32GB the change format quick fs=fat32 to format quick fs=ntfs]
exit
4. Remove your sd card and place it back in your phone, reboot/enter recovery and mount your external storage.
You should now see the full available storage space.
Click to expand...
Click to collapse
thank you and thank you thank you thank you :highfive::good::highfive::good::highfive:

SlothlyDX said:
Thanks ryanbg but I can use my sd card just fine in my phone. Full storage and all. TWRP is the only place it won't recognize it. Tibu works with my sd card as well. Will this script fix the TWRP issue? I don't think it will but thought I would ask. You know more than I do
Sent from my SM-N910V using Tapatalk
Click to expand...
Click to collapse
I get permission denied when attempting this.

Post #12 worked perfectly
Thanks!!:good:

Related

[GUIDE][9-JAN] How to partition your SD card correctly for APPS2SD+ ROMS.

UPDATE: The GUIDE has been updated to the smallest detail you should have no problems partitioning your card if You just CAREFULLY read and follow the instructions.
UPDATE: Since some people can't seem to make this work with gparted live cd there is another solution, You can use pmagic.iso. In basic's it's the same procedure (heck it also the same gparted only put into a more friendly enviroment). The reason that i'm posting this it's because you don't even need the cd you can start it from a flash drive. U just have to make a bootable usb flash and put in bios to start from usb in boot options
The link for download is here
The link for how to make a bootable usb here
The procedure is simple just install chose from the list parted magic and read the tutorial from the donload page
Some roms have the problem with the ext4 just use ext3 or ext2 partition.The safest one is ext2 and ext2 is the slowest way to wear off your card. I haven't tried all roms just ask in that section.
And as always i'm not responsible for any damage that may occur while doing this.
And ui updated the link for downloading the gparted
Originally by Sentinel196 i qouted him and made things a little simpler 'cause people like screenshots . I've just aded screenshots because im lazy and don't like to type much . All the credit goes to him i just inserted screenshots for better understanding. And sorry for the misstypes i'm not use to type from my nettop .
It seems many people are having issues partitioning their SD card for use with Apps2SD+ ROMS using the additional EXT4 partition.
Here is a guide to the method that worked for me. I am not responsible for any loss of data on your phone or PC as a result of following this guide. Read the steps clearly and understand them BEFORE you do anything. Failure to understand the steps involved could see you wiping data from your PC's hard drive with no warning messages to tell you what you are about to do. You have been warned!
Firstly, I couldn't get Partition Wizard for Windows to work. If anyone else has been successful with it please let me know and I will update this post.
Before you start, BACK UP all your data from the SD card. It will all be erased from your SD card during this process.
Although this works on a phone which has already been flashed with an APPS2SD+ compatible ROM. I strongly suggest starting with a freshly flashed ROM with no apps installed before doing this to ensure ALL additionally downloaded and installed apps are installed on to the partition, leaving the maximum possible storage space remaining on your phone.
Here are the steps....
1. Download a copy of GPARTED-LIVE from here. Use your favourite CD burning software to burn the image to CD. The image is bootable so make sure you do not leave the CD as open session when you burn it. This is the software we will use to partition the SD card later on.
2. Start with a freshly formatted SD card with a single FAT32 partition. This can be created using whatever tool you prefer. Use the default cluster size setting. I use the Disk Management tool in Windows under Administrative Tools in Control Panel. You can perform this step by inserting the SD into your PC or mounting it on your PC via the phone.
YOU CAN DO EVERYTHING FROM GPARTED JUST BACKUP YOUR DATA AND UNMOUNT YOUR CARD AND PUT IT IN A CARD READER OR VIA MAGICLDR)
DO NOT COPY ANY FILES OVER TO THE SD CARD YET. Android will have copied over its standard files after formatting so do not delete these, but don't add anything else yet.
WAIT UNTIL EVERYTHING IS LOADED THEN INSERT THE CARD READER OR MOBILE WITH SELECTED MASS STORAGE IN MAGICLOADER THEN IN GPARTED GO ON REFRESH DEVICES OR JUST REFRESH OR CTRL + R WHAT EVER IS SHOWN OR WHICH EVER IS EASIER FOR YOU. iN THE RIGHT UPPER CORNER YOU SHOULD HAVE YOUR PRIMARY HARD DRIVE SELECTED CLICK ON IT AND SELECT YOUR CARD IT SHOULD SAY 2,4,8 OR 16 GB APPROXIMATLY. After that you shuldn't have any problems with your card not detecting or what so ever.
Thanx to milton007 for pointing out this
3. With the SD card now recognised by the PC, reboot your PC from the GPARTED-LIVE CD you burned in step 1. This may take a while to load depending on your PC. Follow the on screen prompts until GPARTED loads correctly.
4. With GPARTED now loaded, select your SD card using the selection in the top right hand side of the GPARTED window. Ensure you have selected the correct storage device by ensuring the capacity is reported correctly. BE VERY CAREFUL NOT TO MES WITH YOUR COMPUTERS HAR DRIVE!! If you are not sure at this stage, please do not proceed as you risk wiping data from your PC. GPARTED will not warn you if you are about to damage system files as you might expect it to.
5. Once selected, you should see a single FAT32 partition displayed with a chart which span the top of the window. The easiest way is to delete all partitions on the card
right click on the partition and delete click yes
Uploaded with ImageShack.us
6. Right click in the unallocated space you created in the chart and click "Create" or new. A new dialog box should appear. First partition will be fat32 and it must be primary into column space after input 1024 because that you will leave for the ext4 partition. Click OK Right click in the unallocated space you created in the chart and click "Create" or new.
Modify the settings so that the partition is "Primary" not "Logical" and set it to "ext4". Leave the cluster size set to "default". Click OK.
Uploaded with ImageShack.us
Uploaded with ImageShack.us
7. Back in the main GPARTED screen, you should now see two partitions in the chart, the first being your original FAT32 partition and then to the right is your new EXT4 partition. Click "APPLY" and the changes will be made to the SD card. THIS IS IMPORTANT as no changes are made to your SD card until you click apply. If you miss this step, you will have to start over from step 6 again.
8. Once changes are reported as completed, shut down your PC and remove the SD card. Insert it into your PC and boot the phone. If you connected your SD to the PC via MAGLDR, press the power/hang up key to return to the main menu and choose to boot from NAND.
DONE!!!!!!!
Once the phone is booted (may take a little longer than usual) go back to SETTINGS - SD & PHONE STORAGE and you should see your phone's available storage reported as around 20-40MB less than the total storage capacity. This will vary between different ROMS. Don't expect it to read any higher than it did before you did this if you haven't installed any apps yet.
Check to see that your SD storage is reported as the correct size corresponding with the new size of your FAT32 partition.
Now go ahead and install your apps. You will notice that the phone storage capacity does decrease as you install apps, but the next time you reboot, it should jump back up again. That's what happens on my phone anyway.
Once you are satisfied that all is well, you can connect your SD to the PC again and copy across your data to the FAT32 partition.
Another thing to note is that you don't need to format the EXT4 partition when changing ROMS. As it only stores the applications, when booting for the first time with a new APPS2SD+ supported ROM, it will automatically show up with all your apps and widgets installed. Preferences and widgets will need to be reset however.
I hope this guide helps. Thanks again to all the amazing developers here at XDA who make all this possible, as well as the wonderful community of volunteers and members who keep this show running.
If i helped you can always press thanks
You say to download gparted from here in step one, there is no link to download from.
AndHD2 said:
You say to download gparted from here in step one, there is no link to download from.
Click to expand...
Click to collapse
He allready said its copy pasted, but i am sure you know how to use Google
Thx to OP, pictures are allways welcome
Sent from my ro.product.model=Desire HD2 using XDA App
You could have simply posted teh screens in the original thread and he would have added them to his OP.
Absolutely no need to clone a topic like this.
I think this is a nice tutorial, if you don't know how to use Linux partitions etc..
The pictures will certainly help.....
im using a nand rom with data.img support
using this method i dont need to have a data.img correct?
also what advantages does this have over data.img?
Can I un-partition my SD card with GPARTED?
Hmm..i followed your guide,but i ran into these problems:
1:couldn't make it a logical partition this option was inactive,until i first created an extended partition then made a logical partition out of that one.
2:At the end of the process i had a FAT32 partition which my main one with all the space,an extended partition with 1gb and the EXT4 partition with the same 1gb from the extended one,but now my SD won't show on my phone anymore,although i could access it from my PC using a Card reader and it shows the new space for the FAT32 partition that i created. any ideas?!
HateSoul said:
Hmm..i followed your guide,but i ran into these problems:
1:couldn't make it a logical partition this option was inactive,until i first created an extended partition then made a logical partition out of that one.
2:At the end of the process i had a FAT32 partition which my main one with all the space,an extended partition with 1gb and the EXT4 partition with the same 1gb from the extended one,but now my SD won't show on my phone anymore,although i could access it from my PC using a Card reader and it shows the new space for the FAT32 partition that i created. any ideas?!
Click to expand...
Click to collapse
Same here. Now under android Total Space and Available Listed as Unavailable. Altought i can still access my fat32 partition from within Android using astro file manager.
How to confirm that i am using ext4 partition?
thanks
+1 it's the exact same for me. are you running a build that support APP2SD?
rizky_p said:
Same here. Now under android Total Space and Available Listed as Unavailable. Altought i can still access my fat32 partition from within Android using astro file manager.
How to confirm that i am using ext4 partition?
thanks
Click to expand...
Click to collapse
little13193 said:
Can I un-partition my SD card with GPARTED?
Click to expand...
Click to collapse
Yup, use step 9. as reference, right click the ext4 partition and instead of create select delete (or remove dunno never used gparted on live cd just ubunutu) then it should appear as unalocatted space, now drag the arrow so that the fat32 partition uses the whole space... other way should be to remove both partitions (fat32 and ext4) and then create a unique fat32 partition in the whole unallocated space....
HateSoul said:
+1 it's the exact same for me. are you running a build that support APP2SD?
Click to expand...
Click to collapse
I supposed it support app2sd.
Well i repartitioned my SDCard once again but this time ext4 partition is created as primary(fat32 also primary) not Extended->Logical partition. Now it shows Total and Available Space correctly instead of unavailable, but still unsure whether Android is using the ext4 parition or not.
I think we will need the OP's point of view on this,at the mean time,why don't you try installing some apps and see if the EXT4 working or not?!
Edit:Oh,and also you download Android Commander it's a Windows application,you can tell if your phone is using EXT4 or not.
rizky_p said:
I supposed it support app2sd.
Well i repartitioned my SDCard once again but this time ext4 partition is created as primary(fat32 also primary) not Extended->Logical partition. Now it shows Total and Available Space correctly instead of unavailable, but still unsure whether Android is using the ext4 parition or not.
Click to expand...
Click to collapse
This doesn't work..
I'm using win 7 x64
1:i can't "reboot from my gparted live cd"
2: if I reboot my system and select boot from cd gparted but I cannot see my sd card
What is the point of posting a guide that doesn't work....
Sent from my LG-P500 using XDA App
once booted from cd do you click the first option, default settings? and what about the key logging or whatever
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any hopes of someone sorting out this failed guide?
How do you get the sdcard to recognize
Sent from my LG-P500 using XDA App
Will it work on gauner1986 ROM?
MysticGenius said:
This doesn't work..
I'm using win 7 x64
1:i can't "reboot from my gparted live cd"
2: if I reboot my system and select boot from cd gparted but I cannot see my sd card
What is the point of posting a guide that doesn't work....
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
LOL, got the same system as yours, guide worked like a charm..maybe it's not guide's fault if you can't get it to work.
MysticGenius said:
Any hopes of someone sorting out this failed guide?
How do you get the sdcard to recognize
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
The same :/ I can't get sdcard to recognize
HateSoul said:
I think we will need the OP's point of view on this,at the mean time,why don't you try installing some apps and see if the EXT4 working or not?!
Edit:Oh,and also you download Android Commander it's a Windows application,you can tell if your phone is using EXT4 or not.
Click to expand...
Click to collapse
shoot under Android Commander it doesnt use the ext partition. it is grayed out..

Help me fix my SD Card

Hi there,
A couple days ago, I had a usb brick. I quickly fixed it, everything got back to normal except for my sd card : I think it's corrupted. Why do I say this ? Because I've got another sd card, and it's working perfectly. I can't get to format it via Gparted. It says the procedure failed, there was an issue and i couldn't format it. In addition, even though it's a 4GB card, it's recognized as a 3gb card.
When I try to use it in recovery mode, it says :
Code:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
But when I use the other card, nothing weird happens.
I'd like you guys to help me repair my SD card.
kev94 said:
Hi there,
A couple days ago, I had a usb brick. I quickly fixed it, everything got back to normal except for my sd card : I think it's corrupted. Why do I say this ? Because I've got another sd card, and it's working perfectly. I can't get to format it via Gparted. It says the procedure failed, there was an issue and i couldn't format it. In addition, even though it's a 4GB card, it's recognized as a 3gb card.
When I try to use it in recovery mode, it says :
Code:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
But when I use the other card, nothing weird happens.
I'd like you guys to help me repair my SD card.
Click to expand...
Click to collapse
Googled and found this: http://www.ehow.com/how_4850280_repair-corrupt-sd-card.html
1. link your desire with pc
2. enter "FASTBOOT Mode", it will display "HBOOT USB PLUG"
3. open dos windows and type adb shell
4. type fastboot oem rebootRUU
5. type fastboot oem enableqxdm 0
and retry
I already tried this, but it didn't work out ! I'm out of ideas...
So it says it's a 3GB card? You had an 1GB Ext partiton before?
If yes, that's where your 1GB's gone.
Recommended is to repartition your card again from scratch - Using Either GParted, EASEUS or MiniTool partiton.
Backup everything from it, then delete all partitions - and re-create them.
davebugyi said:
So it says it's a 3GB card? You had an 1GB Ext partiton before?
If yes, that's where your 1GB's gone.
Recommended is to repartition your card again from scratch - Using Either GParted, EASEUS or MiniTool partiton.
Backup everything from it, then delete all partitions - and re-create them.
Click to expand...
Click to collapse
Actually, it's 3.7 GB and not 4GB (I guess it's normal though). And yes, the missing space was from the ext partition. Thanks god, the first thing I did was a backup of my SD card. Yet, I tried to format the card with Gparted (I'm currently running Ubuntu 10.10) but as I said above the procedure fails.
Then, I formatted in Windows, and I managed to create a 3Gb fat32 partition recognized in Gparted.
But how am I supposed to get my missing space back if this space isn't recognized in Gparted ?
I'm using Ubuntu 11.04 (natty) - and i'm able to mount my EXT partiton of the SD Card.
As I said, don't just format the card, but delete all partitions and re-create them, then format them.
Also, if your card is messed up badly, maybe you have to use the termina with commands to recover the ext partition.
Always format SD cards with the "SD Formatter 3.0" from the SD Association: http://www.sdcard.org/consumers/formatter_3/
This little programs formats the whole card (full capacity, erasing all other partitions) in FAT32 meeting all SD specifications.
Furthermore it alligns the LBA parameters (virtual heads, cylinders etc) and the fat32 parameters with the internal structures of the flash memory (eraseblocks), so that fat32 clusters never overlap eraseblocks. This speeds up write performance (in my case about 50%! ).
There is no better tool to format SD cards.
After that you can resize (But don't move it, just trim the end. The free space in front of the FAT32 partition is part of the alignment) the FAT 32 partition with gparted and generate an ext partition in the free space.
Finally one should run the ext alignment script (it's a zip for recovery mode) from baadnwz homepage (http://www.baadnwz.eu/2011/05/align-your-sdcard-fat-and-ext-partiton_16.html) to align also the ext4 partition to the flash cells.
boot up into android (with any ROM) and go to settings > storage > format SD card
this should restore whole SD as FAT32
funny enough Android could do it, while Gparted could not (gparted didnt see my whole sd, it didnt see the ext partition)
davebugyi said:
I'm using Ubuntu 11.04 (natty) - and i'm able to mount my EXT partiton of the SD Card.
As I said, don't just format the card, but delete all partitions and re-create them, then format them.
Also, if your card is messed up badly, maybe you have to use the termina with commands to recover the ext partition.
Click to expand...
Click to collapse
---> As I said too , Gparted fails to create partitions. It displays a "warning" icon by the sd icon. Unless I'm a fool, I can't get any further there.
hypophysis said:
Always format SD cards with the "SD Formatter 3.0" from the SD Association: http://www.sdcard.org/consumers/formatter_3/
This little programs formats the whole card (full capacity, erasing all other partitions) in FAT32 meeting all SD specifications.
Furthermore it alligns the LBA parameters (virtual heads, cylinders etc) and the fat32 parameters with the internal structures of the flash memory (eraseblocks), so that fat32 clusters never overlap eraseblocks. This speeds up write performance (in my case about 50%! ).
There is no better tool to format SD cards.
After that you can resize (But don't move it, just trim the end. The free space in front of the FAT32 partition is part of the alignment) the FAT 32 partition with gparted and generate an ext partition in the free space.
Finally one should run the ext alignment script (it's a zip for recovery mode) from baadnwz homepage (http://www.baadnwz.eu/2011/05/align-your-sdcard-fat-and-ext-partiton_16.html) to align also the ext4 partition to the flash cells.
Click to expand...
Click to collapse
---> Sounds great and geeky, gonna give it a try tomorrow afternoon (CET +2 here)
dzumagos said:
boot up into android (with any ROM) and go to settings > storage > format SD card
this should restore whole SD as FAT32
funny enough Android could do it, while Gparted could not (gparted didnt see my whole sd, it didnt see the ext partition)
Click to expand...
Click to collapse
---> Yeah, Gparted is a bit lazy here.... Gonna try it if hypophysis's method doesn't work out. I gotta admit this kinda problem is pretty disturbing and pisses me off so much.... Waiting forward to get it over with.
Anyway, thanks a lot for helping me, you're good people here !
Well, I tried hypophysis's method. It formatted successfuly. But as you said, I had to run Gparted again in order to create an Ext partition next to the fat 32 one. But I couldn't --> It says it couldn't find the "first sector" I guess, and it couldn't determine the device specifications, it wasn't able to perform everything he wanted. Actually it recognized the whole sd card, but wasn't able to do anything with it. I couldn't unmount it or mount it....
I'm stuck at square 1 Gonna try to perform dzumagos's method later.

[Q] After deleting smdl2tmp1.asec ...

I recently received "Installation error... Couldn't install on USB storage or SD card", when tried to install some apps from google market.
I looked on google and found out that i need to delete smdl2tmp1.asec.
I deleted it, found it on sdcard/.android_secure... I used disk drive connection type, and found it with my computer.
After starting again SD card, i get "Mounted ReadOnly... The SD card has an unexpected error.... "
How to get back my SD storage to normal !?
Computer won't read anymore SD card (mass storage) when go to disk drive connection type..
I tried to access to SD with card reader, but no success...
ratluci said:
I recently received "Installation error... Couldn't install on USB storage or SD card", when tried to install some apps from google market.
I looked on google and found out that i need to delete smdl2tmp1.asec.
I deleted it, found it on sdcard/.android_secure... I used disk drive connection type, and found it with my computer.
After starting again SD card, i get "Mounted ReadOnly... The SD card has an unexpected error.... "
How to get back my SD storage to normal !?
Computer won't read anymore SD card (mass storage) when go to disk drive connection type..
I tried to access to SD with card reader, but no success...
Click to expand...
Click to collapse
try booting gparted then reformatting it
I started gparted live.
First I made mistake, I was mounted old 1gb mmc card to card reader, and gparted loaded my hard disk (300gb) and card for about 5 min max...
Then i repeated process with my 4gb SD (i'm using adapter BTW), and program needed over 50 min and not finish yet , then i interrupt it.
Numbers on loading was something like 2000.2115 and so on (are those mb? ). Numbers are going fast but i readed something ...I/O error, sector 8 ... and blah blah.. If thats important I'll take a pic of that..
I can't beilieve that my SD is so broken? Am I do it right?
ratluci said:
I started gparted live.
First I made mistake, I was mounted old 1gb mmc card to card reader, and gparted loaded my hard disk (300gb) and card for about 5 min max...
Then i repeated process with my 4gb SD (i'm using adapter BTW), and program needed over 50 min and not finish yet , then i interrupt it.
Numbers on loading was something like 2000.2115 and so on (are those mb? ). Numbers are going fast but i readed something ...I/O error, sector 8 ... and blah blah.. If thats important I'll take a pic of that..
I can't beilieve that my SD is so broken? Am I do it right?
Click to expand...
Click to collapse
Does your phone still see the sd-card in recovery? if it does, try formatting the sd-card from mounts & storage.
If it doesn't see it (YOU NEED S-OFF FOR THIS):
Code:
fastboot oem enableqxdm 0
fastboot oem eraseconfig
If you need help with that look on my guide [13]
If that step lets the phone see the sd-card, format it from recovery. If it doesn't I don't know what else you can do.. SD-Cards usually come with a lifetime warranty so you should get one for free anyway.
My phone see at first time SD-card. Here are pics..
When i have my phone restart without umounting SD, it shows "Mounted ReadOnly"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I can even start some apps, as you see icons..
It's says "Mounted ReadOnly... The SD card has an unexpected error. Tapping.... "
I tap it, and then goes "preparing SD" and after that again "Mounted ReadOnly"
And then i can't browes SD with astro...
Is this all because i deleted smdl2tmp1.asec?
ratluci said:
Is this all because i deleted smdl2tmp1.asec?
Click to expand...
Click to collapse
Really not sure, but I've ran out of ideas other than to get a new sd-card. Sorry mate.
Are you experienced with linux? You can solve your issue with fdisk on a linux livecd..
If you can follow commands on terminal, and understand how to mount and unmount, this blog post can help you. It's about aligning a card manually, but the same steps apply..
But then again, it's not for the faint of heart.
bortak said:
Does your phone still see the sd-card in recovery? if it does, try formatting the sd-card from mounts & storage.
If it doesn't see it (YOU NEED S-OFF FOR THIS):
Code:
fastboot oem enableqxdm 0
fastboot oem eraseconfig
If you need help with that look on my guide [13]
If that step lets the phone see the sd-card, format it from recovery. If it doesn't I don't know what else you can do.. SD-Cards usually come with a lifetime warranty so you should get one for free anyway.
Click to expand...
Click to collapse
I started again gparted live and he passed this time to graphics of software.
Before that, when he loaded SD, text is something like this..
buffer I/O error, dev sdb sector 0 ... yesterday he get to sector 8, when i interrupt it
then ...
skipping mount ..... warning ... and so on...
After showing sofware interface.. Gparted didn't recognize my SD i only have:
Partition file system ... size
dev/sda1 NTFS 122.31 GiB
>dev/sda2 extended 175.78.GiB
dev/sda5 NTFS 175.78.GiB
unallocated unallocated 2.49 MiB
I also started recovery on phone (volume down + power and press recovery!? only that to do!?)
this shows
Android system recovery <3e>
use volume....
.... blah blah
Reboot system now
apply sdcard : update zip
wipe data factory reset
wipe cache partition
E:can't open /cache/recovaery/command
What to press to try formating SD??
Phone is not rooted BTW here is hboot if needed
BRAVO PVT3 SHIP S-off
HBOOT-6.93.1002
MICROP-051d
TOUCH PANEL-SYNT0101
RADIO-5.11.05.27
Aug 10 2010, 17:52:10
Droidzone said:
Are you experienced with linux? You can solve your issue with fdisk on a linux livecd..
If you can follow commands on terminal, and understand how to mount and unmount, this blog post can help you. It's about aligning a card manually, but the same steps apply..
But then again, it's not for the faint of heart.
Click to expand...
Click to collapse
I'm not so good in linux, unfortunatly
What do i need? iso to download , and than boot with that?
flash clockworkmod recovery via fastboot (since you're s-off [yay!]), go to mounts and storage and try to format sd-card
ratluci said:
I'm not so good in linux, unfortunatly
What do i need? iso to download , and than boot with that?
Click to expand...
Click to collapse
Yea..but if you're inexperienced, then you wont proceed much I'm afraid.. It will need a full tutorial to get you through.
Hey guys ! Thanks a lot for your time!
I manage to solve this on most simple way , i lost my data but OK..
SD & phone storage settings (on phone)...
I first tried like that but with no success.
First umount, then format ... format was grey then..
But when i tapped on error (readonly) he let me Unmount and then format.
I just wanna know is because that stupid file smdl2tmp1.asec all this happend!!!??
And what to do when i again get (i dont say that i will ) "Installation error... Couldn't install on USB storage or SD card" ?
thanks ! ! !

Problem partitioning my sd card / low internal memory problem

I have been readin a lot about partitioning sd cards. And my problem is that no matter which rom I use (cyanogen, miui), i have a problem with low internal memory. I have read a lot about partitioning sd card to create ext and swap partitions and that should move the apps to the sd and dalvik cache also so that the internal memory is liberated.
However, I've used s2e, a2sd, data2sd, and they all tell me that my apps or dalvik cache can't be moved to the sd because the space is full. Which I know is not. I have tried partitioning my sd card using rom manager and minitool partition. But for some reason I keep getting this message that I don't have enough space. Actually I know there is something wrong with the sd-ext partition because when I backup any rom, at the end of the backup process it says something like "can't mount sd-ext. won't be able to make backup of sd-ext" (something like that).
I know there is something wrong with my partition. The only thing I have not tried is partitioning using clockworkmod, but I haven't done it because when I go to the advance settings I don't have the option to partition my sd card. I have cwm 5.0.2.7. and the option to partition sd card is simply not there!
Another interesting thing I want to add here is that maybe it's not only a problem with the sd-ext partition. I say this because when I try to move an app to the sd card using the phone aplication manager, it gives me the exact same message: "failed to move the application. There is not enough storage space left". And this is weird because this is supposed to move apps to the fat32 part of the sd, which I know is working normally. I can access all my files, music, photos, etc. And there are like 3 gb of free space, but it still tells me that there is not enough space.
What is wrong with this? Is it the SD card? Or is it the partition?? I would love to try to partition my sd card using CWM, but I don't have that option. How can I get that option to try it??
Any suggestions are greatly appreciated. I can't install more than 7 apps to my phone if I can't fix this low internal memory problem.
Thank you very much!
aerismel said:
I have been readin a lot about partitioning sd cards. And my problem is that no matter which rom I use (cyanogen, miui), i have a problem with low internal memory. I have read a lot about partitioning sd card to create ext and swap partitions and that should move the apps to the sd and dalvik cache also so that the internal memory is liberated.
However, I've used s2e, a2sd, data2sd, and they all tell me that my apps or dalvik cache can't be moved to the sd because the space is full. Which I know is not. I have tried partitioning my sd card using rom manager and minitool partition. But for some reason I keep getting this message that I don't have enough space. Actually I know there is something wrong with the sd-ext partition because when I backup any rom, at the end of the backup process it says something like "can't mount sd-ext. won't be able to make backup of sd-ext" (something like that).
I know there is something wrong with my partition. The only thing I have not tried is partitioning using clockworkmod, but I haven't done it because when I go to the advance settings I don't have the option to partition my sd card. I have cwm 5.0.2.7. and the option to partition sd card is simply not there!
Another interesting thing I want to add here is that maybe it's not only a problem with the sd-ext partition. I say this because when I try to move an app to the sd card using the phone aplication manager, it gives me the exact same message: "failed to move the application. There is not enough storage space left". And this is weird because this is supposed to move apps to the fat32 part of the sd, which I know is working normally. I can access all my files, music, photos, etc. And there are like 3 gb of free space, but it still tells me that there is not enough space.
What is wrong with this? Is it the SD card? Or is it the partition?? I would love to try to partition my sd card using CWM, but I don't have that option. How can I get that option to try it??
Any suggestions are greatly appreciated. I can't install more than 7 apps to my phone if I can't fix this low internal memory problem.
Thank you very much!
Click to expand...
Click to collapse
I think u need ext3 partition if m not wrong...
Haven't read the whole thread...?
Sent from my MB526 using xda premium
I have already tried with ext2, ext3, and ext4. The thing is I can't partition my sd card through recovery mode because I don't even have the option to partition sd card. I have CWM-based Recovery v.5.0.2.7-jordan.
I've partitioned my sd card using rom manager. Maybe that's the problem??? I don't know.
Any suggestions would be greatly appreciated. It should not be this difficult.
Use gparted in linux to delete your current partition table and make new one.
royale1223 said:
Use gparted in linux to delete your current partition table and make new one.
Click to expand...
Click to collapse
Ok, I have burned gparted to a cd, and I have tried to boot from cd. I know I have to go to bios to rearrange the boot order, but the problem is that it has no option to boot from cd drive.
Unless cd boot means the same as external device, which is the only option I have on my BIOS. Here's the image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have enabled external device boot and have placed external device as the priority boot, as seen on the image. But it doesn't make the cd boot. Why is it? Or am I missing something here??
Thank you very much.
huh?
u wanna boot gparted?
its a software used in Linjx distro to partition filesystems!
u can do the same thing on windows by using some other software....
Sent from my MB525 using xda premium
nogoodusername said:
huh?
u wanna boot gparted?
its a software used in Linjx distro to partition filesystems!
u can do the same thing on windows by using some other software....
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
Hmm. Well I read that I needed to burn a cd with gparted and then boot it somehow. I thought that's what it meant. I'm guessing I'm wrong... Sorry, I don't know much about these programs.
EDIT: I'm follwing this thread to partition sd card: http://forum.xda-developers.com/showthread.php?t=535914. I will post the results when I'm done.
Ok. I partitioned my sd using gparted. I couldn't do it by burning a cd with it, but using USB worked.
I partitioned my sd card following the steps mentioned in this thread: http://forum.xda-developers.com/showthread.php?t=535914
My sd card should now be partitioned correctly. If I'm not wrong, my phone should automatically install apps to the sd-ext partition of my sd card right? Well, my phone still doesn't do this. I have tried to move apps to sd, through s2e, and a2sd and still no luck. not even the phone's application manager moves it to the fat32 part of the sd.. I still get the message that there is not enough storage left.
The thing is, I don't really think that my sd is corrupted or something, because whenever I backup my rom, it doesn't give an error at all. I can access my sd card, move and paste files. So, why is it not working well only for apps?
I'd appreciate any other help. Thank you.
UPDATE: I downloaded a newer version of a2sd and it worked, I was able to move apps to the sd-ext part, and the dalvik cache. I solved the original problem, but it now created another problem.
Now that I have installed this app and working, it makes my IMEI number disappear. Therefore, I have no signal and I have to restore my backup to make my phone work again and show my IMEI number again.
So, I have my phone working with my IMEI, without a2sd, or have a2sd, but then I have on signal because it deletes my IMEI.
Is there a way to fix this?? hmmm.. Please help

[Instructions included] Need Internal Partitions (mmcblk0p1 to mmcblk0p5)

I've been trying to partition my External SD card so I can use it for Link2SD. I don't have an SD card reader so I tried using the adb + parted command. I was following this tutorial but then I realised that /dev/block/mmcblk0 was my Internal Storage and not my external SD. I deleted the first 5 partitions on there and my phone isn't charging nor turning on even though it's fully charged. Have I completely broken my phone?
Edit: phone shows up as QHSUSB_BULK in device manager.
Could someone please upload the first 5 partitions as imgs? I'm trying to use Ubuntu to try and replace the partitions I deleted. I'm running 4.16.1540.8 as my firmware and CM12 nightlies.
Use this command to save partitions as imgs on SD.
dd if=/dev/block/mmcblk0p5 of=/sdcard/dump/mfg.img
Just replace the mmc number with 1,2,3,4,5 and the image name to something that lets me know which partition it's on.
Thanks
bump
did you have any joy getting the mmcblk0 and if so can you upload it please

Categories

Resources