Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con udev
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
specialk74
n00b
n00b


Joined: 09 Oct 2006
Posts: 13

PostPosted: Wed Dec 13, 2006 5:19 pm    Post subject: Problema con udev Reply with quote

Sto cercando di montare il mio HD Usb in modo automatico.
Ho seguito i vari thread e sono riuscito a far partire in automatico il mount però mi scrive:

Code:
VFS: Can't find an ext2 filesystem on dev sda.


Vi posto la mia regola:
Code:
SUBSYSTEMS=="scsi", ATTRS{model}=="Storage Device  ", ATTRS{vendor}=="USB 2.0 ",  NAME="backup%n"


Per me il problema sta nel fatto che mi connette /dev/backupx a /dev/sda e giustamente non si può montare.
La domanda è: come faccio a dirgli di collegarlo a /dev/sda1?
Tnx
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Wed Dec 13, 2006 6:14 pm    Post subject: Reply with quote

Togli
Code:

NAME="backup%n"

e aggiungi
Code:

NAME="%k", SYMLINK="backup%n"


e se vuoi un consiglio usa dei campi meno comuni per identificare il tuo HDD.

Ciao!
Back to top
View user's profile Send private message
specialk74
n00b
n00b


Joined: 09 Oct 2006
Posts: 13

PostPosted: Wed Dec 13, 2006 6:26 pm    Post subject: Reply with quote

Purtroppo
Code:
NAME="%k", SYMLINK="backup%n"
l'avevo già fatto ma son dovuto ritornare a scriverlo così NAME="backup%n" perchè non mi faceva partire lo script dentro
Code:
/etc/dev.d/backup

Comunque mi rimane un dubbio: come faccio a fargli capire quale partizione fargli associare?
Con udevinfo non riesco a capire le varie partizioni.
Tnx
Back to top
View user's profile Send private message
danielinux
Apprentice
Apprentice


Joined: 10 Nov 2004
Posts: 202

PostPosted: Fri May 11, 2007 6:14 pm    Post subject: Reply with quote

Io ho un problema molto simile:
Posseggo un HD Usb e voglio assegnare un nome fisso di device... infatti se l'hd lo accendo dopo aver avviato il sistema, udev gli assegna di volta in volta un device diverso (sda, a volte sde ,etc...)
Per ovviare al problema ho aggiunto la seguente regola nel file /etc/udev/rules.d/10-local.rules

Code:
SUBSYSTEMS=="scsi",ATTRS{vendor}=="QUANTUM ",ATTRS{model}=="FIREBALLP AS20.5", ATTRS{ioerr_cnt}=="0x2",ATTRS{iodone_cnt}=="0x229",ATTRS{iorequest_cnt}=="0x229", NAME="%k", SYMLINK="hdusb%n"



Ma quando do un udevstart l'hd non viene riconosciuto!!!
Cos'è che non va nella mia regola??
_________________
I've seen things you people wouldn't believe.
Attack ships on fire off the shoulder of Orion.
I watched C-beams glitter in the dark near the Tannhauser gate.
All those moments will be lost in time, like tears in rain.
Time to die.
Back to top
View user's profile Send private message
HoX
Guru
Guru


Joined: 11 Nov 2006
Posts: 385

PostPosted: Sat May 12, 2007 2:26 pm    Post subject: Re: Problema con udev Reply with quote

specialk74 wrote:

Vi posto la mia regola:
Code:
SUBSYSTEMS=="scsi", ATTRS{model}=="Storage Device  ", ATTRS{vendor}=="USB 2.0 ",  NAME="backup%n"



Sono molto ignorante in materia, ma noto 2 cose:
1. nella mia regola di udev per la pendrive io ho BUS mentre tu usei SUBSYSTEMS=="scsi" e lo stesso vale per ATTRS che nel mio caso è sostituito da SYSFS... potresti provare a sostituire le cose in questo modo e vedere se va usando la regola
Code:
NAME="%k", SYMLINK="backup%n"


e quindi alla fine dovrebbe venirti qualcosa del tipo
Code:
BUS=="scsi", SYSFS{model}=="Storage Device ", SYSFS{vendor}=="USB 2.0 ", NAME="%k", SYMLINK="backup%n"


2. prova a verificare che il BUS sia scsi (nel mio caso è usb e che il nome del modello/venditore coincidano con gli altri... non dovrebbero essere quei due i problemi, ma per esperienza basta cambiargli mezza cavolata a volte che poi va[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
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