* [gentoo-user] lilo device-mapper & udev
@ 2006-02-04 19:32 Francesco Talamona
2006-02-05 1:44 ` Richard Fish
0 siblings, 1 reply; 8+ messages in thread
From: Francesco Talamona @ 2006-02-04 19:32 UTC (permalink / raw
To: gentoo-user
I was going to add a new entry in lilo boot:
aemaeth ~ # lilo -v
LILO version 22.7, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2005 John Coffman
Released 12-Apr-2005 and compiled at 10:36:57 on Jan 3 2006
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/dm-0' -> '/dev/vg/homelv'
Name change: '/dev/dm-1' -> '/dev/vg/usrlv'
Name change: '/dev/dm-2' -> '/dev/vg/varlv'
Name change: '/dev/dm-3' -> '/dev/vg/optlv'
Name change: '/dev/dm-4' -> '/dev/vg/tmplv'
Name change: '/dev/dm-5' -> '/dev/vg/bulklv'
Name change: '/dev/sdd' -> '/dev/sdd'
Name change: '/dev/sdd1' -> '/dev/sdd1'
Fatal: open /dev/sdd: No such file or directory
sdd{,1,2} belong to a removable device and are listed
in /proc/partitions but remapped to /dev/mobile%n
via /etc/udev/rules.d/10-local.rules; /dev/mobile1 is a partition
encrypted by dm-crypt as /dev/mapper/hidmo.
Lilo encounter this fatal error even before /dev/mapper/hidmo is
created.
LVM mapping stems just warnings, so this problem has definitely to do
with cryptography, never had a blocking problem with lilo before.
Lilo fatal error is resolved unplugging the removable device, but i
guess there's a "software" solution to this "double mapping" issue.
Any comments?
Thanks
Francesco
--
Linux Version 2.6.15-gentoo-r1, Compiled #1 PREEMPT Mon Jan 16 07:58:03
CET 2006
One 1.8GHz AMD Athlon 64 Processor, 2GB RAM, 3613.02 Bogomips Total
aemaeth
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] lilo device-mapper & udev
2006-02-04 19:32 [gentoo-user] lilo device-mapper & udev Francesco Talamona
@ 2006-02-05 1:44 ` Richard Fish
2006-02-05 9:14 ` [gentoo-user] " Francesco Talamona
2006-02-05 10:27 ` [gentoo-user] " Neil Bothwick
0 siblings, 2 replies; 8+ messages in thread
From: Richard Fish @ 2006-02-05 1:44 UTC (permalink / raw
To: gentoo-user
On 2/4/06, Francesco Talamona <ti.liame@email.it> wrote:
> Name change: '/dev/sdd' -> '/dev/sdd'
> Name change: '/dev/sdd1' -> '/dev/sdd1'
> Fatal: open /dev/sdd: No such file or directory
>
> sdd{,1,2} belong to a removable device and are listed
> in /proc/partitions but remapped to /dev/mobile%n
> via /etc/udev/rules.d/10-local.rules;
I've generally found it easier to keep the /dev/sd* names and just
SYMLINK the names I want. Example:
BUS=="usb", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="Flash Disk",
NAME="%k", SYMLINK="usbkey%n"
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: lilo device-mapper & udev
2006-02-05 1:44 ` Richard Fish
@ 2006-02-05 9:14 ` Francesco Talamona
2006-02-05 10:27 ` [gentoo-user] " Neil Bothwick
1 sibling, 0 replies; 8+ messages in thread
From: Francesco Talamona @ 2006-02-05 9:14 UTC (permalink / raw
To: gentoo-user
On Sunday 05 February 2006 02:44, Richard Fish wrote:
> On 2/4/06, Francesco Talamona <ti.liame@email.it> wrote:
> > Name change: '/dev/sdd' -> '/dev/sdd'
> > Name change: '/dev/sdd1' -> '/dev/sdd1'
> > Fatal: open /dev/sdd: No such file or directory
> >
> > sdd{,1,2} belong to a removable device and are listed
> > in /proc/partitions but remapped to /dev/mobile%n
> > via /etc/udev/rules.d/10-local.rules;
>
> I've generally found it easier to keep the /dev/sd* names and just
> SYMLINK the names I want. Example:
>
> BUS=="usb", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="Flash Disk",
> NAME="%k", SYMLINK="usbkey%n"
It really is more flexible than my configuration, I'll do some tests
this evening. Thanks.
Francesco
--
Linux Version 2.6.15-gentoo-r2, Compiled #1 PREEMPT Wed Feb 1 07:51:02
CET 2006
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.78 Bogomips Total
aemaeth
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] lilo device-mapper & udev
2006-02-05 1:44 ` Richard Fish
2006-02-05 9:14 ` [gentoo-user] " Francesco Talamona
@ 2006-02-05 10:27 ` Neil Bothwick
2006-02-05 17:04 ` Richard Fish
2006-02-05 20:21 ` [gentoo-user] Re: lilo device-mapper & udev [SOLVED] Francesco Talamona
1 sibling, 2 replies; 8+ messages in thread
From: Neil Bothwick @ 2006-02-05 10:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
On Sat, 4 Feb 2006 18:44:20 -0700, Richard Fish wrote:
> I've generally found it easier to keep the /dev/sd* names and just
> SYMLINK the names I want. Example:
>
> BUS=="usb", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="Flash Disk",
> NAME="%k", SYMLINK="usbkey%n"
The disadvantage of this is that pmount uses the real device name, not
the symlink, so you still end up with devices mounted on inconsistent
directory names in /media. that's why I prefer to do it the other way
round; NAME="somethingdescriptive", SYMLINK="%k".
--
Neil Bothwick
Velilind's Laws of Experimentation:
1. If reproducibility may be a problem, conduct the test only once.
2. If a straight line fit is required, obtain only two data points.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] lilo device-mapper & udev
2006-02-05 10:27 ` [gentoo-user] " Neil Bothwick
@ 2006-02-05 17:04 ` Richard Fish
2006-02-05 20:21 ` [gentoo-user] Re: lilo device-mapper & udev [SOLVED] Francesco Talamona
1 sibling, 0 replies; 8+ messages in thread
From: Richard Fish @ 2006-02-05 17:04 UTC (permalink / raw
To: gentoo-user
On 2/5/06, Neil Bothwick <neil@digimed.co.uk> wrote:
>
> The disadvantage of this is that pmount uses the real device name, not
> the symlink, so you still end up with devices mounted on inconsistent
> directory names in /media. that's why I prefer to do it the other way
> round; NAME="somethingdescriptive", SYMLINK="%k".
Ah, I hadn't thought of that. Thanks!
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: lilo device-mapper & udev [SOLVED]
2006-02-05 10:27 ` [gentoo-user] " Neil Bothwick
2006-02-05 17:04 ` Richard Fish
@ 2006-02-05 20:21 ` Francesco Talamona
2006-02-05 20:47 ` Neil Bothwick
1 sibling, 1 reply; 8+ messages in thread
From: Francesco Talamona @ 2006-02-05 20:21 UTC (permalink / raw
To: gentoo-user
On Sunday 05 February 2006 11:27, Neil Bothwick wrote:
> NAME="somethingdescriptive", SYMLINK="%k"
I'm back, in the end that's what I did:
I changed the line
BUS="scsi",SYSFS{vendor}="vendorname",SYSFS{model}="modelname",NAME="mobile%n"
to:
BUS="scsi",SYSFS{vendor}="vendorname",SYSFS{model}="modelname",NAME="mobile%n",SYMLINK="%k"
in /etc/udev/rules.d/10-local.rules.
Now everything works as expected.
Many many thanks to Richard that pinpointed the culprit and to Neil,
with his elegant solution.
Francesco
--
Linux Version 2.6.15-gentoo-r2, Compiled #1 PREEMPT Wed Feb 1 07:51:02
CET 2006
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.78 Bogomips Total
aemaeth
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: lilo device-mapper & udev [SOLVED]
2006-02-05 20:21 ` [gentoo-user] Re: lilo device-mapper & udev [SOLVED] Francesco Talamona
@ 2006-02-05 20:47 ` Neil Bothwick
2006-02-05 21:38 ` Francesco Talamona
0 siblings, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2006-02-05 20:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Sun, 5 Feb 2006 21:21:15 +0100, Francesco Talamona wrote:
> BUS="scsi",SYSFS{vendor}="vendorname",SYSFS{model}="modelname",NAME="mobile%n",SYMLINK="%k"
That should be
BUS=="scsi",SYSFS{vendor}=="vendorname",SYSFS{model}=="modelname",NAME="mobile%n",SYMLINK="%k"
Tests should use ==. A single = currently works, but is incorrect and may
stop working at some time.
--
Neil Bothwick
"Bother" said Rue, when Eeyore called him a sellout
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: lilo device-mapper & udev [SOLVED]
2006-02-05 20:47 ` Neil Bothwick
@ 2006-02-05 21:38 ` Francesco Talamona
0 siblings, 0 replies; 8+ messages in thread
From: Francesco Talamona @ 2006-02-05 21:38 UTC (permalink / raw
To: gentoo-user
On Sunday 05 February 2006 21:47, Neil Bothwick wrote:
> Tests should use ==. A single = currently works, but is incorrect and
> may stop working at some time.
It makes sense, now it's perfect, thanks.
Francesco
--
Linux Version 2.6.15-gentoo-r2, Compiled #1 PREEMPT Wed Feb 1 07:51:02
CET 2006
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.78 Bogomips Total
aemaeth
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-02-05 21:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-04 19:32 [gentoo-user] lilo device-mapper & udev Francesco Talamona
2006-02-05 1:44 ` Richard Fish
2006-02-05 9:14 ` [gentoo-user] " Francesco Talamona
2006-02-05 10:27 ` [gentoo-user] " Neil Bothwick
2006-02-05 17:04 ` Richard Fish
2006-02-05 20:21 ` [gentoo-user] Re: lilo device-mapper & udev [SOLVED] Francesco Talamona
2006-02-05 20:47 ` Neil Bothwick
2006-02-05 21:38 ` Francesco Talamona
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox