1 |
Sorry, Alan. |
2 |
|
3 |
The comments before yours were bottom-posted. |
4 |
|
5 |
I'm afraid under these circumstances I can't find your top-posted |
6 |
comments pertinent. |
7 |
|
8 |
I simply can't make any sense of them. |
9 |
|
10 |
Your mailer also used HTML. |
11 |
|
12 |
If you wish to make postings of this kind then I would be grateful if |
13 |
you could place me on your ignore list, and not make such replies to |
14 |
my messages. |
15 |
|
16 |
Stroller. |
17 |
|
18 |
|
19 |
|
20 |
On 5 Oct 2009, at 09:02, Alan E. Davis wrote: |
21 |
|
22 |
> With Flash drive partitions labeled, the mounting is consistent. I |
23 |
> have a git bare repo directory, on each of two flash drives to keep |
24 |
> certain directories in sync on three machines. The repos are found |
25 |
> consistently by git this method. I don't remember any specific |
26 |
> method I used to get this mounting behavior into place, but I have |
27 |
> had to specifically set GID for my user account on each machine to |
28 |
> keep permissions in line. |
29 |
> |
30 |
> By the way, when I reformatted a drive, I just used the same label, |
31 |
> which seemed to work fine. I wonder though whether this system |
32 |
> might be defeated by convolutions of various kinds outside my |
33 |
> control at a future time. |
34 |
> |
35 |
> Alan |
36 |
> |
37 |
> On Sun, Oct 4, 2009 at 5:24 AM, Stroller <stroller@××××××××××××××××××.uk |
38 |
> > wrote: |
39 |
> |
40 |
> On 3 Oct 2009, at 20:11, daid kahl wrote: |
41 |
> ... |
42 |
> Another useful notion is to use udev to automount flash drives (or |
43 |
> external usb harddrives) to a specified location based on serial |
44 |
> number. ... I can either give an overview or dig up the url if |
45 |
> anyone likes. |
46 |
> |
47 |
> I'd have assumed you simple used any of the usual "automount drives |
48 |
> with udev" guides. Am I wrong? |
49 |
> |
50 |
> This is the way I have always intended to approach this problem, so |
51 |
> I'd be grateful to be corrected in advance if there's a better way. |
52 |
> |
53 |
> That's correct, except not all of these guides discuss the drive |
54 |
> serial number. If you want to ensure that different drives are |
55 |
> mounted at different points, you have to rely on the device serial |
56 |
> (since the /dev nodes are filled in order of the device connection, |
57 |
> regardless of which drive it is). |
58 |
> |
59 |
> There are plenty of guides that mention how to find the serial |
60 |
> number and how to write the correct udev rules, but most the guides |
61 |
> are outdated and suggest use of the symlink udevinfo, which was |
62 |
> removed upstream recently. So, to get a device's serial number, for |
63 |
> example (replace /dev/sdb with the correct node) : |
64 |
> |
65 |
> # udevadm info -a -p $(udevadm info -q path -n /dev/sdb) | grep |
66 |
> ATTRS{serial} |
67 |
> |
68 |
> and use the (first) serial that doesn't have colons and periods. |
69 |
> Then for the udev rule you just need to include ATTRS{serial}==" |
70 |
> 0000000000" |
71 |
> |
72 |
> This is also useful when you have external harddrives that use ext3 |
73 |
> formatting and flashdrives that don't. |
74 |
> |
75 |
> Ooooops... I omitted a paste - I went to a terminal to check the |
76 |
> details and then appear to have completely forgotten to include |
77 |
> them. Thus my question is misphrased & incomplete. |
78 |
> |
79 |
> I intended to ask: |
80 |
> |
81 |
> I'd have assumed you simple used any of the usual "automount |
82 |
> drives with udev" guides, but based their entry in "/dev/disk/by- |
83 |
> uuid/". Am I wrong? |
84 |
> |
85 |
> How do you find the serial, please? I'm guessing from `dmesg`? |
86 |
> |
87 |
> I think the entry in "/dev/disk/by-uuid/" may change if you reformat |
88 |
> the drive, so your response is most helpful. |
89 |
> |
90 |
> Thank you for your help, |
91 |
> |
92 |
> Stroller. |
93 |
> |
94 |
> |
95 |
> |