You are not logged in.

#1 2011-01-22 17:25:34

Flavious
Member
Registered: 2007-11-24
Posts: 49

udev /dev/sd[a-z]*something automounting is wrong

The file

/etc/udev/rules.d/11-media-by-label-auto-mount.rules says:

KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"

But that won't match devices like /dev/sdb42 or /dev/sdb31337

How could I fix that, so it will match sdb5 as well as any other number out there?

I've tried sd[a-z][0-9]+ but that doesn't work.

So please, Mr. Guru, help me :-)

Last edited by Flavious (2011-01-22 18:48:12)

Offline

#2 2011-01-22 18:33:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: udev /dev/sd[a-z]*something automounting is wrong

Does 'KERNEL!="sd[a-z]*"' work?

Edit: Why do you have 'sd[1-z][0-9]+' and not 'sd[a-z]'?

Last edited by karol (2011-01-22 18:35:54)

Offline

#3 2011-01-22 18:49:19

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: udev /dev/sd[a-z]*something automounting is wrong

The "1" was a typo made here on the forum, I had an "a" in my .rules file.

sd[a-z]* would match sdabc or sdxxxx, not numbers.

Offline

#4 2011-01-22 18:53:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: udev /dev/sd[a-z]*something automounting is wrong

Flavious wrote:

sd[a-z]* would match sdabc or sdxxxx, not numbers.

I found it here and was curious if it would actually work.

Offline

#5 2011-01-22 20:44:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev /dev/sd[a-z]*something automounting is wrong

Please remove the word 'default' from the thread title. Arch does not have default udev rules for automounting - the rules you're asking about were created by an Arch user and posted in the wiki.

Also, I'm curious - is this a theoretical question, or has the lack of support for devices such as /dev/sdb42 and /dev/sdb31337 actually affected you?

Offline

#6 2011-01-23 14:27:17

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: udev /dev/sd[a-z]*something automounting is wrong

tomk wrote:

Please remove the word 'default' from the thread title. Arch does not have default udev rules for automounting - the rules you're asking about were created by an Arch user and posted in the wiki.

Also, I'm curious - is this a theoretical question, or has the lack of support for devices such as /dev/sdb42 and /dev/sdb31337 actually affected you?

It actually affected me, I had numerous partitions numbered from 10 upwards.

I've managed to do it myself with sd[a-z][0-9]*, but you guys should start actually helping as you did back then when arch was still unknown. It was the community that brought you here, don't forget that.

(I though that only the irc channel was suffering from useless "helping", it seems it has become the de facto in the arch community at large. You should rethink your strategy).

Last edited by Flavious (2011-01-23 14:33:42)

Offline

#7 2011-01-23 14:31:22

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: udev /dev/sd[a-z]*something automounting is wrong

My point is: I've done my homework, I've tried hard to fix it, and even the solution I've come up with is not the cleanest one. Yet I keep getting clueless advices from one side, and from the people who could actually help only questions like yours. Why the redundancy? If you don't know or you don't have the time to help, then just don't say anything. It's as simple as that.

I can only hope that your position on this forum will make you lend an ear to your users.

Last edited by Flavious (2011-01-23 14:35:06)

Offline

#8 2011-01-23 14:44:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev /dev/sd[a-z]*something automounting is wrong

People will help if they're interested and willing enough - that kind of encouragement is not required. karol already tried to help you, and I'm sure you help others when the opportunity arises.

As forum admin, I asked you to correct the misleading title on this thread, something you don't seem to be prepared to do. I also genuinely wanted to know if your question was the result of your own experience.

If you are not happy with the way things are here in the forum, or in the Arch irc channel, you should consider subscribing to the arch-general mailing list instead.

Offline

#9 2011-01-23 14:59:28

Flavious
Member
Registered: 2007-11-24
Posts: 49

Re: udev /dev/sd[a-z]*something automounting is wrong

It was already corrected when I revisited this thread a few minutes ago. As a forum admin you should be a catalyst, not accusing your users without facts.

I also genuinely wanted to know if your question was the result of your own experience.

Of course it is my experience, since I am the one asking it while pointing out the problem (and the pattern in the rule clearly backs my problem). What kind of fantasy world do you live in?

Last edited by Flavious (2011-01-23 15:03:00)

Offline

#10 2011-01-23 15:16:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev /dev/sd[a-z]*something automounting is wrong

Yes - I corrected it, as you ignored my first request.

This thread is now closed, and I strongly recommend that you read the Forum Etiquette thoroughly before posting again.

Offline

Board footer

Powered by FluxBB