Re: Does anyone have fake flash drives?

2015-01-28 Thread poma
On 28.01.2015 15:50, Richard Hughes wrote:
 Hi all,
 
 I've added some initial functionality to gnome-multi-writer yesterday
 to detect fake flash drives. If anyone has any USB storage drives that
 they know misreport their true capacity, or that they suspect might be
 counterfeit, I'd appreciate some testing of a new command line tool.
 
 See http://blogs.gnome.org/hughsie/2015/01/28/detecting-fake-flash/ for 
 details.
 
 If it works, I'll probably move the code down into udisks so that it
 can be used from gnome-disks as well, but I'm hesitant to do that
 until I've had more people test it. Thanks,
 
 Richard.
 


pIf you#8217;ve got access to gnome-multi-writer from git (either from 
jhbuild, or from a /my repo/a) then please could you try this:/p

my repo is actually what?

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread Richard Hughes
On 28 January 2015 at 15:40, poma pomidorabelis...@gmail.com wrote:
 my repo is actually what?

Fixed, thanks! It's actually pointing to
http://people.freedesktop.org/~hughsient/fedora/21/x86_64/

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread Richard Hughes
On 28 January 2015 at 16:30, poma pomidorabelis...@gmail.com wrote:
 (gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: Disk reports to be 
 14762MB in size
 Device is FAKE: Failed to verify data at 1248MB

Do you still get this if you unmount the drive before running the
test? We should probably do that anyway I guess.

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread poma
On 28.01.2015 17:26, Richard Hughes wrote:
 On 28 January 2015 at 16:05, poma pomidorabelis...@gmail.com wrote:
 # gnome-multi-writer-probe --verbose /dev/sde
 Failed to scan device: Failed to open /dev/sde
 
 Hmm, you're root -- do you have any SELinux messages? I'm basically
 trying to do open(block_dev, O_RDWR | O_SYNC)
 
 Richard
 

That device is gone, precisely NAND ist kaputt.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread poma
On 28.01.2015 16:48, Richard Hughes wrote:
 On 28 January 2015 at 15:40, poma pomidorabelis...@gmail.com wrote:
 my repo is actually what?
 
 Fixed, thanks! It's actually pointing to
 http://people.freedesktop.org/~hughsient/fedora/21/x86_64/
 
 Richard
 


# udisksctl info --block-device /dev/sde 
/org/freedesktop/UDisks2/block_devices/sde:
  org.freedesktop.UDisks2.Block:
Configuration:  []
CryptoBackingDevice:'/'
Device: /dev/sde
DeviceNumber:   2112
Drive:  
'/org/freedesktop/UDisks2/drives/USB_Flash_Disk_USB_Flash_Disk_0_3a0'
HintAuto:   true
HintIconName:   
HintIgnore: false
HintName:   
HintPartitionable:  true
HintSymbolicIconName:   
HintSystem: false
Id: 
IdLabel:
IdType: 
IdUUID: 
IdUsage:
IdVersion:  
MDRaid: '/'
MDRaidMember:   '/'
PreferredDevice:/dev/sde
ReadOnly:   false
Size:   0
Symlinks:   /dev/disk/by-id/usb-USB_Flash_Disk-0:0

/dev/disk/by-path/pci-:00:04.1-usb-0:1:1.0-scsi-0:0:0:0


# gnome-multi-writer-probe --verbose /dev/sde
Failed to scan device: Failed to open /dev/sde


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread Richard Hughes
On 28 January 2015 at 16:05, poma pomidorabelis...@gmail.com wrote:
 # gnome-multi-writer-probe --verbose /dev/sde
 Failed to scan device: Failed to open /dev/sde

Hmm, you're root -- do you have any SELinux messages? I'm basically
trying to do open(block_dev, O_RDWR | O_SYNC)

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Does anyone have fake flash drives?

2015-01-28 Thread poma

# udisksctl info --block-device /dev/sde 
/org/freedesktop/UDisks2/block_devices/sde:
  org.freedesktop.UDisks2.Block:
Configuration:  []
CryptoBackingDevice:'/'
Device: /dev/sde
DeviceNumber:   2112
Drive:  
'/org/freedesktop/UDisks2/drives/Manufacturer_Product_SerialNumber'
HintAuto:   true
HintIconName:   
HintIgnore: false
HintName:   
HintPartitionable:  true
HintSymbolicIconName:   
HintSystem: false
Id: 
by-id-usb-Manufacturer_Product_SerialNumber-0:0
IdLabel:
IdType: 
IdUUID: 
IdUsage:
IdVersion:  
MDRaid: '/'
MDRaidMember:   '/'
PreferredDevice:/dev/sde
ReadOnly:   false
Size:   15479597056
Symlinks:   
/dev/disk/by-id/usb-Manufacturer_Product_SerialNumber-0:0

/dev/disk/by-path/pci-:00:04.1-usb-0:1:1.0-scsi-0:0:0:0
  org.freedesktop.UDisks2.PartitionTable:
Type:   dos


# gnome-multi-writer-probe --verbose /dev/sde
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: Disk reports to be 
14762MB in size
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 32MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 64MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 96MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 128MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 160MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 192MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 224MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 256MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 288MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 320MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 352MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 384MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 416MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 448MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 480MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 512MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 544MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 576MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 608MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 640MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 672MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 704MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 736MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 768MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 800MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 832MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 864MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 896MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 928MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 960MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 992MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1024MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1056MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1088MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1120MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1152MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1184MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1216MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: read 32768 @ 1248MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 32MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 64MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 96MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 128MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 160MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 @ 192MB
(gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: wrote 32768 

Re: Does anyone have fake flash drives?

2015-01-28 Thread poma
On 28.01.2015 17:37, Richard Hughes wrote:
 On 28 January 2015 at 16:30, poma pomidorabelis...@gmail.com wrote:
 (gnome-multi-writer-probe:11677): GnomeMultiWriter-DEBUG: Disk reports to be 
 14762MB in size
 Device is FAKE: Failed to verify data at 1248MB
 
 Do you still get this if you unmount the drive before running the
 test? We should probably do that anyway I guess.
 
 Richard
 

Unmounted:
Device is FAKE: Failed to verify data at 1248MB

Mounted:
Device is GOOD


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org