[sf-lug] Trying to determine the actual size of a USB drive

Mike Higashi mhigashi at gmail.com
Tue Aug 30 14:58:54 PDT 2011


On Mon, Aug 29, 2011 at 8:06 PM, John Magolske <b79net at gmail.com> wrote:
> I have an OCZ USB 8GB Dual Channel Rally2 Pen Drive, and for some
> reason df seems to be telling me it has more than 8GB capacity:

I'm wondering if you could use dd to copy the raw device to a image file
on another disk, and see what the resulting file size is. This is a read
operation for the flash chip, so you're not shortening the life cycle.

Something like:

dd if=/dev/sdb1 of=/tmp/pendrive.img bs=4096


Mike




More information about the sf-lug mailing list