
On 12/02/13 12:19, Carl Turney wrote:
Someone suggested using this command... sudo badblocks -w -s -o usbstick.log /dev/sdz
No such file or directory while trying to determine device size.
The usb flash definitely has to be unmounted before doing this. However, unmounting should not remove the entries from /dev Perhaps try doing the unmount from the command line (I'm assuming the drive is auto mounted when you plug it in, and you may have more than one partition on it). Check what drives and partitions there are (the -l is important) ls /dev/sd* sudo fdisk -l Make sure all the partitions are unmounted, eg sudo umount /dev/sdb1 And then run the badblocks test (I'd suggest a read only test first, as a quick first pass). Also keep in mind a -w write test will wipe the drive. sudo badblocks -s -o usbstick.log /dev/sdb regards, Glenn -- sks-keyservers.net 0xb1e82ec9228ac090