LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-26-2009, 04:36 AM   #1
w.prajakta
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Angry USB pendrive is not getting detected


my usb pendrive is nt getting detected.plz help me.this is what i get after i type on terminal dmesg | tail
[ 2241.907725] sd 8:0:0:0: [sdb] Write Protect is on
[ 2241.907730] sd 8:0:0:0: [sdb] Mode Sense: 23 00 80 00
[ 2241.907734] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 2241.911706] sd 8:0:0:0: [sdb] 501760 512-byte hardware sectors (257 MB)
[ 2241.912333] sd 8:0:0:0: [sdb] Write Protect is on
[ 2241.912336] sd 8:0:0:0: [sdb] Mode Sense: 23 00 80 00
[ 2241.912338] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 2241.912345] sdb: unknown partition table
[ 2241.915034] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[ 2241.915091] sd 8:0:0:0: Attached scsi generic sg2 type 0
and whn i type sudo fdisk -l /dev/sdb
Disk /dev/sdb: 256 MB, 256901120 bytes
8 heads, 62 sectors/track, 1011 cylinders
Units = cylinders of 496 * 512 = 253952 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table
is what i get.plz help me out.
 
Old 11-26-2009, 06:23 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I can't help you with your direct question, but I would have thought that if this was genuinely urgent that you would have done less to put people off from answering your question.

Your title is not what we would consider a helpful one (it should at least mention that it is a USB pendrive issue, and 'help me', a series of question marks and 'its urgent' are all individually things that will deflect some people who would otherwise like to help; combined I can only assume that these will put off many potential respondents).

Note also that text-ese and similar abbreviated forms (nt, plz, whn and the abuse of capitals) are against the rules of the forum, so that will put others off.

So, the question you have to ask yourself is, did you want a helpful answer?
 
Old 11-26-2009, 06:52 AM   #3
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
wow that's urgent

Yeah posts with that title piss off a lot of people. I think I read "don't posts things like `help me` or `it's urgent`" like a thousand times when I registered.

And if it's on dmesg, your pendrive is obviously getting detected. As it says, it just doesn't find a working partition table. If you formatted it once or did a dd if=somefile of=/dev/sdb and changed the partition table, that happens sometimes. You may try unplugging it and plug it back or restart the computer. Otherwise your pendrive is probably just broken, bad luck.
 
Old 11-26-2009, 10:44 AM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
lulz, ur dsk needz 4matign.

Annoying, isn't it. Whack write protection off, and take a look at
Code:
man fdisk
, it'll help you format your pendrive. If there is anything important on there, its fixable, but to be honest, its not easy to do; you may feel better sacking it off.

If you don't want to use fdisk, there are many graphical front ends.
 
Old 11-29-2009, 08:29 PM   #5
fmillion
Member
 
Registered: Nov 2006
Posts: 93

Rep: Reputation: 27
from your post it looks like your flashdrive is being detected by Linux but is not mounting.

First try mounting the raw /dev/sdx device (e.g. mount /dev/sdb /mnt/point).

If that fails, you can try running fsck on the raw device, not on a partition. From the output of your dmesg it looks like the drive does not contain a partition table, but it's possible a filesystem exists without the use of a partition table at all (some drives are formatted this way, even though it's not standard nor recommended practice!).

If this drive works anywhere else, like on a Windows box, I'd recommend backing up all data, using Linux to partition it with a single FAT partition and then copying data back.

fm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my usb pendrive is not been detected in redhat 5.0. I shubham_srv1 Linux - Newbie 2 06-03-2009 03:00 AM
Problem with usb pendrive and usb modem ZTE ZXDSL 852 AM33N Linux - Hardware 3 12-10-2008 03:25 AM
usb pendrive in dell inspiron with 8 usb ports sergioricardo Linux - Hardware 4 02-12-2008 11:05 AM
Conflicting USB mouse & usb pendrive on Slackware 11.0 aruntom55 Slackware 3 08-26-2007 01:34 AM
usb mouse NOT detected, but usb keyboard IS detected mr.anderson Slackware 16 04-26-2006 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration