Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,053 Members 46,152 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Space on SD card

Tip us?
 
Zenile
Old
(Last edited by Zenile; 26th February 2014 at 07:04 AM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Jan 2014
Default [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!!!
 
sagirfahmid3
Old
#2  
Senior Member
Thanks Meter 23
Posts: 172
Join Date: Jul 2013
Location: New York
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.
Nook Color running CM7 Mirage, no gapps, Nook Tweaks app @ 1.3GHz (+500MHz past stock 0.8GHz)
Nook Tablet running CM10.1.3, no gapps, BexusNv4 kernel @ 1.3GHz (+300MHz x2 past stock 1GHz)
SGS2 T-Mobile (unlocked) running HellyBean 4.2.2, no gapps, @ 1.72GHz (+~200MHz x2 past stock 1.51GHz)
The Following User Says Thank You to sagirfahmid3 For This Useful Post: [ Click to Expand ]
 
mikeataol
Old
(Last edited by mikeataol; 2nd March 2014 at 04:56 PM.)
#3  
Member
Thanks Meter 22
Posts: 82
Join Date: Nov 2013
Quote:
Originally Posted by Zenile View Post
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!!!
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/sho...d.php?t=202660
 
digixmax
Old
(Last edited by digixmax; 2nd March 2014 at 06:40 PM.)
#4  
Senior Member
Thanks Meter 380
Posts: 1,258
Join Date: Jan 2011
Quote:
Originally Posted by mikeataol View Post
...

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/sho...d.php?t=202660
The write-up is also posted on XDA at http://forum.xda-developers.com/show....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.
The Following User Says Thank You to digixmax For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes