You are not logged in.

#1 2006-07-07 12:37:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

udev 'il

I thought I would set up my mp3player in udev

rule

# Symlink MP3 player
BUS=="usb", SYSFS{serial}=="55P170KFA9Z         ", KERNEL=="sNAME="%k", SYMLINK+="Archos", GROUP="storage"
BUS=="usb", SYSFS{serial}=="55P170KFA9Z         ", KERNEL=="sd?1", NAME="%k", SYMLINK+="Archos", GROUP="storage"

ls -la of /dev/sdb1

brw-rw---- 1 root disk 8, 17 2006-07-07 13:23 sdb1

I got group set as storage & I get disk ?

When device is mounted I can only access ie put tracks on it as root  :?

Figuring I have a clash of rules maybe or need to change something

O fstab ...

/dev/Archos    /media/Archos    vfat noauto,users,noexec,nodev,nosuid    0 0

Mr Green

Offline

#2 2006-07-07 14:23:03

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,488

Re: udev 'il

How about the "last options" thing.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-07-07 14:32:37

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: udev 'il

:? nosuid I got that line from wiki assumed it was ok

Wanted to get mp3player mounted so that user had access

pmounted got

dr-xr-xr-x  2 mrgreen users   4096 2006-07-07 13:28 Music

maybe I need to add to my udev rule


Mr Green

Offline

#4 2006-07-08 17:36:16

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev 'il

Why don't you just use idVendor and idProduct ? Plugin your mp3player, run lsusb and follow my post in this thread for new udev rule syntax.

Offline

#5 2006-07-08 17:42:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: udev 'il

sorry I did set up udev rule ... it was a problem with write permissions on device..

A quick chmod sorted that out ;-)

I wiped out my automounting rule (will try again with that soon!)

but in the mean time I am using pmount.... np

Will try out what you suggest may be even better

Thanks


Mr Green

Offline

#6 2006-07-09 10:31:20

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev 'il

This post is not about automounting but about preventing standard rules to overwrite your custom rules by using the new ":=" syntax. Automounting is a whole different story :-)

Offline

#7 2006-07-09 10:36:46

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: udev 'il

its cool ... I like to mount from command line anyway  smile


Mr Green

Offline

#8 2006-07-09 10:45:18

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev 'il

What I mean is if you use for example GROUP:="users" or MODE:="0666" in your custom udev rule you'll not need chmod because standard udev rules will not overwrite your settings. And this is for mounting from CLI.

Offline

#9 2006-07-09 10:46:50

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: udev 'il

ok ... thanks very much  wink


Mr Green

Offline

Board footer

Powered by FluxBB