博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RH131课文中自动挂载u盘的一道题目
阅读量:2453 次
发布时间:2019-05-10

本文共 1372 字,大约阅读时间需要 4 分钟。

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-245863/,如需转载,请注明出处,否则将追究法律责任。

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

你可能感兴趣的文章
愚人节导入_愚人节Python恶作剧
查看>>
正则表达式科学计数法_数据科学家的正则表达式
查看>>
sql基础_SQL基础
查看>>
一个工作表可以有两个事件吗_你有两个工作
查看>>
Raul的新机器学习书!
查看>>
python制作可视化图表_可视化数据–用python覆盖图表
查看>>
双耳节拍 枕头_枕头3-0-0不在
查看>>
输入/help获取更多指令_更多HTTP / 2新闻
查看>>
rodeo python_Rodeo 1.0:台式机上的Python IDE
查看>>
MongoDB和Python简介
查看>>
django 认证_Django中的LinkedIn社会认证
查看>>
上海流浪汉沈_Windows上的流浪汉
查看>>
2016年12月14日的安全链接垃圾邮件
查看>>
535cf_CF对象存储
查看>>
命题逻辑真值表_命题逻辑
查看>>
openbsd_OpenBSD对psutil的支持
查看>>
emacs python_Emacs –最好的python编辑器?
查看>>
熊猫作弊表(通过yhat)
查看>>
将React Native升级到最新版本的最简单方法
查看>>
python 图像格式转换_如何用六行Python构建图像类型转换器
查看>>