CD-ROM支架中的“ro”是否重要?


1

据我所知,/dev/cdrom通常提供只读设备。不过也有消息表明添加ro/etc/fstab和别人不。

两者之间有区别吗?

/dev/cdrom /mnt/cdrom auto noauto,user 0 0

/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0

还是会mount一直添加ro?如果是这样,它从哪里知道该设备是只读的?

Answers:


2

唯一的区别是你得到一条消息,例如

mount: block device /dev/sr1 is write-protected, mounting read-only

'ro'避免了这个消息。

设备驱动程序将告诉操作系统该设备是写保护的。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.