Red Hat Enterprise Linux Diagnostics and Troubleshooting
Configure options for the usb-storage kernel module.
Outcomes
You should be able to configure a module option for the usb-storage driver.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
[student@workstation ~]$ lab start hardware-review
This command confirms that the required host for this exercise is accessible and sets up the needed modules for the requested activities.
Instructions
Your servera system has issues with a removable storage device that uses the usb-storage driver. After testing and research, you determined that your device incorrectly reports being write-protected.
The USB vendor ID for this device is 0513 and the device ID is 0132.
Documentation for the usb-storage module option is in the kernel-parameters.txt file from the kernel-doc package.
You are asked to configure the servera system so that the usb-storage module ignores the write-protect mode from that device.
Install the kernel-doc package, and search for options that relate to
usb-storagein thekernel-parameters.txtfile.Log in to
serveraand switch to therootuser.[student@workstation ~]$
ssh student@servera...output omitted... [student@servera ~]$sudo -i[sudo] password for student:student[root@servera ~]#Install the kernel-doc package.
[root@servera ~]#
yum install kernel-docOpen the
/usr/share/doc/kernel-doc*/Documentation/admin-guide/kernel-parameters.txtfile and search forusb-storage. Identify which parameter might be useful, and which flag to use.The
quirksparameter seems useful, with thew (NO_WP_DETECT)flag added.
Create a permanent configuration to force-enable the
NO_WP_DETECTflag for the USB device with vendor ID0513and product ID0132.