[Q] SD wrong size ...

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
I have a 2GB card in my NC, and it's only showing 1.00GB size on the NC.

When I plug it into the computer over USB, it shows only 1.00GB.

When I pull the card and put it in the computer using the builtin card reader, it shows 2GB as it should.

What gives?

I have a new card on the way, 32GB, don't want to wind up with the same issue. Help?
 

gallahad2000

Senior Member
Jul 9, 2009
542
86
0
?s
1. did you use it to nooter/install CWM? Some of the SD card CWM installers reformat the sd card to 1gb
Use easus partition to format the entire SD card and fix this...

2. did you get it off ebay? some people have reported getting fake cards there (where the actual capacity of the card is less than reported) though typically they can get it to fake the higher capacity until you write to it above its actual capacity.
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
I formatted it to 2GB in my computer. I can put the card directly into my computer and write 2GB on it. The problem with the card only occurs when it is in the NC.

??
 

gallahad2000

Senior Member
Jul 9, 2009
542
86
0
and with file explorer can you see the 2gb of files on the sd when it's in the NC?
what happens when you connect to the NC as a flash drive? can you see the 2gb of files then? Do you also see your media partition?

The nook color internal memory has two partitions. A system partition and a media partition that you can connect to over usb. Some versions of Nook color had the media partition formatted to be 1gb.
 
Last edited:

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
and with file explorer can you see the 2gb of files on the sd when it's in the NC?
what happens when you connect to the NC as a flash drive? can you see the 2gb of files then? Do you also see your media directory?

The nook color has two partitions. A system partition and a media partition that you can connect to over usb. Some versions of Nook color had the media partition formatted to be 1gb.


1.00 Gb according to the NC.

As I said, when I connect the NC to the computer over USB it also appears as 1 gb. When I remove the card and put it directly into the computer it is 2 gb.

There is no media directory.

It appears the NC doesn't correctly recognize the card.
 

Attachments

votinh

Senior Member
Jul 6, 2011
2,340
449
0
Some things don't look right in there, in your posted image.
You got Internal storage of 5.09GB (it is the first weird one), then you got Additional storage (/mnt/emmc) of 1.86GB (it is another weird one).
Normally, we have either
1. old scheme: 1GB /data, 5GB /media
2. new scheme: 5GB /data, 1GB /media
3. custom scheme: 1.96GB /data, 4+GB /media.

Yours doesn't look right.
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
Some things don't look right in there, in your posted image.
You got Internal storage of 5.09GB (it is the first weird one), then you got Additional storage (/mnt/emmc) of 1.86GB (it is another weird one).
Normally, we have either
1. old scheme: 1GB /data, 5GB /media
2. new scheme: 5GB /data, 1GB /media
3. custom scheme: 1.96GB /data, 4+GB /media.

Yours doesn't look right.
Well I just did the normal install of cm 7.10 stable and no partitioning. However my problem is the SD. I am not particularly worried about the internal flash partitioning.

Any ideas why I can't use more than 1gb of SD? I have a 32gb SD card arriving today. I really would like to get to the bottom of this.
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
There is no /media partition mounted on my nook color.

