Le 26/11/2016 à 23:42, Richard Owlett a écrit :
I've been getting a strange error messages when looking at some 8 GB
flash drives from different manufacturers purchased months apart.

There is a title bar at top saying "Libparted Warning (as superuser).
The body of the message box has:
  1. an Exclamation point surrounded by orange and yellow triangle.
  2. a message text saying "The driver descriptor says the physical block
     size is 2048 bytes, but Linux says it is 512 bytes.
  3. There are two buttons present.
     One saying "Cancel"
     The other saying "Ignore"

I have seen this behaviour when running parted on a USB flash drive containing a Debian installer ISOhybrid x86 image which seems to combine a DOS partitition table, an Apple Mac partition table, a GPT partition table and an ISO 9660 header. I guess the 2048-byte block size is set to match the sector size of optical media.

I have found that historically partitioning tools based on libparted (parted, gparted, partman [Debian installer]) did not handle well this non-standard format. The parted version in Wheezy just could not read it.

Another problem I observed is that erasing the partition table does not erase the ISO 9660 header, and programs based on libblkid (udev, desktop environment file managers) still find it and wrongly apply the identifier string in it to label the drive.

Before reusing a drive which had contained an ISO image, I advise to erase any metadata with wipefs.

Reply via email to