Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I have to use a lot of CDs and I need to insert them, see their contents and change them quickly. How can I optimize their mounting and unmounting? Will there be a problem if I just remove them from drive and change them without clicking on eject option from their icon on desktop?
We usually use mount and umount options where we want the data in cache to be written on the device. For example if you connect a USB drive and copy something onto it then it is always advisable to umount it instead of directly removing it because the data is actually written just before the device is unmounted. This is applicable in the situation where the device is mounted with async option.
CD-ROM is mounted as read only device so there shouldn't be a problem if you directly change the CD instead of ejecting it and then removing it. But if you go by procedure then it is good to eject and then insert the new one. The reason being even if you remove the CD the system for a fraction of time keeps the old image and you might get invalid handle error if you directly put in the new CD.
I have to work in a windoz program thru wine which reads CDs. I have set cdrom folder in wine to /cdrom. But CDs are mounted in a subfolder of /media folder created according to label of CD, eg /media/123456. Hence, with every change of CD, I have to give commands 'sudo umount /cdrom' and 'sudo mount /dev/sr0 /cdrom'. I windoz, one can simply remove CD and insert second CD and continue work in program.
Nope, /etc/fstab is referred by the system only at the time of booting. If you put the CD in and the boot up your first then it will mount that CD to /cdrom directory. However, when you will change CDs it will mount to default mount point which is /media unless you specify manually to mount at some other location.
Nope, /etc/fstab is referred by the system only at the time of booting.
No so! I have this in my fstab:
/dev/sdb1 /media/usb ext2 noauto,noatime,users 0 0
and all my usb memory sticks mount to /media/usb when inserted (auto mounting is on).
It automounts only if a CD is there at boot time (gives an error message if no CD is present in the drive). There is no automounting if cd is inserted later on (not even on /media/cd-label folder).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.