Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #158300 > unrolled thread

How to disable automatic mounting of CDROM?

Started byRichard Owlett <rowlett@cloud85.net>
First post2015-09-26 16:20 +0200
Last post2015-10-04 18:10 +0200
Articles 12 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-09-26 16:20 +0200
    Re: How to disable automatic mounting of CDROM? Brian <ad44@cityscape.co.uk> - 2015-09-26 17:30 +0200
      Re: How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-09-26 18:30 +0200
        Re: How to disable automatic mounting of CDROM? rlharris@oplink.net - 2015-09-26 20:30 +0200
        Re: How to disable automatic mounting of CDROM? Brian <ad44@cityscape.co.uk> - 2015-09-26 21:50 +0200
          Re: How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-09-27 00:20 +0200
            Re: How to disable automatic mounting of CDROM? Brian <ad44@cityscape.co.uk> - 2015-09-27 13:30 +0200
              Re: How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-10-04 16:50 +0200
                Re: How to disable automatic mounting of CDROM? Lisi Reisz <lisi.reisz@gmail.com> - 2015-10-04 17:10 +0200
                  Re: How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-10-04 17:20 +0200
                    Re: How to disable automatic mounting of CDROM? Lisi Reisz <lisi.reisz@gmail.com> - 2015-10-04 17:50 +0200
                      Re: How to disable automatic mounting of CDROM? Richard Owlett <rowlett@cloud85.net> - 2015-10-04 18:10 +0200

#158300 — How to disable automatic mounting of CDROM?

FromRichard Owlett <rowlett@cloud85.net>
Date2015-09-26 16:20 +0200
SubjectHow to disable automatic mounting of CDROM?
Message-ID<qcYuu-2mn-15@gated-at.bofh.it>
I'm trying to troubleshoot a problem.
That Jessie (and IIRC Squeeze) automatically mount the cdrom 
drive every time the drawer is closed is a nuisance requiring to 
manually run umount before I can proceed.

/etc/fstab has noauto under options.

Where else should I look.
I would prefer to disable on a per session basis.
Total disabling is acceptable.

TIA

[toc] | [next] | [standalone]


#158308

FromBrian <ad44@cityscape.co.uk>
Date2015-09-26 17:30 +0200
Message-ID<qcZAe-3T8-13@gated-at.bofh.it>
In reply to#158300
On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:

> I'm trying to troubleshoot a problem.
> That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
> time the drawer is closed is a nuisance requiring to manually run umount
> before I can proceed.
> 
> /etc/fstab has noauto under options.

Probably nothing to do with your problem. From fstab(5)

  noauto do not mount when "mount -a" is given (e.g., at boot time)
 
> Where else should I look.
> I would prefer to disable on a per session basis.
> Total disabling is acceptable.

Automounting is usually handled by the file manager of whatever DE you
are using.

[toc] | [prev] | [next] | [standalone]


#158312

FromRichard Owlett <rowlett@cloud85.net>
Date2015-09-26 18:30 +0200
Message-ID<qd0wi-5ew-13@gated-at.bofh.it>
In reply to#158308
Brian wrote:
> On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:
>
>> I'm trying to troubleshoot a problem.
>> That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
>> time the drawer is closed is a nuisance requiring to manually run umount
>> before I can proceed.
>>
>> /etc/fstab has noauto under options.
>
> Probably nothing to do with your problem. From fstab(5)
>
>    noauto do not mount when "mount -a" is given (e.g., at boot time)
>
>> Where else should I look.
>> I would prefer to disable on a per session basis.
>> Total disabling is acceptable.
>
> Automounting is usually handled by the file manager of whatever DE you
> are using.
>

I'm using Debian 8.0 with Mate as DE. There have been no updates 
installed as internet is not physically available to that machine.

I went to
Applications->System Tools->Caja then to
Edit->Preferences which displayed "File Management Preferences"
chose Media
   selected "Never prompt or start program on media insertion"
   deselected "Browse media when inserted"

It still mounts everything :<

Anything else?

[toc] | [prev] | [next] | [standalone]


#158328

