[Q] Restore SD card to its original size - Android Q&A, Help & Troubleshooting

In order to recover my Android TV box I've tried to copy a recovery image on to my 16GB SD card using a tool called HDD RAW Copy.
Having not been able to recover my TV box, I also haven't been able to reformat my SD card back to its original size. Windows 7 only reads 3.68GB while its actual size should be ~16GB. I have tried to wipe all of its data and see if there were any hidden partitions. I have used EASEUS Partition Manager for that, but that tool couldn't find any. Formatting the SD card to NTFS didn't make a difference in size either.
I am quite out of ideas. Can anyone help?

tr4v said:
In order to recover my Android TV box I've tried to copy a recovery image on to my 16GB SD card using a tool called HDD RAW Copy.
Having not been able to recover my TV box, I also haven't been able to reformat my SD card back to its original size. Windows 7 only reads 3.68GB while its actual size should be ~16GB. I have tried to wipe all of its data and see if there were any hidden partitions. I have used EASEUS Partition Manager for that, but that tool couldn't find any. Formatting the SD card to NTFS didn't make a difference in size either.
I am quite out of ideas. Can anyone help?
Click to expand...
Click to collapse
Just open a cmd prompt (as Administrator) and give the command diskpart.Then give the following commands:
list disk
This command will print all your connected disks.
select disk {the disk number you see for the device you want to restore}
With this command you select the disk you want to edit.
clean
This command will clean all your partitions on your sdcard.
***Attention: Don't try this command on some other disk by accident / If you are not sure don't try it***
You could give a command like list partition to make sure you are in the correct disk.
Then type:
Code:
create partition primary
format fs=fat32 quick
exit
And you are done!

After doing a CLEAN ALL command the size of the SD card is still 3,69GB.

tr4v said:
After doing a CLEAN ALL command the size of the SD card is still 3,69GB.
Click to expand...
Click to collapse
Try some linux application to clear partition table and recreate the partition.You can download a gparted live cd/dvd if you like.If that doesn't work for you I am afraid your sdcard could be destroyed.
**I assume you are using an adaptor to connect the sdcard to your PC.Don't try ro mount it from recovery.**

Thanks! That did the trick! :good:

Related

[Q] Link2SD CM7 v1.9 hf3 i5500

Sorry if i sound like a noob but can i take advantage of the ext3 partition on my SD using this version of CM?
I partitioned my SD using clockworkmod, which is why it's ext3.
only app i've tried is Link2SD but when i tell it there is an ext3 partition on the card it creates a script and asks me to reboot.
Once that's done and i access the app again it goes through the same motions and informs me that - "if im seeing this message then the partition is unable to be mounted during boot"
Appreciate any help
Here's a quick way to install Link2sd.
I preassume that your device is rooted and your sdcard data is backed up.I think,the mount script didn't work because of inappropriate attributes..Ok heres,how i installed Link2sd...
1.First of all download and install MiniTool Partition Wizard in your windows PC.
Connect your handset to the PC via USB.
2.Launch MiniTool Partition,you should see your SDcard mentioned in the list Under Disk 2 probably.
3.Right click your SDcard mentioned in the list, press "Move/Resize Partition"
4.In the Partition size,allocate bigger chunk of partition for primary partition.This is the partition your phone will access for general purpose.Say you allocate 7GB from your 8GB memory card.
Click OK.
5.Now Under disk 2. you will see and unpartitioned space of about 1GB.This partition will be used by link2sd.You may allocate your sdcard as you may wish.
6.Right click the upartitioned space to create a new partition under "Create As".If a warning popup asks for permission click YES.
7.Under New window Create As,choose "Primary".For File System type choose 'FAT32'.though you may choose among ext3 or ext4,either is supported by link2sd.NTFS is not supported by Link2sd or android OS.For partition size take whole unallocated space.Click on OK
8.Click Apply button<upper left corner in the screen>.
9.Restart your phone.
Again use your Link2sd app to create mount script.Now your app should work fine.
Don't forget to hit THANKS if i helped you.
I would not suggest you to create the Link2sd partition as a FAT32 one: this way when you will connect your phone to a PC through the USB cable Windows will mount all the 2 partitions automatically (with all negative consequences you can imagine); this issue will not happen on Linux, however; while with the Link2sd partition formatted as extX you will be able to use your linked apps while the phone is connected to your PC and the first partition is mounted, it doesn't matter if you are on Linux or Windows (tested )
Regarding your problem: try to tell the Link2sd script activator that your partition is an ext4 and see if it works.. I hope so, anyway let us know..
@brainvision
yeah thanks,extX would be better..bt i think windows doesn't mount two sdcard Fat32 partition at a time.i may be wrong in this term, bt sometime back,when i used to use rooted android 2.1,windows would mount only my 1st primary partition of sdcard..however under ubuntu..both partition would load bt without affecting the phone apps.
thinkfreedom said:
@brainvision
yeah thanks,extX would be better..bt i think windows doesn't mount two sdcard Fat32 partition at a time.i may be wrong in this term, bt sometime back,when i used to use rooted android 2.1,windows would mount only my 1st primary partition of sdcard..however under ubuntu..both partition would load bt without affecting the phone apps.
Click to expand...
Click to collapse
oh sorry I'm not a winZoZZ user since a lot of time!! I'm a slacker now!!
Regarding Linx OS: I set up my Slackware so that it doesn't auto mount external disk, so i can plug in the phone and activate the USB Mass storage without still mounting it: this way I can mount only the first partition; but in a auto-mount situation I fear that the the phone apps would be affected by USB Mass storage activation!

