Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to /etc/fstab or use the full mount command. Ensure that /mnt/cdrom exists too.
The options users,noauto,ro allow any user to mount and unmount cdroms, it not automouted at boot and cdroms are mounted read only.
If you don't trust your users, you can add other options, like noexec, to prevent programs on optical media from being run.
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55
Rep:
mount /dev/cdrom
This command is not the complete command to mount a filesystem. Issuing this command will search for an entry for /dev/cdrom in the fstab, and in your case since this is missing, it will kick you out with this error.
Complete mount command is:
mount /dev/cdrom /mnt/cdrom
And if you want this to be mounted on system reboot too, as in the entry in the fstab and do "mount -a". This mount -a will re-read the fstab and remount what ever file system is not mounted.
So once you do mount -a and then a df -h, you must see your cdrom mounted on /mnt/cdrom .
I issued this comand and i got a error that mount point dose not exist and i created a dir in mnt with the name of cdrom,then it's works fine for me
Quote:
And if you want this to be mounted on system reboot too, as in the entry in the fstab and do "mount -a". This mount -a will re-read the fstab and remount what ever file system is not mounted.
So once you do mount -a and then a df -h, you must see your cdrom mounted on /mnt/cdrom .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.