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.
Im very new to Linux and today I decided to open an old photos cd-rom on my laptop. To do that, I learned about file systems and that I had to mount the cd-rom before I could open it's photos. I did it and it worked all well, and then I unmounted it so I could use a different cd. The problem is that everytime I insert a new cd it is automatically mounted, which I cannot understand why. Wasn't I supposed to mount it again every time I change the cdrom in the driver? I mean, that's what I learned. I already checked the fstab file to see if it was set to mount automatically but it's not.
Glad you're learning Linux! In most modern distributions, you do not have to manually mount a CD or DVD that you insert. In fact, I'm surprised you had to do it that first time?
Yes, in the first time when I pluged the cd-rom driver on my laptop I couldn't see its cd content available, so I had to mount it to be able to see it (I dont't know if it has something to do with the fact that this is a usb cd-rom driver because my laptop doesn't have one as most modern ones). But after mounting it for the first time, the process was automatic. I just had to unmount the current cd, put another one back in the driver and then it was automatically mounted with the cd contents available.
Once you plug in the USB CD ROM drive, the command
Code:
lsusb
will tell the name of the device that has just been plugged in. Your need to mount before seeing the first compact disc is necessary due to the system having to deal with the new USB device. Once the drive(-r) is actually mounted, the behavior will be the same as any other CD ROM. That is how it is no longer necessary to remount for each disc you would place in the drive. Mount works with the file /etc/fstab. USB devices should not be listed in this file as these devices are removable and the system cannot know if the device is plugged in at startup or not. Hope this helps.
Last edited by crajor; 05-28-2020 at 10:51 PM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.