Linux which dev is usb drive




















Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 9 years, 5 months ago. Active 1 month ago. Viewed 26k times. Improve this question. G-Man Says 'Reinstate Monica' Add a comment. Active Oldest Votes. If you have lshw installed, Huygens' answer may also work: lshw -class disk -class storage less And look through the output for your disk.

Improve this answer. Alexios Alexios You could use lsblk to report TRAN device transport type : lsblk -do name,tran NAME TRAN sda sata sdb sata sdd usb where -d or --nodeps means don't print slaves and -o name,tran or --output name,tran means list only name of device and device transport type. I was looking for this in the answers — Eduard Florinescu. Anyway, you might still find it useful: sudo lshw -class disk -class storage For each device it will print the logical name e.

Sample output: [ If the USB port is coming loose, you may be able to solder it back into place. Of course, you should already know how to solder; never attempt DIY jobs without prior experience.

Also, check for dust and dirt in your USB ports, especially those around the back of your PC where dust regularly collects. Dust is the enemy of PCs, so it is worth keeping your system in a dust free environment to encourage performance. Use a can of compressed air to disperse dust and dirt.

Can you return your USB device? If it's new, then probably. The problem is, unless it is explicitly labeled as running under Linux, then, the retailer is unlikely to accept a return. You may need to be a little selective with the facts you share with them….

In some casessuch as if you're using a laptoppower issues might be affecting its ability to detect USB devices. The autosuspend setting is designed to reduce power usage on Linux laptops, but it can prove counterproductive.

First, check whether autosuspend is causing the problem. The problem occurs when the power management software decides to stop sending power to the USB port. The next step is to ensure this doesn't happen again. On Ubuntu If you're using an older version of Ubuntu, different commands are required.

For example, the following command line tricks are for Ubuntu This should return a value of 2 , which means autosuspend is enabled. This time, the value returned should be You've disabled autosuspend, so USB devices connected to your laptop should not fail due to power issues. Please keep in mind that all comments are moderated and your email address will NOT be published.

Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam.

Learn how your comment data is processed. If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? Related Posts. When i plug in USB device in Linux, its not detecting anything. Can we have solution for this? Of course… Still no solution in sight! Daniel Try to contact the developers of Samsung unified linux driver for any assistance. Consider an article that explains how to accomplish that. Maybe then I can figure out why it isn't working for me.

Ok, I will post explanation. If you find what wrong, please let me know MountainX Ok: on Ubuntu you have to replace dialog on line 24 by gdialog. I will test it later today. Show 12 more comments. Definitely the easiest. Petr Uzel Petr Uzel 6, 3 3 gold badges 28 28 silver badges 25 25 bronze badges. Max Max 5 5 silver badges 14 14 bronze badges.

Thanks cas, this helped me verify what I was seeing in dmesg. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete? Featured on Meta. Now live: A fully responsive profile.



0コメント

  • 1000 / 1000