SD Card has wrong capacity
#1
After flashing an OS to my 16GB micro SD I find that it erroneously reports in, for example, parted as 4GB.


Code:
$ lsblk
NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 465.8G  0 disk
├─sda1  8:1    0    2M  0 part
├─sda2  8:2    0  39.1G  0 part /
├─sda3  8:3    0  7.8G  0 part [SWAP]
└─sda4  8:4    0 418.9G  0 part /home
sdb      8:16  1    15G  0 disk
└─sdb1  8:17  1    15G  0 part

Code:
$ sudo parted /dev/sdb
GNU Parted 3.6
Using /dev/sdb
[menu]
(parted) print all                                                       
Model:  (file)
Disk /dev/sdb: 4092MB

I have googled endlessly but cannot find a way of fixing this.
I would like to use the 16GB SD card for data.

Any help would be appreciated as usual.
  Reply
#2
Are you sure it's actually 16GB capacity? There are a lot of phony flash drives and SD cards around, though usually higher reported capacities. (You buy a "64GB" card and find out it will only hold 4GB, etc.)

There is testing software out there to check actual physical capacity, such as this:

https://www.youtube.com/watch?v=2UihP7jqB7U
  Reply
#3
Absolutely certain. I have five and only one now shows as 16GB.
  Reply
#4
i need run some tests before i give final comment.

generally speaking pre-written images are smaller, and they have to be smaller than whatevery memory. and first boot expands into full size, (although fedora on pinephone seems to require manual expansion). so id you check memory card after writing, then fdisk, parted and others may report that small size.
  Reply
#5
(06-05-2023, 06:42 AM)Zebulon Walton Wrote: There is testing software out there to check actual physical capacity, such as this:

https://www.youtube.com/watch?v=2UihP7jqB7U
Or this: https://fight-flash-fraud.readthedocs.io/en/latest/ which is cross-platform Free Software, whereas the one shown in your video appears to be proprietary Windows-only free(as in beer)ware (at least I do not see any source code download).
  Reply
#6
(06-06-2023, 01:04 AM)Kevin Kofler Wrote: Or this: https://fight-flash-fraud.readthedocs.io/en/latest/ which is cross-platform Free Software, whereas the one shown in your video appears to be proprietary Windows-only free(as in beer)ware (at least I do not see any source code download).

Good catch! Admittedly I just did a quick search for capacity testing software and didn't take a close look at it.
  Reply
#7
Not sure what went wrong, but after a reboot of the PC all the SD cards reported their correct sizes.

Thanks for the replies.
  Reply
#8
might be related. i noticed a bug with jumpdrive. however bug seems to be in a host system in linux system. some cases sizes go wrong in a way that system reports wrong size for mass media. i think it happens after "eject" command. removind and re-inserting the memory won't help. only reboot helps.
  Reply
#9
Sounds exactly the same problem.
  Reply
#10
Images you write to an SD card are a fixed size. The image has to be resized after the image is put on the SD card.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  install iso from sd card to emmc aular 2 1,459 03-11-2024, 10:24 PM
Last Post: tllim
  How To Access the Pine Phone Auxillary microSD Without Removing Card pinephoneuser22 2 1,692 01-09-2024, 07:02 PM
Last Post: britelite
  Device Unable To Read MicroSD Card _radv_ 19 9,348 02-18-2023, 02:01 PM
Last Post: _radv_
  SIM Card Slot Terror thismarty 4 2,222 12-21-2022, 05:37 PM
Last Post: thismarty
  MicroSD Card Reuse _radv_ 5 3,152 12-12-2022, 12:26 PM
Last Post: chainingsolid
  Pine Phone Doesn't Recognize New MicroSD Card _radv_ 3 2,151 11-23-2022, 05:19 AM
Last Post: _radv_
  Boot problem: wrong screen orientation Jetpac 6 4,919 07-18-2022, 12:47 PM
Last Post: fravoi
  SIM Card Install pineme 4 6,062 06-10-2022, 03:15 AM
Last Post: rocket2nfinity
  Flashing gone wrong erg 9 6,180 05-28-2022, 10:52 AM
Last Post: fxc
  SIM card slot not working dekrets 2 2,789 02-12-2022, 11:09 AM
Last Post: dekrets

Forum Jump:


Users browsing this thread: 6 Guest(s)