I'm having some problems with partitioning my new 16GB microSD card for use with apps2SD. The problem seems to be that any partition past the first fat32 partition comes out inevitably messed up.
What I did first is use dd on a ubuntu system to image my old 8GB SD card and write the image to the new one. I figured I could maybe resize the FAT32 partition and move the ext2 and swap ones up (I'm not really sure whether or not the swap partition is useful, but that's irrelevant). Problem is, gparted did not seem to recognize the two partitions past the fat32 one. This meant that I couldn't do anything with them. For the record, the partitions on the 8GB card work fine and even mount automagically on the same system.
So what I did next is try to partition the card with gparted, with one huge fat32 partition, one ext2 the same size as the one on my old card, and the swap. This resulted in a similar situation to that I encountered earlier - gparted had no idea what the last two partitions were. The phone seemed to think that the card was blank (I do not recall the exact notification text right now but it was something to that effect). I even tried imaging the old partition 2 and writing it directly over the new partition 2. Pretty sure that wouldn't have worked anyway and so it didn't.
I tried writing zeros to the entire card to be damn sure. I booted the phone into recovery (I'm running Amon_RA's recovery 1.6.2), and ran parted on the phone. I did mklabel msdos, then tried mkpartfs. The first partition went up ok, but once I tried making the ext2 one, my parted crashed. It spat out "Error: Invalid superblock. Are you sure this is an ext2 file system?" followed by lengthy text along the lines of "You found a bug in Parted here's how you report it," followed by "Error: SEGV_MAPERR (Address not mapped to object). Aborted."
So, I'm pretty sure my card is a dud. I'm posting this here in case I'm missing something obvious and someone can point that out. Also, I'm running CM 5.0.7.
the problem is that you have a fake sd card
Related
It started with I repartitioned it using the Aman RA recovery "Part SD: fat32+ext2+swap" and flashed a Hero ROM. It worked fine. When I wiped and restored CM 4.1.999 (nandroid) I couldn't get to any of my programs or anything else on the SD Card. After some wiping and some trial and error I said screw it and re-formatted (via Windows) and re-partitioned my card via recovery. Again, I couldn't access any of my programs or the card.
I can format the card as one 7.x GB partition and it seems to be OK, but when I try to partition into fat23+ext2+swap via recovery (or any combination of more than one partition using Paragon Partition Manager) it is rendered unusable. If I re-mount it to my computer I get that the drive is not formatted.
If I format it it to one partition and then try to create multiple partitions via Paragon I get "A new partition cannot be created on this hard disk. Most probably, all primary slots are occupied and there is no extended partition."
Any ideas?
nolageek said:
It started with I repartitioned it using the Aman RA recovery "Part SD: fat32+ext2+swap" and flashed a Hero ROM. It worked fine. When I wiped and restored CM 4.1.999 (nandroid) I couldn't get to any of my programs or anything else on the SD Card. After some wiping and some trial and error I said screw it and re-formatted (via Windows) and re-partitioned my card via recovery. Again, I couldn't access any of my programs or the card.
I can format the card as one 7.x GB partition and it seems to be OK, but when I try to partition into fat23+ext2+swap via recovery (or any combination of more than one partition using Paragon Partition Manager) it is rendered unusable. If I re-mount it to my computer I get that the drive is not formatted.
If I format it it to one partition and then try to create multiple partitions via Paragon I get "A new partition cannot be created on this hard disk. Most probably, all primary slots are occupied and there is no extended partition."
Any ideas?
Click to expand...
Click to collapse
I just recovered mine from this the other day...when I went into parted it was not showing the label of "primary" which was signifying it was not actually an initialized partition....even though I told it mkpartfs primary fat32 and put the parameters for it...
My fix was to use my Mac and format it to FAT standard (not FAT32) which allowed it to be seen in my Vista machine downstairs....when I insert it asked to format and I said no (as it would only format 200MB and leave the other 7.6GB unusable) and went into Manage under My Computer (right click, choose Manage) then went down and right clicked the SDHC card and chose to format it to FAT32..which it did.
Put the memory card back in the phone, went back to parted and redid my partitions and they showed the "primary" label as they should...took card out of the phone, put back in the Mac and copied over the zip I wanted to flash to the FAT32...put back in the phone and flashed with Amun-RA 1.2.3
why dont you partition using gparted on the G1? try formatting it within windows first, and then using the gparted method. it may work, may just have been a bad format/partition the first time.
palosjr said:
why dont you partition using gparted on the G1? try formatting it within windows first, and then using the gparted method. it may work, may just have been a bad format/partition the first time.
Click to expand...
Click to collapse
I've used sdpart in the recovery. I thought that used gparted?
I also had this problem with Paragon, I formatted the card and partitioned using gparted boot cd. Works great now.
If I use gparted to shrink the p4 partition to 6gb (so the whole cards
partitions are < 8gb and dd the updated card to a file, then back to
to an 8gb card that should work, right? I know the restore will run
out of card to write to but the actual image is only ~8gb so it fits.
If I can successfully access the p4 vfat (/sdcard) it worked, right?
I'm hopeful the boot block / partition table will then reflect a real
size of ~8gb.
Sounds like it's worth trying. If it won't boot you can try to get to the individual partitions. fdisk -ul will tell you where they're at in sectors.
[Solved]
Ended up rebuilding up from the provided 2gb card image.
It seems down sizing doesn't work, but upsizing does .
I also did the build.prop change to support the netflix app.
Everything is working as expected.
Hi all,
One question:
Can it be, that with some SD-cards the creation of an ext partition is not possible?
I've got a sandisc 32GB card in my HTC HD2.
I formatted it in an external reader under XP using 'card formatter' in fat32.
Then I used partition manager to create one big fat32 partition, cluster size 4096 an a small, 1GB ext4 partition, same cluster size. Both are set to primary, first is fat, second is ext.
It doesn't matter, if I choose ext2, 3 or 4, as soon as I insert the card in my phone, the ext partition is not seen by it...
Using Titanium Backup, the ext partition should show up...
Under XP, in partition manager, everything works out smooth and both partitions show up fine.
Thank you for your suggestions!
jollmo said:
Hi all,
One question:
Can it be, that with some SD-cards the creation of an ext partition is not possible?
I've got a sandisc 32GB card in my HTC HD2.
I formatted it in an external reader under XP using 'card formatter' in fat32.
Then I used partition manager to create one big fat32 partition, cluster size 4096 an a small, 1GB ext4 partition, same cluster size. Both are set to primary, first is fat, second is ext.
It doesn't matter, if I choose ext2, 3 or 4, as soon as I insert the card in my phone, the ext partition is not seen by it...
Using Titanium Backup, the ext partition should show up...
Under XP, in partition manager, everything works out smooth and both partitions show up fine.
Thank you for your suggestions!
Click to expand...
Click to collapse
what do you mean when you say ext partition is not seen by phone?
When you open titanium backup, in the lower part of the window, it shows:
System-ROM: 'size(free)'
Intern: 'size(free)'
SD-card: 'size(free)'
and then there should be ext?: 'size(free)'
but it doesn't show up...
jollmo said:
Hi all,
One question:
Can it be, that with some SD-cards the creation of an ext partition is not possible?
I've got a sandisc 32GB card in my HTC HD2.
I formatted it in an external reader under XP using 'card formatter' in fat32.
Then I used partition manager to create one big fat32 partition, cluster size 4096 an a small, 1GB ext4 partition, same cluster size. Both are set to primary, first is fat, second is ext.
It doesn't matter, if I choose ext2, 3 or 4, as soon as I insert the card in my phone, the ext partition is not seen by it...
Using Titanium Backup, the ext partition should show up...
Under XP, in partition manager, everything works out smooth and both partitions show up fine.
Thank you for your suggestions!
Click to expand...
Click to collapse
Format the SD-card using CWR (P.s. everything gets deleted on the SD-card)
in CWR, the card gets formattedd, but no ext partition comes up
I tried several times, but checking in my cardreader, there is no ext partition
I read and tried already so many tutorials and howtos from xda and other forums, that for now, I'm a bit confused...
Some of them say, the ext partition has to be the first, and others say, it has to be the second...
But all point out, both have to be primary and clustersize should be 4k...
So I start to think, maybe its because the card is too big?
All reports refer to cards smaller than 32GB...
what rom are you using ?
[OCT16] AmeriCanAndroid AOSP HD2 GB2.3.7 CM7 | bk2sdext [KERNEL:ACA823]
thats an SD build isnt it? i dont think the ext partition works on sd builds but i could be wrong
an ext partitoin is used on nand builds, what exactly are you needing the ext partion for?
no, its a NAND-build, runs on clk...
I was running it from SD for over half a year and switched to NAND-version mid september...
From that time on I tried to get the ext stuff running, by reading and trying, but now I decided to ask
Weird.. I stick my SD-card in a computer and remove all partitions leaving it blank. Then CWR-partition it. Has worked for me all the time..
Can you try with a smaller card??
For me its weird too, I briefly followed every tutorial I've seen so far, moving the ext partition from the beginning to the end, trying different cluster sizes...
Thats why I ask if it might be the size of the card, everything else is working fine.
I've got a 2GB card lying around somewhere I'll try to find it and see if that one works.
One thing, thats making it a pain in the a.. to try again and again is, that in the meantime I've got about 16GB of music on my card, which is taking some time to copy everything back
Ok, just to end this:
I managed, to get it to work.
I didn't change anything in my setup, but after downloading Link2SD from the market, my ext4 partition is recognised and working
It's still not recognised by TB or other skripts, but thats ok for me, as long as I can use it...
Hi! Successfully rooted my Nook ST using Nook Manager, except I used a 32 GB micro SD card to do the rooting. After rooting, I ended up with two partitions on the SD card, Nook (239 MB) and Nook Manager (62.9 MB). I was wondering what I need to do to be able to utilize the rest of the space on the card? The reason I bought a 32 GB card was so I could store all my sideloaded books there, and now I find I'm just limited to the space/partitions showing up when I connect the nook via USB.
You need to repartition your card.
Partition Magic can do that.
If you want to use multiple partitions on the SD card (like 2 x 16 GB) you might want to look at:
http://forum.xda-developers.com/showthread.php?t=2184495
Renate NST said:
You need to repartition your card.
Partition Magic can do that.
If you want to use multiple partitions on the SD card (like 2 x 16 GB) you might want to look at:
http://forum.xda-developers.com/showthread.php?t=2184495
Click to expand...
Click to collapse
Thanks, will download a copy of Partition Magic later. I really am completely clueless when it comes to programming though. In fact, I'm only here because the folks at mobileread told me I'd probably have better luck having my question/s answered here than there. So just to confirm, I can repartition the drive using partition magic so I'll have one extra partition for the books I want to sideload, and I'm good to go already when I re-insert the SD card into the Nook? Or do I have to attempt the code that you gave in the thread you linked?
If you want to have a single FAT partition on your SD card you can do that without much change.
It comes down to whether you want to be able to pull the SD card and plug it into random desktops and things.
If you want to have multiple partitions or ext3 partitions you will have to use the new vold in the link above.
if used windows 7,8. Insert a memory card into the card reader. Go to cmd(administrator mode) and run command:
Diskpart
List Disk
Select Disk 1 (#select sdcard)
clean (#clean partition sdcard)
create partition primary
active
format fs=fat32 quick
assign (#run command if not view sdcard in mycomputer )
Renate, I tried to repartition my SD card, but got a "disk is not formatted, do you want to format it now?" message. So I had no choice but to do a data recovery using EaseUs Partition Master first, then went ahead and clicked format now. Then I tried using Minitool Partition Wizard (couldn't find a free version of Partition Magic) to create new partitions in the formatted SD card so that the NookManager partition would be larger (27 GB) while the NookBackup partition would be 2 GB. Except that I can't seem to create any new partitions at all. And I also have no idea how to restore the data I'd backed up earlier either.
Sorry, I missed seeing this come up when you posted it.
When your Nook asks you if you want to format you should say "No!".
It could be that it misidentified the situation.
In any case, you want to look closer before formatting anything.
Here's a gotcha.
If you are using ext3 and the internal clock has reset itself then the last mount will be in the future.
That makes things angry. Check that the date/time on the Nook is correct.
You can use gparted to give the card the partition layout you need (i.e. first NookManager partition is big, second NookBackup partition is only large enough to hold a backup), then write the first partition from NookManager.img into first partition of the card (you need to do something roughly similar to this. Then you can use gparted to set the "boot" flag on the first partition and use the card to backup&root your Nook. Then remove the "boot" flag, and keep using the card for storage (it's a bit messy to have both user&app files AND NookManager boot files in the same place, but if you only have one card, then this is inevitable - i haven't found a way to mount the second or the third partitions from the card). The card will act as normal storage device when flag is not set, and as NookManager bootable card when flag is set.
I have had a 64Gb sd card from the beginning with my Note 3 but for some strange reason now it says it's only a 64Mb card and won't let me save anymore to it. I tried to clean it up and copy all to my laptop but it wouldn't let me copy the twrp.img file. I was going to re-format it on my laptop but didn't because it only offered me a 15Mb formatting. Anyone else have issues with their SD Card? Any advice would be helpful.
Thanks,
GoNavyMike
Native Windows formatting seems to be fussy when it finds pre-existing formatting information on SD cards especially if they are not recognized as having a Windows heritage; in many of those cases it will simply honor the information it finds, offering to format only the first partition rather than re-writing the partition table.
If I have a SDcard which has previously been partitioned, has a non-Windows MBR on it, or any strange partition ID values, I typically will write zeros to the beginning of the raw device before letting windows take a whack at formatting it.
e.g. in Linux/Unix (in a root shell)
# dd bs=512 count=16384 if=/dev/zero of=your-raw-device-name
You need to be extremely careful verifying the raw device name is really and truly the SD card and not (say) your primary boot media. You don't want to write zeros to your boot media!
For example, after plugging in an SD Card to a Linux machine (or transferring control of the USB device to a Linux guest Virtual Machine), I will usually do something like:
# dmesg | tail -20
to find out that the recently attached raw devices is /dev/sdc or /dev/hdb or similar.
On your phone, the SD Card raw device is probably /dev/block/mmcblk1 (note "1", NOT ZERO) BE CAREFUL!
It goes without saying that you should back up whatever you want saved off your SD card to begin with.
Now, in terms of *why* this happened, that's a bit of a mystery. Did you use this card with the "samsung_unlock_n3" method? If so, that would have written a more advanced partitioning format onto the card called "UEFI GPT". There is still a MBR in this case, but it is called a "protective MBR" as it has information in it that would prevent primitive OSes ( like Windows, ) from smashing the GPT table that follows.
But even that would have put information on the card that indicated a total size of 32GB, not 64 MB.
If you want to figure out what happened, you can look at the SD card (raw device) under linux using "fdisk" - if you see a partition type such as 'ee' (EFI GPT), then somehow a GPT partition table got written to the device. If that is the case, using a more modern tool that knows about GPT is necessary. Something like (Linux) "parted" or "gparted".
All of these sorts of things can in principle be accomplished under windows, but mostly by finding 3rd party utility programs . The open source GParted project uses a bootable mini-linux distro to do this.
good luck
GoNavyMike said:
I have had a 64Gb sd card from the beginning with my Note 3 but for some strange reason now it says it's only a 64Mb card and won't let me save anymore to it. I tried to clean it up and copy all to my laptop but it wouldn't let me copy the twrp.img file. I was going to re-format it on my laptop but didn't because it only offered me a 15Mb formatting. Anyone else have issues with their SD Card? Any advice would be helpful.
Thanks,
GoNavyMike
Click to expand...
Click to collapse
It happened to me also. Two times, with brand new SD cards. I took them back to where I bought them and exchanged them.
Sent from my rooted/ unlocked- Verizon Note 3 ©®™
GoNavyMike said:
I have had a 64Gb sd card from the beginning with my Note 3 but for some strange reason now it says it's only a 64Mb card and won't let me save anymore to it. I tried to clean it up and copy all to my laptop but it wouldn't let me copy the twrp.img file. I was going to re-format it on my laptop but didn't because it only offered me a 15Mb formatting. Anyone else have issues with their SD Card? Any advice would be helpful.
Click to expand...
Click to collapse
Almost the exact thing happened to me. My 32gb card registered as 59mb. I believe this happened when unlocking the boot loader or letting my first run of TWRP do as it asked. The solution for me was to reformat the sd card from my vzw note 2. I lost all my previously stored contents, but reclaimed my sd card's storage. I only hope your solution is as simple. Good luck. (edit: meant to type VZW Note 3)
xenoxphse said:
Almost the exact thing happened to me. My 32gb card registered as 59mb. I believe this happened when unlocking the boot loader or letting my first run of TWRP do as it asked. The solution for me was to reformat the sd card from my vzw note 2. I lost all my previously stored contents, but reclaimed my sd card's storage. I only hope your solution is as simple. Good luck.
Click to expand...
Click to collapse
The same thing happened to me. I had to reformat on my computer. It was a simple fix thankfully.
Sent from my SM-N900V using Tapatalk
I tried that too but it didn't work. I had a 16 gig memory card and it formatted it down to 16 megabytes, 18 megabytes I'm not sure.. But the computer wouldn't not reformat it.
Sent from my rooted/ unlocked- Verizon Note 3 ©®™
https://www.google.com/url?sa=t&sou...FwiYwP0NTDxcIS40w&sig2=gI928LQbHaXOvsG3wVsV7Q
Just use this .. Its the best
Sent from my SM-N900V using XDA-Developers mobile app
I have the same problem. In the last 2 weeks I have lost 2 sd cards. Without using them, I get a pop up saying DAMAGED SD CARD. Reformat and lost all data. I have not had this problem before but started after I unlocked the the boot loader.
Wonder if those unlock files are active in the root directory.