USB stick offer

pjohno

New member
I've just got a free USB stick from PCS for filling out a review online. However ubuntu 11.10 won't mount it rendering it useless to me.

Anyone got any ideas?

dmesg output:
[13393.948119] usb 3-1: new high speed USB device number 5 using ehci_hcd
[13394.194482] scsi11 : usb-storage 3-1:1.0
[13395.195021] scsi 11:0:0:0: Direct-Access Generic Flash Disk 8.00 PQ: 0 ANSI: 2
[13395.357341] sd 11:0:0:0: Attached scsi generic sg6 type 0
[13395.359043] sd 11:0:0:0: [sdf] 8376320 512-byte logical blocks: (4.28 GB/3.99 GiB)
[13395.359714] sd 11:0:0:0: [sdf] Write Protect is off
[13395.359723] sd 11:0:0:0: [sdf] Mode Sense: 03 00 00 00
[13395.360213] sd 11:0:0:0: [sdf] No Caching mode page present
[13395.360220] sd 11:0:0:0: [sdf] Assuming drive cache: write through
[13395.363635] sd 11:0:0:0: [sdf] No Caching mode page present
[13395.363643] sd 11:0:0:0: [sdf] Assuming drive cache: write through
[13395.434860] sdf: sdf1
[13395.437205] sd 11:0:0:0: [sdf] No Caching mode page present
[13395.437214] sd 11:0:0:0: [sdf] Assuming drive cache: write through
[13395.437221] sd 11:0:0:0: [sdf] Attached SCSI removable disk

lsusb
Bus 003 Device 005: ID 0011:7788

Cheers
 

pr1s0ner

Well-known member
if you make a folder that you want to mount to, open a command and try

sudo mount -t vfat /dev/sdf1 "path to folder" -o uid=1000,gid=1000,utf8,dmask=027,fmask=137

edit - I used the wrong device name
 
Last edited:

mishra

Rising Star
Is there any partition created on that stick? Have you got any other computer that you can try USB with? (maybe you are unlucky and USB is dead on arival :(

Also, stick USB into your PC and run following command: sudo fdisk -l
let us know what is the output...

Not sure about the command from pr1s0ner, but that should say "/dev/sdf1" not "/dev/sdb1", correct? To elaborate more, this should do:
sudo mkdir /tmp/usb
sudo mount /dev/sdf1 /tmp/usb

Assuming your USB stick is getting recognized as /dev/sdf . But that you should find out from running: sudo fdisk -l
 
Last edited:

pjohno

New member
Thanks for the quick replies. Running fdisk -l or gparted hangs forever, output in dmesg below.
[356845.340654] sd 8:0:0:0: [sdc] Unhandled error code
[356845.340661] sd 8:0:0:0: [sdc] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[356845.340668] sd 8:0:0:0: [sdc] CDB: Read(10): 28 00 00 7f cf f8 00 00 01 00
[356845.340686] end_request: I/O error, dev sdc, sector 8376312
[356845.340694] Buffer I/O error on device sdc, logical block 1047039
[356876.100036] usb 1-7: reset high speed USB device using ehci_hcd and address 11
According to a post on the net it appears that the number of blocks being reported is incorrect. The drive is 4Gb but 4.28Gb are being reported:
sd 8:0:0:0: [sdc] 8376320 512-byte logical blocks: (4.28 GB/3.99 GiB)
The post is here: http://diegovicentini.blogspot.com/2011/09/usb-flash-disk-mount-problem-solved.html
Unfortunately I need a windows PC to change it back. Will report back if I manage to fix it.
 

mishra

Rising Star
Look at the guide:
here or here

... but if fdisk hangs, you may not be that lucky with that.

Please note: Before you do any of the above steps MAKE SURE you are operating on USB stick device and NOT on your Linux/Windows partition!!!

ps. Also check if following will respond: sudo cfdisk /dev/sdc (assuming "dmesg" will again report your USB stick as "/dev/sdc" )
Just be extra careful when doing any operations on partitions cause, one silly step will cause you a lot of work and possible lost of data, so please be warned.

In the end of the day cost of 4GB USB stick is like £4 (ish), so if all will fail just throw it to bin, and get a new one. Time is money... really :D but good luck anyway. over.
Ah and one more thing... if drive is reporting I/O errors it means most likely it's dead or dying, yes it may be just incorrect block size thing, but you may be fixing a broken drive... so maybe just get a new one = peace of mind.
 
Last edited:

pr1s0ner

Well-known member
Ive had similar sounding block reporting errors on drives in the past, which the more hands on sfdisk has managed to rectify. You really need to know what the values should be in order to fix it though, so without a working drive it may not be that simple :(
 
Top