Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP]Mappare i device con udev
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Feb 21, 2005 10:58 pm    Post subject: Reply with quote

Almeno ho capito l'errore ;)

Il nome della dir che devi usare deve concidere con quello del device sotto /dev/, che nel tuo caso è philipsMp3_1.

Per risolvere ti basta lanciare il comando:
Code:

mv /etc/dev.d/philips_mp3 /etc/dev.d/philipsMp3_1

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Mon Feb 21, 2005 11:01 pm    Post subject: Reply with quote

Avevo incasinato le dir, l'ha montato da solo ora, c'e' da vedere quanto ci mette per smontarlo anche :) (Ammesso che lo smonti...)
Ma l'opzione "users" nell'fstab non dovrebbe permettere anche agli utenti non root di scrivere sul device?
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Feb 21, 2005 11:08 pm    Post subject: Reply with quote

Dovrebbe permettere anche agli utenti che non l'hanno momtato di smontarlo.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Mon Feb 21, 2005 11:28 pm    Post subject: Reply with quote

gutter wrote:
Dovrebbe permettere anche agli utenti che non l'hanno momtato di smontarlo.

C'e' un'opzione che permetta agli utenti che non l'hanno montato di scriverci?
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Feb 21, 2005 11:54 pm    Post subject: Reply with quote

In questo modo:

Code:
/dev/digital-camera1    /mnt/digital-camera    vfat     noauto,users,umask=0000


Chiunque può scriverci e montare e/o smontare.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Tue Feb 22, 2005 12:36 am    Post subject: Reply with quote

Ah molto tattico.. ora si inizia a ragionare ^^
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Sun May 15, 2005 2:19 pm    Post subject: Reply with quote

salve,
ho due problemini:

1) non mi funziona l'automount per il mio hd esterno

Code:

omega root # ls -aFl /etc/dev.d/maxtor1/automount.dev
4,0K -rwxr-xr-x  1 root root 219 14 mag 16:33 /etc/dev.d/maxtor1/automount.dev*
omega root # cat /etc/dev.d/maxtor1/automount.dev
#!/bin/bash
if [ "$ACTION" == "add" ] ; then
 logger -t dev.d "Mounting external HD"
 /bin/mount /mnt/maxtor
fi
if [ "$ACTION" == "remove" ] ; then
 logger -t dev.d "Unmounting external HD"
 /bin/umount /mnt/maxtor
fi
omega root #


2) non ho capito che regole usare per il mio lettore mp3: come qualcunò avrà già letto qualche post fà ho un lettore della magnex che ha una memoria interna e una removibile (SD o MMC), quindi in pratica stesso "vendor" e "model"


Code:

lsscsi

[6:0:0:0]    disk    Maxtor   OneTouch         0201  /dev/sda
[7:0:0:0]    disk    Digital  MP3 Music Player 0100  /dev/sdb
[7:0:0:1]    disk    Digital  MP3 Music Player 0100  /dev/sdc



Code:

udevinfo -a -p /sys/block/sdb

[cut]
    BUS="scsi"
    ID="7:0:0:0"
    DRIVER="sd"
    SYSFS{detach_state}="0"
    SYSFS{device_blocked}="0"
    SYSFS{max_sectors}="240"
    SYSFS{model}="MP3 Music Player"
    SYSFS{queue_depth}="1"
    SYSFS{queue_type}="none"
    SYSFS{rev}="0100"
    SYSFS{scsi_level}="5"
    SYSFS{state}="running"
    SYSFS{timeout}="30"
    SYSFS{type}="0"
    SYSFS{vendor}="Digital "
[cut]


Code:

udevinfo -a -p /sys/block/sdc

[cut]
    BUS="scsi"
    ID="7:0:0:1"
    DRIVER="sd"
    SYSFS{detach_state}="0"
    SYSFS{device_blocked}="0"
    SYSFS{max_sectors}="240"
    SYSFS{model}="MP3 Music Player"
    SYSFS{queue_depth}="1"
    SYSFS{queue_type}="none"
    SYSFS{rev}="0100"
    SYSFS{scsi_level}="5"
    SYSFS{state}="running"
    SYSFS{timeout}="30"
    SYSFS{type}="0"
    SYSFS{vendor}="Digital "
[cut]



le regole che ho usato sono

Code:

BUS="scsi",SYSFS{vendor}="Maxtor",SYSFS{model}="OneTouch",KERNEL="sd*",NAME="%k",SYMLINK="maxtor%n"
BUS="scsi",SYSFS{vendor}="Digital",SYSFS{model}="MP3 Music Player",KERNEL="sd*",NAME="%k",SYMLINK="magnex%n"


ma non mi crea il link /dev/magnex2 a sdb1... avete idea di come risolvere?

Code:

omega root # udevstart
omega root # ls /dev/ma* -Afl
lrwxrwxrwx  1 root root 3 15 mag 16:16 /dev/magnex -> sdc
lrwxrwxrwx  1 root root 4 15 mag 16:16 /dev/magnex1 -> sdc1
lrwxrwxrwx  1 root root 3 15 mag 16:16 /dev/maxtor -> sda
lrwxrwxrwx  1 root root 4 15 mag 16:16 /dev/maxtor1 -> sda1

_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Tue May 17, 2005 1:29 pm    Post subject: Reply with quote

*up*
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Sun May 22, 2005 11:11 am    Post subject: Reply with quote

proprio nessuno?
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
neon
l33t
l33t


Joined: 04 Aug 2003
Posts: 759
Location: Catania, Italy, Europe

PostPosted: Sun May 22, 2005 11:35 am    Post subject: Reply with quote

darkdude wrote:
[...] ho un lettore della magnex che ha una memoria interna e una removibile (SD o MMC), quindi in pratica stesso "vendor" e "model"


Si ma almeno il "serial" della periferica deve essere diverso, io avevo mappato il mio pendrive in questo modo ma ora non ricordo i parametri.

Per quanto riguarda il mount umount automatico io te lo sconsiglio (solo il mount potrebbe essere utile). A che serve smontare l'hd dopo che lo hai staccato?
_________________
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM


Last edited by neon on Sun May 22, 2005 11:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Sun May 22, 2005 11:37 am    Post subject: Reply with quote

hai provato ad usare la stringa " ID" come identificatore? mi pare sia l'unica cosa che hanno di diverso quelle due memorie...
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Sun May 22, 2005 12:42 pm    Post subject: Reply with quote

serial è lo stesso per tutti e due, mentre ID varia a seconda di quanti dispositivi hai attivi (o attivato in precedenza), quindi ad un riavvio non funzionerebbe più...
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Sun Aug 06, 2006 10:58 pm    Post subject: Reply with quote

Si può fare questo mapping anche se si usa ivman e pmount?

Andrea
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Thu Sep 21, 2006 9:15 pm    Post subject: Reply with quote

up?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sat Jun 02, 2007 1:05 pm    Post subject: Reply with quote

funge ancora questo metodo? qualcuno lo sta ancora utilizzando o bisogna tener conto di qualche aggiornamento?
_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum