我尝试了以下命令,但找不到 USB 端口的名称
$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 04e8:6818 Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ cat /etc/fstab
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=8e93f00d-0154-495b-9c82-d9c485681cda / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=14fe526f-2b5c-429f-87dd-8ab40f4b5093 none swap sw 0 0
$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 1.900695] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.257708] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Run Code Online (Sandbox Code Playgroud)
上面的命令不会给USB端口的名称,我想输出作为/dev/sdax或ttysax或类似的东西。
任何其他命令和建议都会有所帮助。
你可以看看
fdisk -l
Run Code Online (Sandbox Code Playgroud)
插入手机之前和之后。
或观看
tail -f /var/log/messages
Run Code Online (Sandbox Code Playgroud)
并插入手机。
无论哪种方式,您都应该能够推断出该设备。