Instructions
1, modify the udev subsystem in such a way that /dev/myusbdisk gets automatically create at boot time.
2 reboot the system
Plug a sub key to your system and verify that you now have a file named /dev/myusbdiskk
3 MANDATORY CLEANUP:remove the file you have created under /etc/udev/rules.d/and uplug the usb device.
Optional sequence 2 solutions
1,Modify the udev subsystem in such a way that /dev/myusbdisk gets automaticall created at boot time
Create a file named /etc/udev/rules.d/99-usb.rules and insert the following statement in it :
KERNEL==”sdb1”,NAME=”myusbdisk”
Note system with ide haddrives use sda for the first USB disk.
2, reboot he system
Init 6
Plug a usb key to your system and verify that you now have a file named /dev/myusbdisk
ls –l /dev/myusbdisk
3, MANDATORY CLEANUP:remove the file you have created under /etc/udev/rules.d/ and uplug the USB device:
Rm /etc/udev/rules.d/99-usb.rules
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-245863/ ,如需转载,请注明出处,否则将追究法律责任。