I'm under wsl on Windows 10 19043.1826, so I don't have the "wsl --mount" command so i found out that I could use usbipd to get the USB device 'inside' linux on wsl (Ubuntu 20.04).
then finally I get, and using command lsusb I got the answer:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 303a:80aa Espressif Franzininho WIFI w/Wroom
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After a long hours searching I "found the device" on /dev/bus/usb/001 folder and if I do a ls command on that I get the "files??" 001 and 005, as I understood (I think - wrong) my USB device is that 005
My device (that on Bus 001 Device 005 with ID 303a:80aa) has a file called "code.py" on root of USB device (and device is under FAT) and I want to access this file and root folder. How shold I do that?
I tried
mkdir /mnt/e
sudo mount --bind /dev/bus/usb/001/005 /mnt/e
but didn't work
I found a script here: https://unix.stackexchange.com/a/634849 But didn't understood how to use that I tried to put script on a file getdevice.sh (with nano), saved, and then tried to run
bash getdevice.sh 303a:80aa
but have nothing on response
I'm really asking here because I'm stucked literally for hours on internet seaching and trying a lot of things, and I believe this should be simple to access and I'm missing something.
with the command:
lsblk -o model,name,size,fstype,label,mountpoint
I get only block devices I think:
MODEL NAME SIZE FSTYPE LABEL MOUNTPOINT
Virtual Disk sda 256G
Virtual Disk sdb 256G /
lsblk -o model,name,size,fstype,label,mountpoint
and edit your original question to show the output. – sudodus Aug 04 '22 at 05:55