I've recently spun up a Ubuntu box (running 12.04, kernel 3.8.0-44-gen), and am having difficulty connecting any USB/flash/pen drives to it. It shows up when I run lsusb:
Bus 002 Device 012: ID 0781:5202 SanDisk Corp.
But no new device is found when I run fdisk:
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 233381887 116689920 83 Linux
/dev/sda2 233383934 250068991 8342529 5 Extended
/dev/sda5 233383936 250068991 8342528 82 Linux swap / Solaris
Everything I've read says it should show up as a new device similar to /dev/sdb, but it does not, lsblk returns similar results. I also don't see any obvious errors in the output to dmesg:
[18224.059027] usb 2-1.7: USB disconnect, device number 12
[18228.085986] usb 2-1.7: new high-speed USB device number 13 using ehci-pci
[18228.178716] usb 2-1.7: New USB device found, idVendor=0781, idProduct=5202
[18228.178721] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18228.178724] usb 2-1.7: Product: Relay UFD
[18228.178727] usb 2-1.7: Manufacturer: *********
[18228.178729] usb 2-1.7: SerialNumber: ***********************
At this point I'm guessing there's an error being thrown somewhere, but have no idea where to look.
Any help will be met with adoration, maybe even a little worship.
Looks like fdisk is working with the wrong device (sda), this link how-to-determine-which-sd-is-usb has nice explanations on how to find the device name of a usb drive (this could work also "ls -l /dev/disk/by-id/usb* | grep sd."). When you have the correct device run fdisk again with it.