0

I've mounted a cdrom device with mount -o exec /dev/sr0 /media/cdrom0, since I couldn't execute files on it, when the drive was initially mounted by the virtual machine.

Now, when I run cat /proc/mounts, I get the following output:

/dev/sr0 /media/cdrom0 iso9660 ro,relatime 0 0

It seems that the drive is still mounted read-only, but now I can execute files on it without errors.

Any ideas?

2

/proc/mounts and mount don’t show settings which are included in the default settings, so you can assume that an entry which doesn’t show the contrary is using the defaults (see the documentation there for defaults):

rw, suid, dev, exec, auto, nouser, and async.

If /proc/mounts doesn’t list noexec, then the file system is mounted with the exec permission.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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