Mounting tf201 to transfer files from Windows in Voyager's 2.6.3 Recovery....

OK so I've tried everything I know. I was on PACMan ROM on the 03102013 version and wanted to try the newest nightly of 28011014. I wanted to do a clean install but I wanted to update my twrp first. I did that through fastboot.
Once I got that all done I tried to install the ROM from my microsd but twrp doesn't recognize it. I tried mounting my tablet to windows to copy ROM to internal storage and was unable to do. What do I need to do to get twrp to recognize both?
Please help as I really would like my tablet back. Thanks!
alias4ever said:
OK so I've tried everything I know. I was on PACMan ROM on the 03102013 version and wanted to try the newest nightly of 28011014. I wanted to do a clean install but I wanted to update my twrp first. I did that through fastboot.
Once I got that all done I tried to install the ROM from my microsd but twrp doesn't recognize it. I tried mounting my tablet to windows to copy ROM to internal storage and was unable to do. What do I need to do to get twrp to recognize both?
Please help as I really would like my tablet back. Thanks!
Click to expand...
Click to collapse
Is it just the sdcard that can't be mounted? Look in mounts in twrp and if you can't mount system, data etc also then you have flashed the wrong twrp for your bootloader.
If you can mount all the others then TWRP doesn't like that sdcard, it has different drivers to the actual OS. Try using a small one if fat32.
If the small fat32 one doesn't work then you can adb push the rom onto the device and install it from there.
flumpster said:
Is it just the sdcard that can't be mounted? Look in mounts in twrp and if you can't mount system, data etc also then you have flashed the wrong twrp for your bootloader.
If you can mount all the others then TWRP doesn't like that sdcard, it has different drivers to the actual OS. Try using a small one if fat32.
If the small fat32 one doesn't work then you can adb push the rom onto the device and install it from there.
Click to expand...
Click to collapse
Thanks for the help. :good: When I got into mounts I have the Select Partitions to Mount:
System
Cache
Data
Micro SDCard
SD-Ext
I am able to check System, Cache, and Data but I can't check Micro or SD-Ext. When I click on the Storage: Internal Storage (27361 MB) on the right it asks to Select Storage and shows Internal or Micro. From here I can't select Micro SDcard.
My card is a 64GB SanDisk Class 10 that I have been using for my Prime for the past 8-10 months. I put the ROM and Gapps on the MicroSD card. It is formatted in FAT32 through Windows.
Edit: How can I get my tablet to show up in Windows so I can transfer the necessary files to my Internal Storage and install them that way? I hear the noise when I plug in my tablet but it will not show up in my Windows. Using Windows 7 64-bit.
alias4ever said:
Thanks for the help. :good: When I got into mounts I have the Select Partitions to Mount:
System
Cache
Data
Micro SDCard
SD-Ext
I am able to check System, Cache, and Data but I can't check Micro or SD-Ext. When I click on the Storage: Internal Storage (27361 MB) on the right it asks to Select Storage and shows Internal or Micro. From here I can't select Micro SDcard.
My card is a 64GB SanDisk Class 10 that I have been using for my Prime for the past 8-10 months. I put the ROM and Gapps on the MicroSD card. It is formatted in FAT32 through Windows.
Edit: How can I get my tablet to show up in Windows so I can transfer the necessary files to my Internal Storage and install them that way? I hear the noise when I plug in my tablet but it will not show up in my Windows. Using Windows 7 64-bit.
Click to expand...
Click to collapse
Some later versions of TWRP had problems with big cards. Try a small one first formatted in fat32.
flumpster said:
Some later versions of TWRP had problems with big cards. Try a small one first formatted in fat32.
Click to expand...
Click to collapse
Would a 32gb be too small as it is the only size I have other than my 64gb as I use it for my phone. Thanks!
I was able to use adb push to get the ROM and GAPPS onto my device. I just went into cmd (command) on my windows and typed in the following:
cd android\sdk\platform-tools (where my adpush was located)
Then typed:
adb push c:\pac_tf201-nightly-20140128.zip /sdcard/ (I put my ROM onto my C: drive
adb push c:\gapps-jb-20130813-signed.zip /sdcard/ for GAPPS.
It worked as I now have both ROM and GAPPS in my Internal Storage. Thank you SO MUCH Flumpster for all your help I really do appreciate it. :good:
Last question will the TWRP 2.6.3.0 Voyager recovery show up my TF201 on Windows so that I can transfer files that way or is that not possible?
alias4ever said:
I was able to use adb push to get the ROM and GAPPS onto my device. I just went into cmd (command) on my windows and typed in the following:
cd android\sdk\platform-tools (where my adpush was located)
Then typed:
adb push c:\pac_tf201-nightly-20140128.zip /sdcard/ (I put my ROM onto my C: drive
adb push c:\gapps-jb-20130813-signed.zip /sdcard/ for GAPPS.
It worked as I now have both ROM and GAPPS in my Internal Storage. Thank you SO MUCH Flumpster for all your help I really do appreciate it. :good:
Last question will the TWRP 2.6.3.0 Voyager recovery show up my TF201 on Windows so that I can transfer files that way or is that not possible?
Click to expand...
Click to collapse
It wont show up like it does when you are in Android but you are still free to use adb to throw files over to any folder like you did with the zips.
If you don't like typing commands there are apps out there to help you. When I just did a quick google I found one I have never seen before but it looks cool.
http://forum.xda-developers.com/showthread.php?t=1057059
If that don't work get another.

[Q] Space on SD card

Hi!
Partitioned my 32GB sdcard, and put CM10.2 on it, but when I check it I have only about 400mb of space or something like that. I had the same amount of space on a 4GB sdcard I used before. Why am I not able to use up the rest of the GB's?! Can someone tell me how to fix it, I don't know if I'm partitioning wrong or doing something wrong, but I want to be able to have lots of extra space for music, apps, etc. Please help! Thanks!!!
I believe you used a low level utility like dd or similar to flash an image onto a partition.
You need to run fsck on that partition, then run resize2fs to expand the ext2/3/4 partition.
Let's say your partition is /dev/block/mmcblk1p1
You would do (in a terminal):
adb reboot recovery
adb shell
# umount /dev/block/mmcblk1p1
# e2fsck /dev/block/mmcblk1p1
# resize2fs /dev/block/mmcblk1p1
After that, your partition will get expanded to whatever size you made it.
It takes a while so be patient. The larger the partition, the longer it will take.
Zenile said:
Hi!
Partitioned my 32GB sdcard, and put CM10.2 on it, but when I check it I have only about 400mb of space or something like that. I had the same amount of space on a 4GB sdcard I used before. Why am I not able to use up the rest of the GB's?! Can someone tell me how to fix it, I don't know if I'm partitioning wrong or doing something wrong, but I want to be able to have lots of extra space for music, apps, etc. Please help! Thanks!!!
Click to expand...
Click to collapse
if you got a prebaked image of a bootable cm card from somewhere, then it usually has 4 partitions on it that were set to the sizes the author of the card specified.
/boot
/system
/data
/sdcard
You would need to put the card in a PC, and use a disk partitioning utility to resize the partitions
some of the images include additional flash files that you install to expand the card's partitions for you. (succulent's), but
you have to do it as you install for the first time.
I prefer to build the card empty first, and load the boot files and zips manually.
linux tools like gparted, Parted Magic , booting from a live USB or CD work pretty well.
Windows based ones like Easus Partition master, or Paragon, not so good.
Mini Tool partition wizard (windows/free) sometimes works
this looks to be a decent write up
http://www.mobileread.com/forums/showthread.php?t=202660
mikeataol said:
...
I prefer to build the card empty first, and load the boot files and zips manually.
linux tools like gparted, Parted Magic , booting from a live USB or CD work pretty well.
Windows based ones like Easus Partition master, or Paragon, not so good.
Mini Tool partition wizard (windows/free) sometimes works
this looks to be a decent write up
http://www.mobileread.com/forums/showthread.php?t=202660
Click to expand...
Click to collapse
The write-up is also posted on XDA at http://forum.xda-developers.com/showthread.php?t=2098419. It was written back in the days of CM10.1, so to use it for CM10.2 or CM11:
Obtain the boot files: MLO, u-boot.bin, and flashing_boot.img -- as well as the files boot.img and recovery.img, from the /boot partition of the pre-made SD CM image. Make sure that MLO is the first file to copy to the freshly made /boot partition.
Substitute in the appropriate ROM and Gapps zip files corresponding to the particular CM build of interest.

[Q] Recover ext2 files

I wanted to extend my ext2 folder to 4GB so I used ext2explore to copy all the files in it to my PC. Then I used TWRP and extended the partition.
My problem is that the paste action of the program doesn't work.
So maybe I could mount a Linux live disk and such but I guess there 's an easier path?
I copied my previous ext2 partition files to a folder in SD fat32, but where can i find the ext2 partition in android so as to paste there?
Or maybe is there another way around?
chillo71 said:
I wanted to extend my ext2 folder to 4GB so I used ext2explore to copy all the files in it to my PC. Then I used TWRP and extended the partition.
My problem is that the paste action of the program doesn't work.
So maybe I could mount a Linux live disk and such but I guess there 's an easier path?
I copied my previous ext2 partition files to a folder in SD fat32, but where can i find the ext2 partition in android so as to paste there?
Or maybe is there another way around?
Click to expand...
Click to collapse
well, after trying a bunch of programs to read/write ext2 from windows, Paragon ExtFS for Windows did the mack them all trick!
I was almost sure I have messed up with file permissions after all these and yes I got a "System UIDs Inconsistent" error.
Happily TWRP fixed that, so I am in Android again! I guess...
Thanks for the good vibes and may the force be with us all!

[Guide][Z7 MINI][ROOT]How to repartition your SD and give oxygen to your Nubia!

Hello
The following guide will explain how to free your File System root partition by moving most of your apps/games to a new partition on your external SD Card.
I recommend to use at least a Class-10 SD-HC SD Card.
I've checked the following on my ZTE Nubia Z7 Mini, but AFAIK it should be working with all Z7's versions.
(please report if you can... )
IMPORTANT!
NEVER use custom TWRP recovery ver 2.8.1 (maybe 2.8.0.... latest 2.8.3) for re-partition microSD card in this phone!
When you try to perform this operation will be erase INTERNAL phone memory instead mircoSD, GPT partition table will be damaged and your's device turn into a Hard brick.
If you have not made a backup EFS+NV of your device, it may happen that it is impossible to recover and it will turn into iPods
Thank you @Harwest
1. Backup your 64gb SD card to PC.
2. Via PC - use MiniTool Partition Wizard to create 2 partitions on your SD card.
one partition should be formatted as exFat and will be your data partition (and so will be the largest!)
second directory should be EXT4 and will be your new system partition (all apps will be installed to this partition-will see that later)
my settings are - 54gb for exFAT partition 1, and the rest for the EXT4 partition.
3. after you've done all partitioning etc, insert the SD card to your phone.
4. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD
5. restart your phone.
6. Install "Link2SD" from Google Play.
7. when you first open the App, it will ask you which type of 2nd partition you have, choose EXT4, afterwards restart phone (it will ask you to do so).
8. open Link2SD and filter the list by "ON INTERNAL" and start moving applications by choosing the app you want to move and choose "Create Link". now make sure you check all 3 checkboxes (or 4 if you have the paid version on L2SD).
you'll see that your original system partition is getting bigger! that's all
Enjoy!
Thank for this info
tnx for the info.
i used a slightly different approach:
1. repartion the internal sdcard. (enlarged the 'userdata' partition to 11.7GB, shrunk the 'grow' (internal storage) partition to 1GB).
2. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD (== external sdcard)
so apps have 11.7GB, external storage is the full size of de sdcard (here 64GB).
done.
---
Per request a tutorial:
WARNING: DANGEROUS.
you can brick your device!
I do not know if this tutorial works with a rom other than stock (or stock based; i.e.: cuoco92). Because of the built in option to set external sd as primary storage. The partition tool should work on all z7 mini and z7 max.
What will this tutorial do?
Repartition tool:
it will :
backup your partitions (in a backup folder).
change the 'userdata' partition size to the given value
change the 'storage' (called: 'grow') partition (internal sd / sdcard0) to the size left on the internal sd.
i.e.: default 'userdata' = 2GB, 'storage' = 10GB, total 12GB. When giving 11GB to the repartition tool the new layout will be: 'userdata' 11GB, 'storage' 1GB, total 12GB.​
Change primary storage in ROM:
The setting 'change primary storage to SD card will change symlinks in the rom from /storage/sdcard0 to /storage/sdcard1. Result is that every app in the rom thinks sdcard1 is sdcard0.
I do not know if other roms (i.e.: Mokee / CM11) have this built in option.
The tutorial:
Preparations:
MAKE A BACKUP OF EVERYTHING AND COPY TO A COMPUTER (or external SD).
Internal storage will be backuped by the tool (and restored). But for performance empty it.
external storage will not be emptied (make a backup to be safe).
clean install is highly recommended, but not necessary.
installed rom will NOT be wiped. You can boot normally after the procedure.
CWM recovery mandatory.
adb access to the phone (so install drivers etc).
Step1: Using the resize tool (resizeZ7_1024.Rayures.v01.zip):
Repartition Internal SD (z7 Mini and z7 Max):
reboot phone to recovery
i.e.: "adb reboot recovery"​
unzip the zip
run RUN.bat
or: open 'command window' in the folder and run RUN.bat​
select 1 (backup - delete - rebuild)
give size for 'userdata' partition
(Z7 mini: max = 11GB). 12GB gives no usable partition. 1GB internal data partition left, which i think is needed​
done
notes:
just always use the 1 option and MAKE SURE the backup has been created! When the backup is missing or broken you WILL brick.
this thread also has a lot about the partition tool, use the search.
Step2: Set external SD as primary
Boot phone.
Go to: Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD
reboot phone
done
The tool: resizeZ7_1024.Rayures.v01.zip (5.48 MB):
original from official nubia forum:
http://bbs.nubia.cn/
my changes:
-translated to English
-enhanced recognition of phone model
-added a 'partition info' option (to see the current partition layout)
tnx to:
-all the xda people who already used the tool in: <thread>
-original dev of the tool
Have an addition to this tutorial ? please do so via PM.
rayures said:
tnx for the info.
i used a slightly different approach:
1. repartion the internal sdcard. (enlarged the 'userdata' partition to 11.7GB, shrunk the 'grow' (internal storage) partition to 1GB).
2. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD (== external sdcard)
so apps have 11.7GB, external storage is the full size of de sdcard (here 64GB).
done.
Click to expand...
Click to collapse
Yea, I know that way , but I think it's more risky than my method...
repartitioning your internal memory can cause some trouble later on upgrades etc...
but thanks anyway, If you can, post a detailed guide so people can use your method also. :good:
Hi guys!
NEVER use custom TWRP recovery ver 2.8.1 (maybe 2.8.0.... latest 2.8.3) for re-partition microSD card in this phone!
When you try to perform this operation will be erase INTERNAL phone memory instead mircoSD, GPT partition table will be damaged and your's device turn into a Hard brick.
If you have not made a backup EFS+NV of your device, it may happen that it is impossible to recover and it will turn into iPods
Best way for repartitioning Nubia Z7 mini?
OK, but which is the best and most save way for repartitioning Nubia Z7 mini? Which custom ROMs are compatible with this mod and advisable? Thanks for your help!
tie-fighter said:
OK, but which is the best and most save way for repartitioning Nubia Z7 mini? Which custom ROMs are compatible with this mod and advisable? Thanks for your help!
Click to expand...
Click to collapse
Best & safe method for repartition microSD card:
Use a laptop/computer with a card reader and software like as "MiniTool Partition Wizard Home Edition" (freeware) http://www.partitionwizard.com/free-partition-manager.html
Insert to cardreader with your's sdcard, run "Partition Wizard", select existing partition on sdcard and press "Resize/Move".
Resize partition so that the end is left free space volume approx 1....2....3Gb (as you wish).
After that select free space and press "Create", create new primary partition, format EXT2 or EXT3.
Press "Apply" for start all process.
Resize procedure of existing partition is safe, nothing is lost. But just in case you can pray, drink or smoke:laugh:
Im struggling with this, although seems easier, i think I am doing something wrong.
fbloise said:
Im struggling with this, although seems easier, i think I am doing something wrong.
Click to expand...
Click to collapse
you don't need to struggle..
Just do the safe method on post #1, follow exactly the steps I wrote and you'll be OK.
if you have any specific question please post it here. :good:
I've used the ripartition method wit an EXT4 and a exFat on my 32 gb memory.
Link2SD goes very well also with the CM12 rom.
Just few questions ...
1 - Should I format the entire system for a clean reinstall of the ROM, what would happened to the programs in ext4 partition? Should I've to re-install them or they remain stored or should I do some other action?
2 - If I'll change memory ... I've to copy the program with linux, right?
lelepanz said:
I've used the ripartition method wit an EXT4 and a exFat on my 32 gb memory.
Link2SD goes very well also with the CM12 rom.
Just few questions ...
1 - Should I format the entire system for a clean reinstall of the ROM, what would happened to the programs in ext4 partition? Should I've to re-install them or they remain stored or should I do some other action?
2 - If I'll change memory ... I've to copy the program with linux, right?
Click to expand...
Click to collapse
1. I think the best way is to use MODACO titanium backup and after rom is replaced, to restore the apps.
other method is to use Link2SD to move the apps back to phone memory (not all of them..) and then use TB same as above...
2. you can just use any partition manager software in order to copy the partitions as it. try to use Gparted live, I think it's the most clean way..
please report back what was working best for you
thanks!

Categories

Resources