cat /proc/sys/dev/cdrom/info
轻易得到光驱的信息,其中包括光驱的名称.
drive name: hdd //设备文件名
drive speed: 4
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 1
Can write DVD-R: 1
Can write DVD-RAM: 1
Can read MRW: 1
Can write MRW: 1
Can write RAM: 1
- 本文固定链接: http://www.three123.com/2017-11/find-the-device-name-of-cd-rom-under-linux/
- 转载请注明: Carr 于 Carr的仓库 发表