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".
[SOLVED]Accessing an usb pendrive
- BrotSagtMist
- Party member
- Posts: 657
- Joined: Fri Aug 06, 2021 10:30 pm
Re: [SOLVED]Accessing an usb pendrive
dmesg is root-only in some systems.
https://bugs.debian.org/cgi-bin/bugrepo ... =842226#15
https://bugs.debian.org/cgi-bin/bugrepo ... =842226#15
Re: [SOLVED]Accessing an usb pendrive
I'll search about /dev/disk/by-id.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".
Re: [SOLVED]Accessing an usb pendrive
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.
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests