-3

After create a bootable disk, I can't format my pendrive, I use the command

"sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1" and after that, it just shows 4.1GB instead of 16GB. The Gparted just shows 4GB too and I can not erase or create a partition table from it. The Disc utility from Ubuntu gives me an error if I try format the pendrive. What can I do to get the real size of my pendrive?

Renan Willamy
  • 173
  • 1
  • 1
  • 9

1 Answers1

1

blockdev --getsize64 /dev/sdb will print device size in bytes. See the man page.

kenberland
  • 61
  • 3