Gparted says driver descriptor and Linux disagree on physical block size of a pen drive; drive does not automount; how to resolve

usb-drive

On opening GParted, it says:

The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.

Also, it does not auto-mount when I plug it in.

How should I resolve this pen drive problem?

Best Answer

I used this command and it fixed the problem:

sudo dd if=/dev/zero of=/dev/<id_of_your_device> bs=2048; sync  

Usually, <id_of_your_device> is sdb, but make sure you check that, because if you use sda and it turns out to be your hard disk, all the data on your hard disk will get erased.

Related Question