Linux Load USB Driver

How do I load USB driver under Linux operating system using the command prompt?

usb-storage.ko is USB mass storage driver for Linux. It is usaully installed at the following location:
ls -l /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
The modprobe command is used to add and remove modules (device drivers) from the Linux Kernel. To load the usb-storage.ko driver type the following command as the root user:
# modprobe usb-storage
OR
$ sudo modprobe usb-storage
Type the following command to see all detected device drivers:
# tail -f /var/log/messages
Sample outputs:

ADVERTISEMENTS

Oct  7 01:00:54 vivek-desktop kernel: [16813.127866] Initializing USB Mass Storage driver...
Oct  7 01:00:54 vivek-desktop kernel: [16813.127984] scsi6 : SCSI emulation for USB Mass Storage devices
Oct  7 01:00:54 vivek-desktop kernel: [16813.128084] usbcore: registered new interface driver usb-storage
Oct  7 01:00:54 vivek-desktop kernel: [16813.128088] USB Mass Storage support registered.
Oct  7 01:00:59 vivek-desktop kernel: [16818.125391] scsi 6:0:0:0: Direct-Access     Seagate  FreeAgent        102D PQ: 0 ANSI: 4
Oct  7 01:00:59 vivek-desktop kernel: [16818.152306] sd 6:0:0:0: [sdd] 2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)
Oct  7 01:00:59 vivek-desktop kernel: [16818.153604] sd 6:0:0:0: [sdd] Write Protect is off
Oct  7 01:00:59 vivek-desktop kernel: [16818.155350] sd 6:0:0:0: [sdd] 2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)
Oct  7 01:00:59 vivek-desktop kernel: [16818.156597] sd 6:0:0:0: [sdd] Write Protect is off
Oct  7 01:00:59 vivek-desktop kernel: [16818.156605]  sdd: sdd1
Oct  7 01:00:59 vivek-desktop kernel: [16818.183660] sd 6:0:0:0: [sdd] Attached SCSI disk
Oct  7 01:00:59 vivek-desktop kernel: [16818.183732] sd 6:0:0:0: Attached scsi generic sg4 type 0
🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.