Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hello All, I've been reading these forums for a while now and found allready alot of usefull information on it. First time posting now I've prolly got a broken USB ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2012
    Posts
    5

    USB Stick dead?


    Hello All,

    I've been reading these forums for a while now and found allready alot of usefull information on it. First time posting now

    I've prolly got a broken USB stick but sinds there is very important data on it, i would like to have tried every available option there is... so any help is welcome.

    OK here we go. When i push the stick into the computer, tail -f /var/log/messages gives me this:

    Code:
    Apr 24 10:29:36 vm-linux-remco kernel: [ 1233.112257] usb 1-4: new full speed USB device using ohci_hcd and address 10
    Apr 24 10:29:39 vm-linux-remco kernel: [ 1235.412577] usb 1-4: configuration #1 chosen from 1 choice
    Apr 24 10:29:39 vm-linux-remco kernel: [ 1235.426985] scsi7 : SCSI emulation for USB Mass Storage devices
    Apr 24 10:29:44 vm-linux-remco kernel: [ 1240.442087] scsi 7:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 2
    Apr 24 10:29:44 vm-linux-remco kernel: [ 1240.452706] sd 7:0:0:0: Attached scsi generic sg6 type 0
    Apr 24 10:29:44 vm-linux-remco kernel: [ 1240.488117] sd 7:0:0:0: [sdf] Attached SCSI removable disk
    The drive seems to be recognized but linux wont show any drive information. Also it seems impossible to mount the drive.

    fdisk -l just show's me my main HDD:

    Code:
    root:/home/remco# fdisk -l
    
    Disk /dev/sda: 8589 MB, 8589934592 bytes
    255 heads, 63 sectors/track, 1044 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: 0x00000b40
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1         994     7977984   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2             994        1045      407553    5  Extended
    /dev/sda5             994        1045      407552   82  Linux swap / Solaris
    root:/home/remco#
    I'm kinda lost now... anything else i can try? Thanks in advance.
    Last edited by EzMe; 04-25-2012 at 07:59 AM.

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,108
    Try using a Parted Magic Live cd to check if stick is broken and if possible recover files from. Parted Magic has the tools. Read the site for more info.

    start
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  3. #3
    Linux Newbie
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    107
    fdisk -l assumes /dev/sda.

    dmesg shows sdf , so the partitions would be /dev/sdf1 etc.
    Apr 24 10:29:44 vm-linux-remco kernel: [ 1240.488117] sd 7:0:0:0: [sdf] Attached SCSI removable disk

    fdisk -l /dev/sdf

    Depending on kernel configuration ubb can also be used.
    fdisk -l /dev/ubb

  4. #4
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896
    Hello,

    It's possible that the appropriate kernel modules are not loading automatically for some reason. Here's a link with some more info:

    cyberciti.biz/faq/usb-drive-not-being-recognized-under-linux/

  5. #5
    Just Joined!
    Join Date
    Apr 2012
    Posts
    5
    First of all thanks for your responces so far!


    Quote Originally Posted by rokytnji View Post
    Try using a Parted Magic Live cd to check if stick is broken and if possible recover files from. Parted Magic has the tools. Read the site for more info.

    Both TestDisk and Safecopy seem to be decent programs thought they both need a mounted partition to start off with. And that seems to be an issue here sinds i cannot mount the drive.

    Quote Originally Posted by Siddly View Post
    fdisk -l assumes /dev/sda.

    dmesg shows sdf , so the partitions would be /dev/sdf1 etc.
    Apr 24 10:29:44 vm-linux-remco kernel: [ 1240.488117] sd 7:0:0:0: [sdf] Attached SCSI removable disk

    fdisk -l /dev/sdf

    Depending on kernel configuration ubb can also be used.
    fdisk -l /dev/ubb
    I also assumed /dev/sda So i tried the options you suggested but really gave me nothing :/

    Code:
    root:vm-linux-remco:/dev# fdisk -l /dev/sdf
    root:vm-linux-remco:/dev# fdisk -l /dev/sdf1
    root:vm-linux-remco:/dev# fdisk -l /dev/ubb
    root"vm-linux-remco:/dev#
    Also when trying to mount it:

    Code:
    root:vm-linux-remco:/# mount /dev/sdf /mnt/tmp
    mount: /dev/sdf: unknown device

    Quote Originally Posted by mizzle View Post
    Hello,

    It's possible that the appropriate kernel modules are not loading automatically for some reason. Here's a link with some more info:

    cyberciti.biz/faq/usb-drive-not-being-recognized-under-linux/
    That's also what i tought in the first place. But I tried mounting a USB drive which i new just works and that seemed to mount correctly.

    More info:

    Code:
    root:vm-linux-remco:/# uname -a
    Linux vm-linux-remco 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
    root:vm-linux-remco:/# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             7,5G  2,9G  4,3G  41% /
    none                 1003M  228K 1003M   1% /dev
    none                 1007M  184K 1007M   1% /dev/shm
    none                 1007M   92K 1007M   1% /var/run
    none                 1007M     0 1007M   0% /var/lock
    none                 1007M     0 1007M   0% /lib/init/rw
    Shared_Folder_Ubuntu_10.04
                          466G   75G  392G  16% /media/sf_Shared_Folder_Ubuntu_10.04
    root@vm-linux-remco:/# fdisk -l
    
    Disk /dev/sda: 8589 MB, 8589934592 bytes
    255 heads, 63 sectors/track, 1044 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: 0x00000b40
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1         994     7977984   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2             994        1045      407553    5  Extended
    /dev/sda5             994        1045      407552   82  Linux swap / Solaris
    root:vm-linux-remco:/#

  6. #6
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    Looking at your original post, I don't think that the system is seeing the flash drive properly. Here is my drive, for instance:
    Code:
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: new full speed USB device number 7 using uhci_hcd
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: New USB device found, idVendor=0fce, idProduct=e134
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: New USB device strings: Mfr=3, Product=4, SerialNumber=5
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: Product: CCR-80
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: Manufacturer: SEMC
    Apr 24 12:06:22 neuromancer kernel: usb 1-1.4.2: SerialNumber: 102307EE07B7C6C
    Apr 24 12:06:22 neuromancer kernel: scsi3 : usb-storage 1-1.4.2:1.0
    Apr 24 12:06:23 neuromancer kernel: scsi 3:0:0:0: Direct-Access     SEMC     SD  CCR-80       9454 PQ: 0 ANSI: 0
    Apr 24 12:06:23 neuromancer kernel: sd 3:0:0:0: Attached scsi generic sg2 type 0
    Apr 24 12:06:24 neuromancer kernel: sd 3:0:0:0: [sdb] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
    Apr 24 12:06:24 neuromancer kernel: sd 3:0:0:0: [sdb] Write Protect is off
    Apr 24 12:06:24 neuromancer kernel:  sdb: sdb1
    Apr 24 12:06:24 neuromancer kernel: sd 3:0:0:0: [sdb] Attached SCSI removable disk
    As you can see, it recognises which product it is and that I currently have a 2GB card in it. It should be able to tell you this whether or not there's a readable filesystem on there.

  7. #7
    Just Joined!
    Join Date
    Apr 2012
    Posts
    5
    Jip... that's the problem.

    Adding a USB stick that does work gives me this:

    Code:
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.152385] usb 1-4: new full speed USB device using ohci_hcd and address 18
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.395305] usb 1-4: configuration #1 chosen from 1 choice
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.404932] scsi10 : SCSI emulation for USB Mass Storage devices
    Apr 25 11:59:41 vm-linux-remco kernel: [10944.458108] scsi 10:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS
    Apr 25 11:59:41 vm-linux-remco kernel: [10944.487793] sd 10:0:0:0: Attached scsi generic sg6 type 0
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.096565] sd 10:0:0:0: [sdf] 1935360 512-byte logical blocks: (990 MB/945 MiB)
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.104545] sd 10:0:0:0: [sdf] Write Protect is off
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.146300]  sdf: sdf1
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.198036] sd 10:0:0:0: [sdf] Attached SCSI removable disk

  8. #8
    Linux Newbie
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    107
    Quote Originally Posted by EzMe View Post
    Jip... that's the problem.

    Adding a USB stick that does work gives me this:

    Code:
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.152385] usb 1-4: new full speed USB device using ohci_hcd and address 18
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.395305] usb 1-4: configuration #1 chosen from 1 choice
    Apr 25 11:59:36 vm-linux-remco kernel: [10939.404932] scsi10 : SCSI emulation for USB Mass Storage devices
    Apr 25 11:59:41 vm-linux-remco kernel: [10944.458108] scsi 10:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 0 CCS
    Apr 25 11:59:41 vm-linux-remco kernel: [10944.487793] sd 10:0:0:0: Attached scsi generic sg6 type 0
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.096565] sd 10:0:0:0: [sdf] 1935360 512-byte logical blocks: (990 MB/945 MiB)
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.104545] sd 10:0:0:0: [sdf] Write Protect is off
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.146300]  sdf: sdf1
    Apr 25 11:59:42 vm-linux-remco kernel: [10945.198036] sd 10:0:0:0: [sdf] Attached SCSI removable disk
    That looks like it should. Either the other one is bad or unformatted.
    Try "fdisk /dev/sdf", then "p" to print the partition table if there is one.

    I just put in a usb stick and dmesg says it's /dev/sdc:-
    [255300.598551] usb 1-6.4.2: new high-speed USB device number 6 using ehci_hcd
    [255300.684338] usb 1-6.4.2: New USB device found, idVendor=0781, idProduct=5406
    [255300.684347] usb 1-6.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [255300.684355] usb 1-6.4.2: Product: U3 Cruzer Micro
    [255300.684361] usb 1-6.4.2: Manufacturer: SanDisk Corporation
    [255300.684366] usb 1-6.4.2: SerialNumber: 0000161CB2723653
    [255300.685056] scsi9 : usb-storage 1-6.4.2:1.0
    [255301.688250] scsi 9:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 3.27 PQ: 0 ANSI: 2
    [255301.690043] scsi 9:0:0:1: CD-ROM SanDisk U3 Cruzer Micro 3.27 PQ: 0 ANSI: 2
    [255301.690353] sd 9:0:0:0: [sdc] 8015502 512-byte logical blocks: (4.10 GB/3.82 GiB)
    [255301.691596] sd 9:0:0:0: [sdc] Write Protect is off
    [255301.691604] sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
    [255301.693932] sd 9:0:0:0: [sdc] No Caching mode page present
    [255301.693935] sd 9:0:0:0: [sdc] Assuming drive cache: write through
    [255301.694954] sr0: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
    [255301.695231] sr 9:0:0:1: Attached scsi CD-ROM sr0
    [255301.698979] sd 9:0:0:0: [sdc] No Caching mode page present
    [255301.698987] sd 9:0:0:0: [sdc] Assuming drive cache: write through
    [255301.701098] sdc: sdc1
    [255301.704707] sd 9:0:0:0: [sdc] No Caching mode page present
    [255301.704716] sd 9:0:0:0: [sdc] Assuming drive cache: write through
    [255301.704723] sd 9:0:0:0: [sdc] Attached SCSI removable disk

    # fdisk -l /dev/sdc

    Disk /dev/sdc: 4103 MB, 4103937024 bytes
    255 heads, 63 sectors/track, 498 cylinders, total 8015502 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: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdc1 34 7984304 3992135+ b W95 FAT32

  9. #9
    Just Joined!
    Join Date
    Apr 2012
    Posts
    5
    Quote Originally Posted by Siddly View Post
    That looks like it should. Either the other one is bad or unformatted.
    Jip true cause that is a second usb stick to check if all drivers where loaded properly. Maybe i didn't notice it well enought.. sorry for that.

    My "broken" USB drive gives me this:

    Code:
    root:vm-linux-remco:/# fdisk /dev/sdf
    
    Unable to open /dev/sdf
    root:vm-linux-remco:/#
    Last edited by EzMe; 04-26-2012 at 07:09 AM.

  10. #10
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,108
    I am wondering if this drive went bad after plugging into windows and some how a hard lock some how was done when transferring files to flash from Windows.

    Just wondering is all.

    SanDisk Hard locked Problems & Solutions - FixYa
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

Page 1 of 2 1 2 LastLast

Posting Permissions

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