LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using noauto option for filesystem in fstab yet the filesystem mounts on boot (https://www.linuxquestions.org/questions/linux-newbie-8/using-noauto-option-for-filesystem-in-fstab-yet-the-filesystem-mounts-on-boot-4175444001/)

Alpha90 01-03-2013 12:55 PM

Using noauto option for filesystem in fstab yet the filesystem mounts on boot
 
The last two entries in my fstab define my optical disc drives and for some reason they are mounting at boot time when I defined in my fstab the noauto option
These are my entries:
Code:

#Entry for HD-DVD / Bluray / DVD Drive:
/dev/sr0                                        /media/cdrom0  udf,iso9660    noauto,user,rw  0      0
#Entry for Bluray / DVD Drive:
/dev/sr1                                        /media/cdrom1  udf,iso9660    noauto,user,rw  0      0

I do not understand why my CD's mount at boot (I have a windows partition for windows video games that do not play well with wine and its just easier to leave the discs in when I am into a game.) Also i do not want to disable my Optical Disc drives as I do use them with my linux system.

I am looking to find a way to keep them from not mounting at boot i assumed this would work and for awhile it did but different CD / DVD's produce different results. I do not know if udev is over riding my fstab options or if there is some problem i had not even considered but i could use some advice on how to fix my problem.

kbp 01-04-2013 06:12 AM

Which window manager are you running? .. Gnome will automount cd's irrespective of what you put in /etc/fstab.

jpollard 01-04-2013 01:10 PM

You have a structure error there:

Code:

/dev/sr0    /media/cdrom0  udf,iso9660    noauto,user,rw  0      0
You can have one of udf or iso9660, but not both. I believe what is happening is that the options (noauto,user,rw) are being ignored and treated as the fifth field (and being 0).

Normally you would not have this in the /etc/fstab anyway. This is usually handled by the udev service as the contents of a CD/DVD can be things other than udf or iso9660.

On second thought, it shouldn't be doing anything during boot... The error should prevent it from mounting.

I would guess udev is actually mounting it.

Alpha90 01-05-2013 03:19 AM

The fs type was auto generated by one of the gnome applets that deals with mounting.. I just modified the options manually.. Is there a beginners manual to udev ? I've tried to read online docs and they kinda confused me.

jpollard 01-05-2013 10:58 AM

they confuse everybody. Unfortunately, I don't know of any introduction to udev. It seems to get broken every 6 months (or less) for one thing or another.


All times are GMT -5. The time now is 09:03 AM.