* [gentoo-user] Double nautilus windows for each USB flash drive plugged in
@ 2009-09-28 13:23 Alan E. Davis
2009-09-28 15:16 ` [gentoo-user] " walt
2009-10-03 14:30 ` [gentoo-user] " daid kahl
0 siblings, 2 replies; 12+ messages in thread
From: Alan E. Davis @ 2009-09-28 13:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
Hello:
Apparently I have bodged the setup somehow on this system.
Each time I plug in a flash drive, two Nautilus windows open up. If I plug
three USB drives in, six windows open.
Any ideas please, to smooth this minor wrinkle?
Thank you,
Alan Davis
[-- Attachment #2: Type: text/html, Size: 299 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Double nautilus windows for each USB flash drive plugged in
2009-09-28 13:23 [gentoo-user] Double nautilus windows for each USB flash drive plugged in Alan E. Davis
@ 2009-09-28 15:16 ` walt
2009-10-02 21:10 ` Alan E. Davis
2009-10-03 14:30 ` [gentoo-user] " daid kahl
1 sibling, 1 reply; 12+ messages in thread
From: walt @ 2009-09-28 15:16 UTC (permalink / raw
To: gentoo-user
On 09/28/2009 06:23 AM, Alan E. Davis wrote:
> Hello:
>
> Apparently I have bodged the setup somehow on this system.
>
> Each time I plug in a flash drive, two Nautilus windows open up. If I
> plug three USB drives in, six windows open.
I can't answer your question, sorry, but I've noticed something here
that may or may not be related.
In the gnome System::Preferences::Removable Drives and Media dialog,
I have the "Browse removable media when inserted" box *not* checked,
but I get a nautilus window anyway.
So, I don't have double nautili, but I still have one more than I
asked for. Does that checkbox do anything on your system?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Double nautilus windows for each USB flash drive plugged in
2009-09-28 15:16 ` [gentoo-user] " walt
@ 2009-10-02 21:10 ` Alan E. Davis
2009-10-02 22:42 ` walt
0 siblings, 1 reply; 12+ messages in thread
From: Alan E. Davis @ 2009-10-02 21:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
Hello, Walt:
I had "Browse removable media when inserted" checked. Sure enough, when
unchecked, a nautilus window opens. I also notice that two options are
checked. I don't understand what the difference between them would be:
Mount removeable drives when hot-plugged
and
Mount removable media when inserted
Thank you for the advice.
Alan
On Tue, Sep 29, 2009 at 1:16 AM, walt <w41ter@gmail.com> wrote:
> On 09/28/2009 06:23 AM, Alan E. Davis wrote:
>
>> Hello:
>>
>> Apparently I have bodged the setup somehow on this system.
>>
>> Each time I plug in a flash drive, two Nautilus windows open up. If I
>> plug three USB drives in, six windows open.
>>
>
> I can't answer your question, sorry, but I've noticed something here
> that may or may not be related.
>
> In the gnome System::Preferences::Removable Drives and Media dialog,
> I have the "Browse removable media when inserted" box *not* checked,
> but I get a nautilus window anyway.
>
> So, I don't have double nautili, but I still have one more than I
> asked for. Does that checkbox do anything on your system?
>
>
>
[-- Attachment #2: Type: text/html, Size: 1643 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Double nautilus windows for each USB flash drive plugged in
2009-10-02 21:10 ` Alan E. Davis
@ 2009-10-02 22:42 ` walt
0 siblings, 0 replies; 12+ messages in thread
From: walt @ 2009-10-02 22:42 UTC (permalink / raw
To: gentoo-user
On 10/02/2009 02:10 PM, Alan E. Davis wrote:
> Hello, Walt:
>
> I had "Browse removable media when inserted" checked. Sure enough,
> when unchecked, a nautilus window opens. I also notice that two options
> are checked. I don't understand what the difference between them would be:
>
> Mount removeable drives when hot-plugged
> and
> Mount removable media when inserted
Thanks for asking -- you just solved two annoying problems for me :o)
An internal CD/DVD player is not a removable drive, but it does use
removable media. A USB stick is a removable drive but does not use
removable media.
A number of gnome apps are far more configurable than their settings
menu implies. To access some hidden settings you need to use the
gconf-editor utility, found in Applications::System tools::Configuration
Editor, or just type gconf-editor from a command prompt.
Navigate to apps::nautilus::preferences and look for several settings
relating to media, and experiment with those.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-09-28 13:23 [gentoo-user] Double nautilus windows for each USB flash drive plugged in Alan E. Davis
2009-09-28 15:16 ` [gentoo-user] " walt
@ 2009-10-03 14:30 ` daid kahl
2009-10-03 18:54 ` Stroller
1 sibling, 1 reply; 12+ messages in thread
From: daid kahl @ 2009-10-03 14:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
>
> Apparently I have bodged the setup somehow on this system.
>
> Each time I plug in a flash drive, two Nautilus windows open up. If I plug
> three USB drives in, six windows open.
>
> Any ideas please, to smooth this minor wrinkle?
>
>
>
Another useful notion is to use udev to automount flash drives (or external
usb harddrives) to a specified location based on serial number. I found a
nice overview on the web a few weeks ago, but I didn't bookmark it and just
kept notes of what steps I took. I can either give an overview or dig up
the url if anyone likes. It's damn useful and fairly painless.
This is fairly useful for doing backups to external that want the backup
disk at the same mount point, for example.
Now I just need to figure out how to tell KDE not to ask me what to do with
these particular devices that I have udev rules for so I don't need to click
cancel / do nothing every time.
~daid
[-- Attachment #2: Type: text/html, Size: 1174 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-03 14:30 ` [gentoo-user] " daid kahl
@ 2009-10-03 18:54 ` Stroller
2009-10-03 19:11 ` daid kahl
0 siblings, 1 reply; 12+ messages in thread
From: Stroller @ 2009-10-03 18:54 UTC (permalink / raw
To: gentoo-user
On 3 Oct 2009, at 15:30, daid kahl wrote:
> ...
> Another useful notion is to use udev to automount flash drives (or
> external usb harddrives) to a specified location based on serial
> number. ... I can either give an overview or dig up the url if
> anyone likes.
I'd have assumed you simple used any of the usual "automount drives
with udev" guides. Am I wrong?
This is the way I have always intended to approach this problem, so
I'd be grateful to be corrected in advance if there's a better way.
Cheers,
Stroller.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-03 18:54 ` Stroller
@ 2009-10-03 19:11 ` daid kahl
2009-10-03 19:24 ` Stroller
0 siblings, 1 reply; 12+ messages in thread
From: daid kahl @ 2009-10-03 19:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]
> ...
>> Another useful notion is to use udev to automount flash drives (or
>> external usb harddrives) to a specified location based on serial number.
>> ... I can either give an overview or dig up the url if anyone likes.
>>
>
> I'd have assumed you simple used any of the usual "automount drives with
> udev" guides. Am I wrong?
>
> This is the way I have always intended to approach this problem, so I'd be
> grateful to be corrected in advance if there's a better way.
>
>
That's correct, except not all of these guides discuss the drive serial
number. If you want to ensure that different drives are mounted at
different points, you have to rely on the device serial (since the /dev
nodes are filled in order of the device connection, regardless of which
drive it is).
There are plenty of guides that mention how to find the serial number and
how to write the correct udev rules, but most the guides are outdated and
suggest use of the symlink udevinfo, which was removed upstream recently.
So, to get a device's serial number, for example (replace /dev/sdb with the
correct node) :
# udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep
ATTRS{serial}
and use the (first) serial that doesn't have colons and periods. Then for
the udev rule you just need to include ATTRS{serial}==" 0000000000"
This is also useful when you have external harddrives that use ext3
formatting and flashdrives that don't.
~daid
[-- Attachment #2: Type: text/html, Size: 1868 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-03 19:11 ` daid kahl
@ 2009-10-03 19:24 ` Stroller
2009-10-05 8:02 ` Alan E. Davis
0 siblings, 1 reply; 12+ messages in thread
From: Stroller @ 2009-10-03 19:24 UTC (permalink / raw
To: gentoo-user
On 3 Oct 2009, at 20:11, daid kahl wrote:
>> ...
>>> Another useful notion is to use udev to automount flash drives (or
>>> external usb harddrives) to a specified location based on serial
>>> number. ... I can either give an overview or dig up the url if
>>> anyone likes.
>>
>> I'd have assumed you simple used any of the usual "automount drives
>> with udev" guides. Am I wrong?
>>
>> This is the way I have always intended to approach this problem, so
>> I'd be grateful to be corrected in advance if there's a better way.
>
> That's correct, except not all of these guides discuss the drive
> serial number. If you want to ensure that different drives are
> mounted at different points, you have to rely on the device serial
> (since the /dev nodes are filled in order of the device connection,
> regardless of which drive it is).
>
> There are plenty of guides that mention how to find the serial
> number and how to write the correct udev rules, but most the guides
> are outdated and suggest use of the symlink udevinfo, which was
> removed upstream recently. So, to get a device's serial number, for
> example (replace /dev/sdb with the correct node) :
>
> # udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep
> ATTRS{serial}
>
> and use the (first) serial that doesn't have colons and periods.
> Then for the udev rule you just need to include ATTRS{serial}=="
> 0000000000"
>
> This is also useful when you have external harddrives that use ext3
> formatting and flashdrives that don't.
Ooooops... I omitted a paste - I went to a terminal to check the
details and then appear to have completely forgotten to include them.
Thus my question is misphrased & incomplete.
I intended to ask:
I'd have assumed you simple used any of the usual "automount
drives with udev" guides, but based their entry in "/dev/disk/by-
uuid/". Am I wrong?
How do you find the serial, please? I'm guessing from `dmesg`?
I think the entry in "/dev/disk/by-uuid/" may change if you reformat
the drive, so your response is most helpful.
Thank you for your help,
Stroller.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-03 19:24 ` Stroller
@ 2009-10-05 8:02 ` Alan E. Davis
2009-10-05 14:10 ` Stroller
0 siblings, 1 reply; 12+ messages in thread
From: Alan E. Davis @ 2009-10-05 8:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2897 bytes --]
With Flash drive partitions labeled, the mounting is consistent. I have a
git bare repo directory, on each of two flash drives to keep certain
directories in sync on three machines. The repos are found consistently by
git this method. I don't remember any specific method I used to get this
mounting behavior into place, but I have had to specifically set GID for my
user account on each machine to keep permissions in line.
By the way, when I reformatted a drive, I just used the same label, which
seemed to work fine. I wonder though whether this system might be defeated
by convolutions of various kinds outside my control at a future time.
Alan
On Sun, Oct 4, 2009 at 5:24 AM, Stroller <stroller@stellar.eclipse.co.uk>wrote:
>
> On 3 Oct 2009, at 20:11, daid kahl wrote:
>
>> ...
>>>
>>>> Another useful notion is to use udev to automount flash drives (or
>>>> external usb harddrives) to a specified location based on serial number.
>>>> ... I can either give an overview or dig up the url if anyone likes.
>>>>
>>>
>>> I'd have assumed you simple used any of the usual "automount drives with
>>> udev" guides. Am I wrong?
>>>
>>> This is the way I have always intended to approach this problem, so I'd
>>> be grateful to be corrected in advance if there's a better way.
>>>
>>
>> That's correct, except not all of these guides discuss the drive serial
>> number. If you want to ensure that different drives are mounted at
>> different points, you have to rely on the device serial (since the /dev
>> nodes are filled in order of the device connection, regardless of which
>> drive it is).
>>
>> There are plenty of guides that mention how to find the serial number and
>> how to write the correct udev rules, but most the guides are outdated and
>> suggest use of the symlink udevinfo, which was removed upstream recently.
>> So, to get a device's serial number, for example (replace /dev/sdb with the
>> correct node) :
>>
>> # udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep
>> ATTRS{serial}
>>
>> and use the (first) serial that doesn't have colons and periods. Then for
>> the udev rule you just need to include ATTRS{serial}==" 0000000000"
>>
>> This is also useful when you have external harddrives that use ext3
>> formatting and flashdrives that don't.
>>
>
> Ooooops... I omitted a paste - I went to a terminal to check the details
> and then appear to have completely forgotten to include them. Thus my
> question is misphrased & incomplete.
>
> I intended to ask:
>
> I'd have assumed you simple used any of the usual "automount drives with
> udev" guides, but based their entry in "/dev/disk/by-uuid/". Am I wrong?
>
> How do you find the serial, please? I'm guessing from `dmesg`?
>
> I think the entry in "/dev/disk/by-uuid/" may change if you reformat the
> drive, so your response is most helpful.
>
> Thank you for your help,
>
> Stroller.
>
>
>
[-- Attachment #2: Type: text/html, Size: 3829 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-05 8:02 ` Alan E. Davis
@ 2009-10-05 14:10 ` Stroller
2009-10-05 22:52 ` daid kahl
0 siblings, 1 reply; 12+ messages in thread
From: Stroller @ 2009-10-05 14:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 3374 bytes --]
Sorry, Alan.
The comments before yours were bottom-posted.
I'm afraid under these circumstances I can't find your top-posted
comments pertinent.
I simply can't make any sense of them.
Your mailer also used HTML.
If you wish to make postings of this kind then I would be grateful if
you could place me on your ignore list, and not make such replies to
my messages.
Stroller.
On 5 Oct 2009, at 09:02, Alan E. Davis wrote:
> With Flash drive partitions labeled, the mounting is consistent. I
> have a git bare repo directory, on each of two flash drives to keep
> certain directories in sync on three machines. The repos are found
> consistently by git this method. I don't remember any specific
> method I used to get this mounting behavior into place, but I have
> had to specifically set GID for my user account on each machine to
> keep permissions in line.
>
> By the way, when I reformatted a drive, I just used the same label,
> which seemed to work fine. I wonder though whether this system
> might be defeated by convolutions of various kinds outside my
> control at a future time.
>
> Alan
>
> On Sun, Oct 4, 2009 at 5:24 AM, Stroller <stroller@stellar.eclipse.co.uk
> > wrote:
>
> On 3 Oct 2009, at 20:11, daid kahl wrote:
> ...
> Another useful notion is to use udev to automount flash drives (or
> external usb harddrives) to a specified location based on serial
> number. ... I can either give an overview or dig up the url if
> anyone likes.
>
> I'd have assumed you simple used any of the usual "automount drives
> with udev" guides. Am I wrong?
>
> This is the way I have always intended to approach this problem, so
> I'd be grateful to be corrected in advance if there's a better way.
>
> That's correct, except not all of these guides discuss the drive
> serial number. If you want to ensure that different drives are
> mounted at different points, you have to rely on the device serial
> (since the /dev nodes are filled in order of the device connection,
> regardless of which drive it is).
>
> There are plenty of guides that mention how to find the serial
> number and how to write the correct udev rules, but most the guides
> are outdated and suggest use of the symlink udevinfo, which was
> removed upstream recently. So, to get a device's serial number, for
> example (replace /dev/sdb with the correct node) :
>
> # udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep
> ATTRS{serial}
>
> and use the (first) serial that doesn't have colons and periods.
> Then for the udev rule you just need to include ATTRS{serial}=="
> 0000000000"
>
> This is also useful when you have external harddrives that use ext3
> formatting and flashdrives that don't.
>
> Ooooops... I omitted a paste - I went to a terminal to check the
> details and then appear to have completely forgotten to include
> them. Thus my question is misphrased & incomplete.
>
> I intended to ask:
>
> I'd have assumed you simple used any of the usual "automount
> drives with udev" guides, but based their entry in "/dev/disk/by-
> uuid/". Am I wrong?
>
> How do you find the serial, please? I'm guessing from `dmesg`?
>
> I think the entry in "/dev/disk/by-uuid/" may change if you reformat
> the drive, so your response is most helpful.
>
> Thank you for your help,
>
> Stroller.
>
>
>
[-- Attachment #2: Type: text/html, Size: 5878 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-05 14:10 ` Stroller
@ 2009-10-05 22:52 ` daid kahl
2009-10-06 4:38 ` Stroller
0 siblings, 1 reply; 12+ messages in thread
From: daid kahl @ 2009-10-05 22:52 UTC (permalink / raw
To: gentoo-user
> I simply can't make any sense of them.
> Your mailer also used HTML.
> If you wish to make postings of this kind then I would be grateful if
> you could place me on your ignore list, and not make such replies to my
> messages.
Sorry. This should be regular text now.
>> How do you find the serial, please? I'm guessing from `dmesg`?
Just a re-post on how to find the serial on a usb drive, where the USB
device in question is at node /dev/sdb :
# udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep ATTRS{serial}
You might get more than one return on this command. Us the first
serial, and it is also the one without colons or periods, just numbers
and letters.
Then for the udev rule you just need to include ATTRS{serial}==" 0000000000"
Regards,
daid
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Double nautilus windows for each USB flash drive plugged in
2009-10-05 22:52 ` daid kahl
@ 2009-10-06 4:38 ` Stroller
0 siblings, 0 replies; 12+ messages in thread
From: Stroller @ 2009-10-06 4:38 UTC (permalink / raw
To: gentoo-user
On 5 Oct 2009, at 23:52, daid kahl wrote:
>> I simply can't make any sense of them.
>> Your mailer also used HTML.
>> If you wish to make postings of this kind then I would be grateful if
>> you could place me on your ignore list, and not make such replies
>> to my
>> messages.
>
> Sorry. This should be regular text now.
Not you. It was the top-posting when the thread was already so
consistently bottom-posted that wound me up. And that wasn't you, but
another poster. Unfortunately, the HTML made it difficult to correct
this, which did piss me off further.
>>> How do you find the serial, please? I'm guessing from `dmesg`?
>
> Just a re-post on how to find the serial on a usb drive, where the USB
> device in question is at node /dev/sdb :
>
> # udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep ATTRS
> {serial}
I'm really sorry. You said this before, and I didn't read it properly.
Thanks for posting.
Stroller.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-10-06 4:38 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 13:23 [gentoo-user] Double nautilus windows for each USB flash drive plugged in Alan E. Davis
2009-09-28 15:16 ` [gentoo-user] " walt
2009-10-02 21:10 ` Alan E. Davis
2009-10-02 22:42 ` walt
2009-10-03 14:30 ` [gentoo-user] " daid kahl
2009-10-03 18:54 ` Stroller
2009-10-03 19:11 ` daid kahl
2009-10-03 19:24 ` Stroller
2009-10-05 8:02 ` Alan E. Davis
2009-10-05 14:10 ` Stroller
2009-10-05 22:52 ` daid kahl
2009-10-06 4:38 ` Stroller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox