LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-28-2019, 09:40 AM   #1
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Rep: Reputation: 15
Exclamation USB-Stick not recognized, can not dd


Hi, i inserted a USB-Stick into the PC, now it is not recognized.
If i try to do a

1.cfdisk, it gives an error:
"Error: Error opening /dev/sdc: No medium found
Invalid device"

2. dd:
dd: opening `/dev/sdc': No medium found

3. fdisk :
Error: Error opening /dev/sdc: No medium found
r Retry
c Cancel

but the device is showing in /dev/ - directory..., an
.

I was able to access it earlier, but now i got stuck.
Any instructions , or help ?

Last edited by Michaelx; 12-28-2019 at 09:49 AM.
 
Old 12-28-2019, 10:07 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227

Rep: Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345
If it mentions /dev/sdc, then it can see that it's a storage device. The problem is that it doesn't work. I'd say that the inability to write to it with dd is the crucial test. Since that doesn't use a filing system, it should work on any device, however corrupt. So, it looks like you have a dead usb stick. They don't last for ever, unfortunately, as I've experienced myself. The other possibility is a problem with the socket. Have you tried it in different sockets?
 
Old 12-28-2019, 10:17 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,384
Blog Entries: 7

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
Start with the basics.
How do you know that it is /dev/sdc?
Have you been mounting the stick, then removing it without umounting? Or have you been playing with fdisk? Did you dd of=/dev/sdc by accident?

With the stick plugged in, what is the output of
Code:
fdisk -l
or
parted -l
 
Old 12-28-2019, 10:40 AM   #4
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
Devices in /dev/

unplugging the USB-Stick in question,

2 files get removed from the /dev/-directory , /dev/hidraw4 and hidraw3 .

hmmm.., further suggestions ?
 
Old 12-28-2019, 11:06 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,384
Blog Entries: 7

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
Code:
udevadm info -a /dev/hidraw0
Code:
dmesg -w
Then plug the device in. Post the new lines.
Then the output of
Code:
fsisk -l
And see if the device is any good or not, what partitions it has on it, and what file system.
 
Old 12-28-2019, 11:31 AM   #6
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,311
Blog Entries: 48

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Michaelx,

It sounds like your USB drive may be faulty.

Try installing dcfldd, zero the drive and then verify that it has been zeroed.

Then compare the two files with the comparison command (cmp).

dcfldd:
http://dcfldd.sourceforge.net/

Code:
sudo apt install dcfldd
Insert the USB drive and zero it:

Code:
sudo su

# dcfldd if=/dev/zero of=/dev/sdc bs=1M
Then remove and reinsert the USB drive.

Code:
# cmp /dev/zero /dev/sdc
My first output was:

7680 blocks (7680Mb) written.dcfldd:: No space left on device.

The cmp will hopefully fail at the point where it has reached the end of the drive.

If it fails before then, the drive isn't usable any more.


My second output was:

Code:
/dev/zero /dev/sdc differ: byte 1011713, line 1
which indicated a faulty drive.
 
1 members found this post helpful.
Old 12-28-2019, 12:37 PM   #7
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
.., BBL , be back later..., i have to double check something...

Last edited by Michaelx; 12-28-2019 at 12:52 PM.
 
Old 12-29-2019, 03:40 AM   #8
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
teckk

udevadm info -a /dev/hidraw0

dmesg -w
Then plug the device in. Post the new lines.

teckk, unfortunately, those commands do not work with the options you supplied, but thanks anyways....
I am using a distro based on debian 6.x
 
Old 01-10-2020, 10:38 AM   #9
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
dmesg use needs sudo / root privilege.
You can try in a terminal window:
Code:
sudo dmesg
 
Old 01-10-2020, 11:02 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,206
Blog Entries: 20

Rep: Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758
Quote:
Originally Posted by Michaelx View Post
unplugging the USB-Stick in question,

2 files get removed from the /dev/-directory , /dev/hidraw4 and hidraw3 .

hmmm.., further suggestions ?
Then it isn't recognising the stick as a storage device. hidraw means raw human interface device, something like a USB keyboard or mouse. Seriously weird.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] USB stick not recognized DeBeeNeeBus Debian 16 01-24-2011 03:01 PM
USB Stick not recognized in Linux PPC e_pech Linux - Embedded & Single-board computer 2 01-12-2010 05:06 PM
Pinnacle PCTV HD Pro Stick (usb) not being recognized in Fedora 10 AskSave Linux - Hardware 7 02-13-2009 11:26 AM
USB Flash stick not recognized in Suse 10.3 donquixote1 Linux - Hardware 17 05-01-2008 05:14 AM
USB memory stick not recognized Filip Viorel Linux - Hardware 1 03-29-2006 01:50 AM

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

All times are GMT -5. The time now is 01:00 PM.

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