Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #909

Re: Recover zonked USB sticks

From Haines Brown <haines@HistoricalMaterialism.info>
Newsgroups comp.os.linux.hardware
Subject Re: Recover zonked USB sticks
References <878vmrgejw.fsf@engels.HistoricalMaterialism.info> <87ehwhqz11.fsf@araminta.anjou.terraraq.org.uk>
Date 2011-12-07 12:13 -0500
Message-ID <87pqg02tkp.fsf@engels.HistoricalMaterialism.info> (permalink)

Show all headers | View raw


Richard Kettlewell <rjk@greenend.org.uk> writes:

> Zero out the first sector, e.g.:
>
>   dd if=/dev/zero of=/dev/sdb count=1 bs=512

Well, I spoke too soon. Still can't partition the USB stick. 

When the stick processed as above is inserted, dmsg tells me that the
stick is "sdc: sdc1" (since initially writing I added another HD and
thus the stick no longer sdb). But only sometimes (see below).

The automount did not mount it, and the kernel fails to see it (df -k
returns nothing for it). 

When I try to mount it:

  $ sudo mount -t vfat /dev/sdc /media/usb0
  mount: wrong fs type, bad option, bad superblock on /dev/sdc,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

When I run cfdsk on the unmounted stick I now get:

   $ sudo cfdisk /dev/sdc
   sdc1 Boot Primary FAT16 <32M>  ---- 1008.43 MG

Isn't this what I should expect?

However, it may not be the stick's fault, for I try to run cfdsk on a
fresh mint unmounted stick, and get this error:

   # cfdisk /dev/sdd  (dmsg tells me the device is sd0: sdd1)   
   FATAL ERROR: Bad primary partition 0: Partition begins after
                          end-of-disk 

So obviously I'm doing something stupid along the line. 

I should mention that I have erratic USB optical mounse movements
(pointer hangs a bit, but this behavior comes and goes), and
often when I expect dmesg to tell me about a key I just inserted,
it instead tells me again about the mouse (I do pause):

  usb 4-1: Product: USB-PS/2 Optical Mouse
  usb 4-1: Manufacturer: B16_b_02
  usb 4-1: configuration #1 chosen from 1 choice
  input: B16_b_02 USB-PS/2 Optical Mouse as
    /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input90 
  generic-usb 0003:046D:C024.0056: input,hidraw0: USB HID v1.10 Mouse
    [B16_b_02 USB-PS/2 Optical Mouse] on usb-0000:00:1a.1-1/input0

Sounds like some kind of driver confusion, and the mouse driver is
being loaded for the USB stick.

Haines






Back to comp.os.linux.hardware | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Recover zonked USB sticks Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-05 11:37 -0500
  Re: Recover zonked USB sticks Lew Pitcher <lpitcher@teksavvy.com> - 2011-12-05 12:24 -0500
    Re: Recover zonked USB sticks Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-06 13:03 -0500
      Re: Recover zonked USB sticks "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2011-12-06 16:01 -0500
      Re: Recover zonked USB sticks Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2011-12-06 23:13 +0100
        Re: Recover zonked USB sticks Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-07 10:42 -0500
  Re: Recover zonked USB sticks Richard Kettlewell <rjk@greenend.org.uk> - 2011-12-06 19:29 +0000
    Re: Recover zonked USB sticks Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-07 10:39 -0500
    Re: Recover zonked USB sticks Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-07 12:13 -0500
      Re: Recover zonked USB sticks Richard Kettlewell <rjk@greenend.org.uk> - 2011-12-07 17:25 +0000

csiph-web