Fromrlharris@oplink.net
Date2015-09-26 20:30 +0200
Message-ID<qd2op-7V2-1@gated-at.bofh.it>
In reply to#158312
...
>>> Jessie ... automatically mounts the cdrom drive
>>> every time the drawer is closed is a nuisance requiring to manually
>>> run umount before I can proceed.

I have a similar experience when plugging in an external USB drive.  I
wish to mount each of several drives at a particular mount point which is
unique to the drive, and not at the next available generic mount point
"/dev/usb..."  And the fact that I have connected a USB drive does not
mean that I wish to mount it.

RLH

[toc] | [prev] | [next] | [standalone]


#158330

FromBrian <ad44@cityscape.co.uk>
Date2015-09-26 21:50 +0200
Message-ID<qd3DQ-1aw-13@gated-at.bofh.it>
In reply to#158312
On Sat 26 Sep 2015 at 11:27:46 -0500, Richard Owlett wrote:

> Brian wrote:
> >On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:
> >
> >>I'm trying to troubleshoot a problem.
> >>That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
> >>time the drawer is closed is a nuisance requiring to manually run umount
> >>before I can proceed.
> >>
> >>/etc/fstab has noauto under options.
> >
> >Probably nothing to do with your problem. From fstab(5)
> >
> >   noauto do not mount when "mount -a" is given (e.g., at boot time)
> >
> >>Where else should I look.
> >>I would prefer to disable on a per session basis.
> >>Total disabling is acceptable.
> >
> >Automounting is usually handled by the file manager of whatever DE you
> >are using.
> >
> 
> I'm using Debian 8.0 with Mate as DE. There have been no updates installed
> as internet is not physically available to that machine.

Updates wouldn't matter because they would not (or should not) alter
such a fundamental process.

> I went to
> Applications->System Tools->Caja then to
> Edit->Preferences which displayed "File Management Preferences"
> chose Media
>   selected "Never prompt or start program on media insertion"
>   deselected "Browse media when inserted"

Very useful. I think the deselection just stops the CD's contents being
displayed when the CD tray is closed and doesn't affect automounting.

> It still mounts everything :<

I see what you mean.

Try

  gsettings set org.mate.media-handling automount false

[toc] | [prev] | [next] | [standalone]


#158332

FromRichard Owlett <rowlett@cloud85.net>
Date2015-09-27 00:20 +0200
Message-ID<qd5YZ-4Gv-3@gated-at.bofh.it>
In reply to#158330
Brian wrote:
> On Sat 26 Sep 2015 at 11:27:46 -0500, Richard Owlett wrote:
>
>> Brian wrote:
>>> On Sat 26 Sep 2015 at 09:13:27 -0500, Richard Owlett wrote:
>>>
>>>> I'm trying to troubleshoot a problem.
>>>> That Jessie (and IIRC Squeeze) automatically mount the cdrom drive every
>>>> time the drawer is closed is a nuisance requiring to manually run umount
>>>> before I can proceed.
>>>>
>>>> /etc/fstab has noauto under options.
>>>
>>> Probably nothing to do with your problem. From fstab(5)
>>>
>>>    noauto do not mount when "mount -a" is given (e.g., at boot time)
>>>
>>>> Where else should I look.
>>>> I would prefer to disable on a per session basis.
>>>> Total disabling is acceptable.
>>>
>>> Automounting is usually handled by the file manager of whatever DE you
>>> are using.
>>>
>>
>> I'm using Debian 8.0 with Mate as DE. There have been no updates installed
>> as internet is not physically available to that machine.
>
> Updates wouldn't matter because they would not (or should not) alter
> such a fundamental process.
>
>> I went to
>> Applications->System Tools->Caja then to
>> Edit->Preferences which displayed "File Management Preferences"
>> chose Media
>>    selected "Never prompt or start program on media insertion"
>>    deselected "Browse media when inserted"
>
> Very useful. I think the deselection just stops the CD's contents being
> displayed when the CD tray is closed and doesn't affect automounting.
>
>> It still mounts everything :<
>
> I see what you mean.
>
> Try
>
>    gsettings set org.mate.media-handling automount false
>

"apparently" works
*NOTE BENE* the quotation marks
I ran one DVD
am now running a second

