lsusbblk is the result of a personal itch to simply know more about the attached usb block devices (usb memmory sticks or disks) that has been connected to the computer. The ultimate goal has been to identify the device and what the device claimes to be, as opposed to, what the device has negotiated with the operating system. This is not achieved and is possibly not achivable without adding special hardware.
The application is a command line utility that displays information to the user about the connected usb block devices. It can also be used to wait for the next device to be attached. This can be very usefull is you intend to do some destructive operation on the device such as a reformating.
The application is also created to be easy to utilise in shell scripting.
user@computer:~/$ lsusbblk -l
DEVICE | USBVER | VENDOR | MODEL | ID | SIZE | SERIAL | LABEL |
-------- + ------- + ------ + ------- + --------- + ------ + ------------ + ----- +
/dev/sdd | USB 3.2 | ROG | ESD-S1C | 0b05:1932 | 465.8G | MBD0AP009494 | None |
user@computer:~/$ lsusbblk -J
{"/dev/sdd":{"device":"/dev/sdd","vendor":"ROG","model":"ESD-S1C","size":"465.8G","label":"None"}}
user@computer:~/$ lsusbblk -f -q -p device
/dev/sdd
python3-colorama python3-pyusb python3-flake8 python3-pylint python3-mypy
Clone the git hub repository to your local repository.
git clone [email protected]:lowkey3838/lsusbblk.git
Create a python environment at the project level
python -m venv .
Setting up the build enviorment.
make setup
Create the build enviorment.
make