Page 2 of 2

Re: [SOLVED]Accessing an usb pendrive

Posted: Sat Apr 16, 2022 9:14 pm
by BrotSagtMist
Nothing of this tells you if its a thumbdrive or not. I already told you to read the connection type in /dev/disk/by-id.
But actually there is an even easier way, simply read "dmesg" and scan for "USB Mass Storage device detected".

Re: [SOLVED]Accessing an usb pendrive

Posted: Sun Apr 17, 2022 1:13 am
by pgimeno
dmesg is root-only in some systems.
https://bugs.debian.org/cgi-bin/bugrepo ... =842226#15

Re: [SOLVED]Accessing an usb pendrive

Posted: Mon Apr 18, 2022 5:12 pm
by DjPoke
BrotSagtMist wrote: Sat Apr 16, 2022 9:14 pm Nothing of this tells you if its a thumbdrive or not. I already told you to read the connection type in /dev/disk/by-id.
But actually there is an even easier way, simply read "dmesg" and scan for "USB Mass Storage device detected".
I'll search about /dev/disk/by-id.

Re: [SOLVED]Accessing an usb pendrive

Posted: Mon Apr 18, 2022 6:25 pm
by milon
FYI, dmesg also doesn't seem to give the mountpoint or device path, so that doesn't seem like a solution either - at least for me on Linux Mint, which is based off Debian/Ubuntu.