rh131笔记---unit3-kernel services

需要了解的内容也就是一个udev[@more@]

Optional sequence 2 : creating a file persistently under /dev/
Scenario: you want to make sure the /dev/myusbdisk filename is available after a reboot and can be used to mount a usb device
Deliverable : A system that provides /dev/myusbdisk automatically after a reboot.
System setup system running in runlevel 5
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博客 ” ,链接:http://blog.itpub.net/312079/viewspace-1007338/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-1007338/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值