• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux USB mounting question

robothouse77

Golden Member
Hello,
I hope this is in the appropriate forum.

My question is: i know when you add a device to the usb hub, it will show up in the /proc/bus/usb/devices "file". In this file it will tell you various things such as what bus it's on and what port it is attached to. however, it won't tell you which device it is ID as, such as /dev/sda or /dev/sdb, etc. what i want to know is, is there a way to look at where it gets ID (/dev/sdX) and what port and bus it is on (as found in proc/bus/usb/devices) thanks for your help. please let me know if this isn't clear.
 
Try This

tail /var/log/messages | grep sda . There Might Be An Easier Way But I'm just posting the way I know :-0
 
tail /var/log/messages | grep sda . There Might Be An Easier Way But I'm just posting the way I know :-0

That will only work if it's assigned sda, if you have more than one USB or SCSI device it could be sdb, sdc, sdc, etc.
 
What I do with usb devices is to use the dmesg command.

I plug in the device
I use dmesg
then I unplug it,
then look at the dmesg output again. That will tell you pretty much everything you need to know usually.
 
Yeah You're Right Nothinman , sorry bout that 🙂

robothouse77 do you know how to make a bash script ?

You can run "tail /var/log/messages | grep sd" as a script so that you dont have to type in all that gobbleish every time you mount a usb thumb drive
 
I found mine easily by just running "tail /var/log/messages" and watching the output while I plugged in my USB thumb drive. It came up with a few lines about the make/model and what device node was assigned to it.
Then I could add a line for it in /etc/fstab and have easy access to mounting/unmounting the drive via the KwikDisk KDE applet.
 
Back
Top