Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Trying to repair 32GB USB Flash Drive

  1. #1
    Join Date
    Mar 2007
    Beans
    173

    Trying to repair 32GB USB Flash Drive

    Hi all,

    Spent the past hour or so trying to repair this drive. Here are results of all the commands I've found while searching google for a solution.

    This is whats happening when I plug the USB in.
    Code:
    sudo tail -c 0 -f /var/log/syslog
    Code:
    Jan 10 09:37:15 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329217.968053] usb 2-6: new high speed USB device number 12 using ehci_hcd
    Jan 10 09:37:15 mglasgow-HP-Compaq-dx7500-Microtower mtp-probe: checking bus 2, device 12: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-6"
    Jan 10 09:37:15 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329218.103994] scsi16 : usb-storage 2-6:1.0
    Jan 10 09:37:15 mglasgow-HP-Compaq-dx7500-Microtower mtp-probe: bus: 2, device: 12 was not an MTP device
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.105314] scsi 16:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 2
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.105395] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.108808] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.128161] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.128277] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.146742] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.146871] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.150014] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.150139] scsi: killing requests for dead queue
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.152976] sd 16:0:0:0: Attached scsi generic sg3 type 0
    Jan 10 09:37:16 mglasgow-HP-Compaq-dx7500-Microtower kernel: [329219.154921] sd 16:0:0:0: [sdc] Attached SCSI removable disk
    It's recongised in lsusb as
    Code:
    Bus 002 Device 012: ID 0c76:0005 JMTek, LLC. Transcend Flash disk
    I can't see anything other than the drives I'm already aware about using
    Code:
    sudo fdisk -l
    But here are the results anyway incase I've overlooked something
    Code:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0001c30f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   621019135   310508544   83  Linux
    /dev/sda2       621021182   625141759     2060289    5  Extended
    /dev/sda5       621021184   625141759     2060288   82  Linux swap / Solaris
    
    Disk /dev/sdb: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x9c635a24
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048  1250261679   625129816    7  HPFS/NTFS/exFAT
    It's also recognised in Disk Utility but I don't have many options (screenshot attached below)

    When I try and format using any of the options I get this error message

    Code:
    Error creating partition table: helper exited with exit code 1: cannot open /dev/sdc: No medium found
    Any help appreciated
    Attached Images Attached Images
    Last edited by auraithx; January 10th, 2012 at 12:27 PM.

  2. #2
    Join Date
    Aug 2007
    Beans
    1,210

    Re: Trying to repair 32GB USB Flash Drive

    auraithx,
    You don't say why you are trying to repair the USB Flash Drive....
    It appears to be a Windows Formatted USB Drive. Did you format it
    in Windows for use in Windows ONLY. Typically all USB Flash Drives come
    formatted as my 4G Centon Pro shown below, making them automount (usable) in *nix.
    Disk /dev/sdb: 4043 MB, 4043309056 bytes
    255 heads, 63 sectors/track, 491 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0008136d

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 492 3948512+ c W95 FAT32 (LBA)
    Partition 1 has different physical/logical endings:
    phys=(490, 254, 63) logical=(491, 145, 38)
    larry@debian:~$
    You could use Gparted to Delete the Partition (just make 100% sure you are on the correct /dev/sdx)
    DOUBLE CHECK the SIZE, and Partitions...and remove the partition. Then create another one and
    format it to whatever format you require. If you're using it for transfers to Windows from *nix,
    and Vice Versa, you'll want something universal that Windows/*nix accepts. ie. FAT32
    The easiest thing would be to format it in Windows, then try it in *nix.

    You can also use dd to wipe the USB Flash Drive.

    REF:

    http://ubuntuforums.org/showthread.p...7#post11576337



    LK
    Attached Images Attached Images
    Last edited by lkraemer; January 11th, 2012 at 01:27 PM.

  3. #3
    Join Date
    Mar 2007
    Beans
    173

    Re: Trying to repair 32GB USB Flash Drive

    Forgot to say the drive isn't recognised at all in Windows/MacOSX

    Also it isn't recognised in gparted.

  4. #4
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,263
    Distro
    Ubuntu Mate Development Release

    Re: Trying to repair 32GB USB Flash Drive

    Good Luck on that. I've gone through several different USB flash drives, including some memory cards, and when they go bad (and they always DO), I've been unable to fix ANY of them.

    Have tried all the available Windows tools, and even Linux tools -- nothing seems to work.

    Maybe you'll have better luck.
    Ubuntu 17.04 Mate, Mint 18.1 Mate; MS Win 8.1, MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  5. #5
    Join Date
    Oct 2009
    Location
    Upminster, Essex, UK
    Beans
    544

    Thumbs down Re: Trying to repair 32GB USB Flash Drive

    Is it a known good drive? I recently purchased a 16GB miniSD that was faulty from day one and had to send it back

    If you have access to windows then the HP USB TOOL is still *often* effective for reviving seemingly dead USB sticks
    Code:
    cd /fridge/beer | drink && fallover

  6. #6
    Join Date
    Aug 2007
    Beans
    1,210

    Re: Trying to repair 32GB USB Flash Drive

    auraithx,
    I'm wondering if you can use dd to zero the partition &/or drive,
    since the USB Flash Drive shows it mounts?

    What does this command show:
    Code:
    sudo blkid
    Try un-mounting the drive with:
    Code:
    umount /dev/sdb*
    TO ZERO out a USB Flash Drive: CAUTION! MAKE SURE YOU HAVE THE CORRECT DRIVE
    Code:
    sudo dd if=/dev/zero of=/dev/sdX bs=1M
    Where X is substituted with your Drive.

    TO ZERO out a USB Flash Drive Partition (#1): CAUTION! MAKE SURE YOU HAVE THE CORRECT PARTITION
    Code:
    sudo dd if=/dev/zero of=/dev/sdX1 bs=1M
    Where X is substituted with your Partition.


    REF:

    http://robotbutler.org/article/36


    LK
    Last edited by lkraemer; January 12th, 2012 at 02:45 AM. Reason: Added Warning

  7. #7
    Join Date
    Mar 2007
    Beans
    173

    Re: Trying to repair 32GB USB Flash Drive

    Quote Originally Posted by lkraemer View Post
    auraithx,
    I'm wondering if you can use dd to zero the partition &/or drive,
    since the USB Flash Drive shows it mounts?

    What does this command show:
    Code:
    sudo blkid
    TO ZERO out a USB Flash Drive:
    Code:
    sudo dd if=/dev/zero of=/dev/sdb
    TO ZERO out a USB Flash Drive Partition (#1):
    Code:
    sudo dd if=/dev/zero of=/dev/sdb1
    LK
    Code:
    mglasgow@mglasgow-HP-Compaq-dx7500-Microtower:~$ sudo blkid
    /dev/sda1: UUID="4cf61bcc-7364-48ea-af6a-5507e335f274" TYPE="ext4" 
    /dev/sda5: UUID="e17b1f5d-0eb8-4c29-b6b0-c6a0a196943a" TYPE="swap" 
    /dev/sdb1: LABEL="TOSHIBA EXT" UUID="065E505E5E504917" TYPE="ntfs"
    To which I proceeded to to copy/paste your command (without thinking)

    Code:
    sudo dd if=/dev/zero of=/dev/sdb1
    And wiped my 640GB hard drive filled with HD movies and TV shows.

  8. #8
    Join Date
    Apr 2010
    Beans
    51

    Re: Trying to repair 32GB USB Flash Drive

    Well that sucks.

    The "ZERO" out option should have been surrounded by a warning- which a mod or the author of the post should now include.

    You will not be able to recover that 640gb hd now- it is "zeroed" out.

    That being said, if you know which device letter is assigned to your dead usb device and you are interested in reformatting it (removing all chance of recovering files from it) I see that zeroing out the drive in question is a last ditch effort to bring an errant drive back in line.

    In your first example, your dead device was "/dev/sdc". To find out what letter your device is assigned, unplug it, then
    ls /dev/sd*
    plug it back in and
    ls /dev/sd*
    and the new device in the list will be your dead device.
    WARNING- This command zeros out / erases forever the contents of your drive- only use on a drive from which you do not hope to recover files
    dd if=/dev/zero of=/dev/sdc bs=1M
    WARNING- This command zeros out / erases forever the contents of your drive- only use on a drive from which you do not hope to recover files
    Then try to format the dead usb device using Disk Utility or whatever.

    Good luck- I am having my own damned usb problems at the moment.

    -wigout
    Last edited by wigout; January 11th, 2012 at 04:27 PM.

  9. #9
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,263
    Distro
    Ubuntu Mate Development Release

    Re: Trying to repair 32GB USB Flash Drive

    Quote Originally Posted by wigout View Post
    Well that sucks.

    The "ZERO" out option should have been surrounded by a warning- which a mod or the author of the post should now include.
    Hey ... let's at least be FAIR to the person who suggested the Zero out option, OK?

    The OP specifically entered the WRONG device name. They manually entered "sdb1" -- which clearly shows as their NTFS partition! The command then simply did what it was told to do.

    It wasn't the lack of a "warning" that caused the damage; it was a mistake on the part of the person entering the command.
    Ubuntu 17.04 Mate, Mint 18.1 Mate; MS Win 8.1, MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  10. #10
    Join Date
    Aug 2007
    Beans
    1,210

    Re: Trying to repair 32GB USB Flash Drive

    auraithx,
    MAN, I'M SORRY! I can see why that happened. I've changed my post accordingly.

    LK

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •