Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As far I know, /dev/cdrom usually provides a read-only device. However, some sources suggest to add ro in the /etc/fstab and others not.

Is there a difference between

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

and

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

or will mount add always ro? And if so, from where does it exactly know that the device is read- only?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The only difference is that you get a message e.g.

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

'ro' avoids the message.

The device driver will tell the OS that the device is write protected.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.