HOWEVER I suspect I've made system wide changes without being 
asked for root permission

*ALSO* it affected BOTH flash drives and CDs

http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+&apropos=0&sektion=0&manpath=Debian+8+jessie&format=html&locale=en
*NOT* informative

It also does not address pre-systemd

[toc] | [prev] | [next] | [standalone]


#158343

FromBrian <ad44@cityscape.co.uk>
Date2015-09-27 13:30 +0200
Message-ID<qdijw-5J2-7@gated-at.bofh.it>
In reply to#158332
On Sat 26 Sep 2015 at 17:11:32 -0500, Richard Owlett wrote:

> Brian wrote:
> >
> >I see what you mean.
> >
> >Try
> >
> >   gsettings set org.mate.media-handling automount false
> >
> 
> "apparently" works
> *NOTE BENE* the quotation marks
> I ran one DVD
> am now running a second

Successfully, we expect.

> HOWEVER I suspect I've made system wide changes without being asked for root
> permission

Policykit will take care of privileges. Nothing to worry about.

> *ALSO* it affected BOTH flash drives and CDs

Indeed. Is is worth digging into udisks and udev to handle CDs and USB
differently when a left or right click of the mouse does mounting so
quickly?
 
> http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+&apropos=0&sektion=0&manpath=Debian+8+jessie&format=html&locale=en
> *NOT* informative

Nothing to fret about if the easier route is taken:

   System Tools/dconf Editor/org/mate/desktop/media-handling

> It also does not address pre-systemd

I don't follow that.

[toc] | [prev] | [next] | [standalone]


#158587

FromRichard Owlett <rowlett@cloud85.net>
Date2015-10-04 16:50 +0200
Message-ID<qfSLT-3gH-5@gated-at.bofh.it>
In reply to#158343
Brian wrote:
> On Sat 26 Sep 2015 at 17:11:32 -0500, Richard Owlett wrote:
>
>> Brian wrote:
>>>
>>> I see what you mean.
>>>
>>> Try
>>>
>>>    gsettings set org.mate.media-handling automount false
>>>
>>
>> "apparently" works
>> *NOTE BENE* the quotation marks
>> I ran one DVD
>> am now running a second
>
> Successfully, we expect.

I'll have to go back and redo from scratch. Just spent a week in 
bed with stomach bug. Don't recall some of the side issues I was 
dealing with.

>
>> HOWEVER I suspect I've made system wide changes without being asked for root
>> permission
>
> Policykit will take care of privileges. Nothing to worry about.

Hadn't done any previous reading on Policykit. It may address the 
one thing I've found most annoying while trying to move to Linux. 
Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a 
universe of mainframes. Not so much in a setting where only one 
individual has access. I have one machine that has no network 
access whatsoever (let alone internet) - going to lengths to 
protect it from external "threats" can become ludicrous.


>
>> *ALSO* it affected BOTH flash drives and CDs
>
> Indeed. Is is worth digging into udisks and udev to handle CDs and USB
> differently when a left or right click of the mouse does mounting so
> quickly?

Quite possibly. Remember the "P" in PC stands for Personal. YMMV ;)

>
>> http://manpages.debian.org/cgi-bin/man.cgi?query=gsettings+&apropos=0&sektion=0&manpath=Debian+8+jessie&format=html&locale=en
>> *NOT* informative
>
> Nothing to fret about if the easier route is taken:
>
>     System Tools/dconf Editor/org/mate/desktop/media-handling

Front ends are nice, but I want to understand what's under the hood.


>
>> It also does not address pre-systemd
>
> I don't follow that.

I had had the impression that D-bus was inherently part of systemd.
Just had an interesting read through 
https://en.wikipedia.org/wiki/D-Bus and 
http://www.freedesktop.org/wiki/Software/dbus/ [even mentions a 
Windows port ;].

[toc] | [prev] | [next] | [standalone]


#158592

FromLisi Reisz <lisi.reisz@gmail.com>
Date2015-10-04 17:10 +0200
Message-ID<qfT5f-3TH-5@gated-at.bofh.it>
In reply to#158587
On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
> It may address the
> one thing I've found most annoying while trying to move to Linux.
> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
> universe of mainframes. Not so much in a setting where only one
> individual has access.

