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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-28-2019, 09:40 AM
|
#1
|
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:
|
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.
|
|
|
12-28-2019, 10:07 AM
|
#2
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,227
|
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?
|
|
|
12-28-2019, 10:17 AM
|
#3
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,384
|
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
|
|
|
12-28-2019, 10:40 AM
|
#4
|
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:
|
Devices in /dev/
unplugging the USB-Stick in question,
2 files get removed from the /dev/-directory , /dev/hidraw4 and hidraw3 .
hmmm.., further suggestions ?
|
|
|
12-28-2019, 11:06 AM
|
#5
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,384
|
Code:
udevadm info -a /dev/hidraw0
Then plug the device in. Post the new lines.
Then the output of
And see if the device is any good or not, what partitions it has on it, and what file system.
|
|
|
12-28-2019, 11:31 AM
|
#6
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,311
|
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.
|
12-28-2019, 12:37 PM
|
#7
|
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:
|
.., BBL , be back later..., i have to double check something...
Last edited by Michaelx; 12-28-2019 at 12:52 PM.
|
|
|
12-29-2019, 03:40 AM
|
#8
|
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:
|
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
|
|
|
01-10-2020, 10:38 AM
|
#9
|
Member
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252
Rep:
|
dmesg use needs sudo / root privilege.
You can try in a terminal window:
|
|
|
01-10-2020, 11:02 AM
|
#10
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,206
|
Quote:
Originally Posted by Michaelx
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.
|
|
|
All times are GMT -5. The time now is 01:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|