Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.