It makes sense in lots of situations, real life ones for schools, colleges, 
workplaces, families, single users attached to the Internet.  You can always 
achieve what you seem to want by always running as root.  So LInux can do 
what you want fine.  Let it also do what others want/need.

Lisi

[toc] | [prev] | [next] | [standalone]


#158594

FromRichard Owlett <rowlett@cloud85.net>
Date2015-10-04 17:20 +0200
Message-ID<qfTeV-44S-3@gated-at.bofh.it>
In reply to#158592
Lisi Reisz wrote:
> On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
>> It may address the
>> one thing I've found most annoying while trying to move to Linux.
>> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
>> universe of mainframes. Not so much in a setting where only one
>> individual has access.
>
> It makes sense in lots of situations, real life ones for schools, colleges,
> workplaces, families, single users attached to the Internet.  You can always
> achieve what you seem to want by always running as root.  So LInux can do
> what you want fine.  Let it also do what others want/need.
>

I don't always wish to "swat flies with 100mm cannon".
Or as old saying cautions "When all you have is a hammer, 
everything looks like a nail."

[toc] | [prev] | [next] | [standalone]


#158595

FromLisi Reisz <lisi.reisz@gmail.com>
Date2015-10-04 17:50 +0200
Message-ID<qfTHX-4C4-3@gated-at.bofh.it>
In reply to#158594
On Sunday 04 October 2015 16:17:24 Richard Owlett wrote:
> Lisi Reisz wrote:
> > On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
> >> It may address the
> >> one thing I've found most annoying while trying to move to Linux.
> >> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
> >> universe of mainframes. Not so much in a setting where only one
> >> individual has access.
> >
> > It makes sense in lots of situations, real life ones for schools,
> > colleges, workplaces, families, single users attached to the Internet. 
> > You can always achieve what you seem to want by always running as root. 
> > So LInux can do what you want fine.  Let it also do what others
> > want/need.
>
> I don't always wish to "swat flies with 100mm cannon".
> Or as old saying cautions "When all you have is a hammer,
> everything looks like a nail."

Then stop moaning.  Linux is a multi-user operating system.  It always has 
been.  Why should it change totally to suit you?  And anyway, root access is 
what you are saying you want.  So why not use it?  What disadvantages would 
it have in your scenario?  You want "everyone" to be able to do everything.

Lisi

[toc] | [prev] | [next] | [standalone]


#158596

FromRichard Owlett <rowlett@cloud85.net>
Date2015-10-04 18:10 +0200
Message-ID<qfU1j-5ee-1@gated-at.bofh.it>
In reply to#158595
Lisi Reisz wrote:
> On Sunday 04 October 2015 16:17:24 Richard Owlett wrote:
>> Lisi Reisz wrote:
>>> On Sunday 04 October 2015 15:41:37 Richard Owlett wrote:
>>>> It may address the
>>>> one thing I've found most annoying while trying to move to Linux.
>>>> Users [*PLURAL*] and Groups [*PLURAL*] may make sense in a
>>>> universe of mainframes. Not so much in a setting where only one
>>>> individual has access.
>>>
>>> It makes sense in lots of situations, real life ones for schools,
>>> colleges, workplaces, families, single users attached to the Internet.
>>> You can always achieve what you seem to want by always running as root.
>>> So LInux can do what you want fine.  Let it also do what others
>>> want/need.
>>
>> I don't always wish to "swat flies with 100mm cannon".
>> Or as old saying cautions "When all you have is a hammer,
>> everything looks like a nail."
>
> Then stop moaning.  Linux is a multi-user operating system.  It always has
> been.  Why should it change totally to suit you?  And anyway, root access is
> what you are saying you want.  So why not use it?  What disadvantages would
> it have in your scenario?  You want "everyone" to be able to do everything.
>

You missed my point. I had said:
"Hadn't done any previous reading on Policykit. It may address 
the one thing I've found most annoying while trying to move to 
Linux."

Obviously stating that Debian apparently had a solution for my 
percieved problem.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web