8GB stick thinks it’s a 4GB one

usb-flash-drive

I have a "SanDisk Cruzer USB Device" which is labelled for 8GB and always was 8GB. I didn't use it for a while and now it lists 3.49GB on my PC. I think I've done something to it a while ago, but can't remember what I was doing.

I've tried different PCs on that, with different OSs (Ubuntu Server 12, Ubuntu Desktop 10, Windows 7, Windows XP). They all listed the device for around 4GB. I also tried formatting but in the format dialog (of windows XP) I could only choose 3.50GB capacity (whether I'd select FAT32 or exFAT).

What might the problem be? How can I resolve this issue?


I ran fdisk -l /dev/sdb on Ubuntu and found:

Disk /dev/sdb: 3763 MB, 3763600896 bytes
116 heads, 62 sectors/track, 1022 cylinders, total 7350783 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x69686373

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?  4281232757  1652651905   833193222+  6d  Unknown
/dev/sdb2   ?  1141509631  1685422960   271956665   66  Unknown
/dev/sdb3   ?  1937007983  1937010555        1286+  65  Novell Netware 386
/dev/sdb4      2885681152  2885736393       27621    0  Empty

Partition table entries are not in disk order

Best Answer

I think the USB drive is going haywire, I'd recommend that you stop using it.

Ubuntu reports 4 instead of 8 GB:

$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 3763 MB, 3763600896 bytes
116 heads, 62 sectors/track, 1022 cylinders, total 7350783 sectors
(...)

And if you look at fdisk's output more closely you will notice that the start and end sectors make no sense at all and don't match the total number of sectors on the Cruzer:

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?  4281232757  1652651905   833193222+  6d  Unknown
/dev/sdb2   ?  1141509631  1685422960   271956665   66  Unknown
/dev/sdb3   ?  1937007983  1937010555        1286+  65  Novell Netware 386
/dev/sdb4      2885681152  2885736393       27621    0  Empty

Something's wrong with the USB flash drive. I don't see how you can get your 8 GB back.