$ export PATH=/data/local/bin:$PATH
$ mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mmcblk0p2 on /rom type vfat (rw,noatime,nodiratime,uid=1000,gid=1000,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/block/mmcblk0p5 on /system type ext4 (ro,relatime,barrier=1,data=ordered)
/dev/block/mmcblk0p6 on /data type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,relatime)
/dev/block/vold/179:8 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:8 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
/dev/block/vold/179:17 on /mnt/emmc type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/dm-0 on /mnt/asec/pl.idreams.jellydefense-1 type vfat (ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/dm-1 on /mnt/asec/com.devolver.sska-2 type vfat (ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
$ mount |grep media
$cd /media
cd: can't cd to /media
$
 

skeeterpro

Senior Member
Jan 8, 2011
974
148
0
Iowa
Well I just did the normal install of cm 7.10 stable and no partitioning. However my problem is the SD. I am not particularly worried about the internal flash partitioning.

Any ideas why I can't use more than 1gb of SD? I have a 32gb SD card arriving today. I really would like to get to the bottom of this.
Just a stab in the dark but I have found most of my issues with uSD (and quality brands such as SanDisc) cards have gone back to how the card was formatted. I now never format in the device, nor do I use Windows to format. I've mentioned this before but it bears mentioning again, this free utility has never failed giving me a good intact format on cards of sizes 1G to 32G. Try it out here.

HTH
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
My NC is partitioned like this:

Code:
Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
255 heads, 63 sectors/track, 965 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   *           1           9       72261   c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2              10          18       72292+  c Win95 FAT32 (LBA)
/dev/block/mmcblk0p3              19          56      305235  83 Linux
/dev/block/mmcblk0p4              57         965     7301542+  5 Extended
/dev/block/mmcblk0p5              57         114      465853+ 83 Linux
/dev/block/mmcblk0p6             115         789     5421906  83 Linux
/dev/block/mmcblk0p7             790         834      361431  83 Linux
/dev/block/mmcblk0p8             835         965     1052226   c Win95 FAT32 (LBA)
I think this is default for the "new" partition style (which I will soon change).

However this is not affecting my SD card.

I should get my 32GB SD in the mail today or tomorrow. I suppose I will know soon enough whether I can use more than 1G on THAT card.
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
While trying to poke around on this NC and figure out exactly how the partitions are working, I discovered another thing which may be normal but sure seems odd to me.

The /emmc and /sdcard contents (directory names) are nearly identical.

Code:
ls /emmc                                                         
Android              Music                clockworkmod           
B&N Downloads        My Files             com.maildroid          
Books                Nook                 data                   
DCIM                 OverDrive            dropbox                
Digital Editions     ReceivedFiles        eBooks                 
Download             TempAudio            fix_permissions.log    
Evernote             TunnyBrowser         opera                  
GOLauncherEX         Videos               tmp                    
GoStore              adobe                                       
LOST.DIR             backups                                     
# ls /sdcard                                                     
ls /sdcard                                                       
Android              My Files             com.maildroid          
B&N Downloads        Nook                 data                   
Books                OverDrive            dropbox                
DCIM                 ReceivedFiles        eBooks                 
Digital Editions     TempAudio            fix_permissions.log    
Download             TunnyBrowser         notes                  
GOLauncherEX         Videos               opera                  
GoStore              adobe                tmp                    
LOST.DIR             backups                                     
Music                clockworkmod                                
#
Creating a file on one does not create it on the other. But some of the directories have identical files. For example the Titaniumbackup files in the /data dir on both /emmc and /sdcard are identical. I didn't check any others.

This seems quite odd. Comments?
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
OK, I think maybe I am getting to the bottom of this!

on my NC, when I take the SD card completely OUT, I can still view files mounted on /sdcard

So I am not convinced that my /sdcard mountpoint is actually reflecting the SD card directly.

When I unmount the SD card in the "Storage" settings, and I get the "Safe to remove..." notification, I presume the actual SD card is not mounted.

I removed the SD card from the NC and reformatted it using Panasonic SDFormatter. It's 1.86GB and has no files on it.

Without the SD card in my NC, it operates normally and still thinks it's writing to the /mnt/sdcard for things like downloading files.

My suspicion is that the partition normally mounted to /media is mounted to /mnt/sdcard

Code:
# df                                                                            
df                                                                              
Filesystem           1K-blocks      Used Available Use% Mounted on              
tmpfs                   245892        32    245860   0% /dev                    
tmpfs                   245892         0    245892   0% /mnt/asec               
tmpfs                   245892         0    245892   0% /mnt/obb                
/dev/block/mmcblk0p2     71164       108     71056   0% /rom                    
/dev/block/mmcblk0p5    458532    169376    289156  37% /system                 
/dev/block/mmcblk0p6   5336664    688980   4376592  14% /data                   
/dev/block/mmcblk0p7    350018     42216    289731  13% /cache                  
/dev/block/vold/179:8  1050156   1029924     20232  98% /mnt/sdcard             
/dev/block/vold/179:8  1050156   1029924     20232  98% /mnt/secure/asec
THERE IS NO SD CARD IN THE NC.

Looks like the NC still THINKS the sd card is mounted.

Notice there also is no mount point for /media

The partition I'd expect to be mounted at /media (/dev/block/mmcblk0p8) is not mounted.

Please, someone explain this to me! Seriously, what's the Nook Color's partition scheme?
 
Last edited:

DizzyDen

Senior Member
Feb 7, 2011
1,301
567
143
OK, I think maybe I am getting to the bottom of this!

on my NC, when I take the SD card completely OUT, I can still view files mounted on /sdcard

So I am not convinced that my /sdcard mountpoint is actually reflecting the SD card directly.

When I unmount the SD card in the "Storage" settings, and I get the "Safe to remove..." notification, I presume the actual SD card is not mounted.

I removed the SD card from the NC and reformatted it using Panasonic SDFormatter. It's 1.86GB and has no files on it.

Without the SD card in my NC, it operates normally and still thinks it's writing to the /mnt/sdcard for things like downloading files.

My suspicion is that the partition normally mounted to /media is mounted to /mnt/sdcard

Code:
# df                                                                            
df                                                                              
Filesystem           1K-blocks      Used Available Use% Mounted on              
tmpfs                   245892        32    245860   0% /dev                    
tmpfs                   245892         0    245892   0% /mnt/asec               
tmpfs                   245892         0    245892   0% /mnt/obb                
/dev/block/mmcblk0p2     71164       108     71056   0% /rom                    
/dev/block/mmcblk0p5    458532    169376    289156  37% /system                 
/dev/block/mmcblk0p6   5336664    688980   4376592  14% /data                   
/dev/block/mmcblk0p7    350018     42216    289731  13% /cache                  
/dev/block/vold/179:8  1050156   1029924     20232  98% /mnt/sdcard             
/dev/block/vold/179:8  1050156   1029924     20232  98% /mnt/secure/asec
THERE IS NO SD CARD IN THE NC.

Looks like the NC still THINKS the sd card is mounted.

Notice there also is no mount point for /media

The partition I'd expect to be mounted at /media (/dev/block/mmcblk0p8) is not mounted.

Please, someone explain this to me! Seriously, what's the Nook Color's partition scheme?
If there is no SD in... the vold.conf is setup to mount /dev/block/mmcblk0p8 as /sdcard...

Code:
## vold configuration file for zoom2
# modified for encore

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    media_path     /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
    partition	   8
    media_type     mmc
    ##mount_point    /sdcard
    mount_point    /media
    ums_path       /devices/platform/usb_mass_storage/lun0
}

volume_sdcard2 {
    ## Currently points to internal eMMC, assumes eMMC is formatted as FAT32
    media_path     /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
    media_type     mmc
    partition	   4
    ##mount_point    /media
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun1
}
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
That doesn't seem to be the case, although it would make sense.

Looks like my sdcard is mounted at /mnt/emmc.

Rebooting into CWM after reformatting my SD card and putting it back in blank, putting a couple of files on it, it is found in CWM as /sdcard.

Once I boot, I find that content in /mnt/emmc.
 
Nov 4, 2010
41
21
0
I've had the same issue as the OP since installing CM7 a few weeks ago. It really had me baffled, but I tried the fix linked above just now and it did the trick :) thank you mr72!

Sent from my NookColor using xda premium
 

mr72

Senior Member
Aug 2, 2010
503
126
0
Austin, TX
I've had the same issue as the OP since installing CM7 a few weeks ago. It really had me baffled, but I tried the fix linked above just now and it did the trick :) thank you mr72!

Sent from my NookColor using xda premium
OK, so to reiterate:

If you have CM7 installed, and in Settings -> Cyanogenmod Settings -> Application Settings, you check "Use internal storage", then CM7 will SWAP the SD card and the internal 1G (default) "Additional storage:/mnt/emmc" partition. The result is that your SD card will be mounted at /mnt/emmc and your internal memory 1G partition will be mounted at /mnt/sdcard.

Also, when you plug the NC into the computer if you have these swapped, then the 1G "internal memory" will be mounted on your computer, rather than the sdcard.

In actuality, this is a good thing, and there is a hack out there to swap these, therefore making use of the normally unused partition that by default in CM7 would be mounted at /mnt/emmc.
 

votinh

Senior Member
Jul 6, 2011
2,340
449
0
I'm lost following your posts but I know
/mnt/emmc is the additional internal storage and /mnt/sdard is the external uSD card.
That's the case when running CM7 off eMMC.
It's set by default, otherwise, maybe I have to set something to twist around.
Also, when having uSD plugged in, connecting to PC (Windows), both mounted as you would see the 1G internal AND the CM7SDCARD
 
Last edited: