Pagina 1 di 2

Risolto - Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 12:00
da ezk
Ciao, premetto che il disco in questione funziona bene se collegato al portatile dove ho la 8.04, oggi l'ho collegato al desktop (8.10) ma oltre a non montarlo e non farlo vedere in risorse-->computer, il log mi dice questo:
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.616028] usb 5-5: new high speed USB device using ehci_hcd and address 4
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.827828] usb 5-5: configuration #1 chosen from 1 choice
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.925896] usbcore: registered new interface driver libusual
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.955528] Initializing USB Mass Storage driver...
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.956623] scsi4 : SCSI emulation for USB Mass Storage devices
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.957292] usbcore: registered new interface driver usb-storage
Apr  1 10:52:42 alex-desktopP4 kernel: [ 7869.957310] USB Mass Storage support registered.
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.957256] scsi 4:0:0:0: Direct-Access     MAXTOR S TM3320820A       3.AA PQ: 0 ANSI: 0
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.960120] sd 4:0:0:0: [sdb] 625142449 512-byte hardware sectors (320073 MB)
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.961256] sd 4:0:0:0: [sdb] Write Protect is off
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.962995] sd 4:0:0:0: [sdb] 625142449 512-byte hardware sectors (320073 MB)
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.964239] sd 4:0:0:0: [sdb] Write Protect is off
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7874.965127]  sdb: sdb1 sdb2
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7875.107329] sd 4:0:0:0: [sdb] Attached SCSI disk
Apr  1 10:52:47 alex-desktopP4 kernel: [ 7875.108842] sd 4:0:0:0: Attached scsi generic sg2 type 0

Apr  1 10:52:48 alex-desktopP4 kernel: [ 7875.338613] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
Apr  1 10:52:48 alex-desktopP4 kernel: [ 7875.338627] sd 4:0:0:0: [sdb] Add. Sense: No additional sense
information
<------ripetuto all'infinito
Soluzioni?

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 12:20
da bancaldo

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 12:44
da ezk
Ciao bancaldo, ho aggiunto quanto riportato:
# import filesystem metadata aggiunto la prima parte fino alla virgola ENV{DEVTYPE}=="partition",
ENV{DEVTYPE}=="partition", IMPORT{program}="vol_id --export $tempnode"
ricollegato e... stessa solfa

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 13:09
da ezk
ho letto
https://bugs.launchpad.net/ubuntu/+sour ... bug/221983
però a me sembra un pò diverso:
[ 318.460005] sd 6:0:0:0: [sdb] Sense Key : Medium Error [current]
[ 318.460009] sd 6:0:0:0: [sdb] Add. Sense: No additional sense information
il mio :
Sense Key : No Sense [current]
forse si riferiscono a due cose diverse

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 13:45
da bancaldo
hai riavviato?

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 15:25
da ezk
no, non ho riavviato, ovviamente intendi il pc in toto vero?

Re: Hd usb problemi nel montaggio

Inviato: mercoledì 1 aprile 2009, 15:31
da bancaldo
giusto per ricaricare tutti i moduli....

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 9:45
da ezk
ciao, oggi ho riprovato ma stesso errore, in più nel syslog:
Apr  2 09:40:27 alex-desktopP4 kernel: [  503.971874] sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
Apr  2 09:40:27 alex-desktopP4 kernel: [  503.971883] end_request: I/O error, dev sdb, sector 97
domanda: come mai mi da errore di I/O nel settore 97 ed in altri per la verità se sia con win xp che con la 8.04 che sono nel portatile tutto va a meraviglia?
Per scrupolo ho provato con la live ma non cambia nulla.

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 12:18
da bancaldo
ezk ha scritto: ciao, oggi ho riprovato ma stesso errore, in più nel syslog:
Apr  2 09:40:27 alex-desktopP4 kernel: [  503.971874] sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
Apr  2 09:40:27 alex-desktopP4 kernel: [  503.971883] end_request: I/O error, dev sdb, sector 97
domanda: come mai mi da errore di I/O nel settore 97 ed in altri per la verità se sia con win xp che con la 8.04 che sono nel portatile tutto va a meraviglia?
Per scrupolo ho provato con la live ma non cambia nulla.
infatti quel tipo di correzione sui 2 file, suggerita in launchpad, deriva proprio dalle differenze che c'erano sui file tra la 8.04 e la 8.10.
https://bugs.launchpad.net/ubuntu/+sour ... bug/221983

potresti provare per scrupolo, facendo prima un backup, a sostituire il file 40-permissions.rules della 8.10, con quello della 8.04.
In realtà, loro sostituivano anche il file 65-persistent-storage.rules, della 8.10, con il 60-persistent-storage.rules della 8.04 (ovviamente rinominato in 65-persistent-storage.rules) e ad alcuni funzionava.

.

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 13:33
da ezk
ho effettuato le modifiche ai due file 40-60 (sacaricati dai link ) riavviato ma nessun effetto; provo a inserire quelli della 8.04

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 13:45
da bancaldo
prova, tieni però un backup però dei tuoi.
E il n.65 va rinominato 60.

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 13:54
da ezk
ho copiato i due file della 8.04 live che per inciso mi monta hd usb, ma niente da faresempre il solito errore

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 13:59
da bancaldo
ezk ha scritto: ho copiato i due file della 8.04 live che per inciso mi monta hd usb, ma niente da faresempre il solito errore
riavviando vero?

mmm....
ho trovato l'errore
end_request: I/O error, dev sdb, sector 97

su bugs.launchpad, ma nessuna risposta.
cerco ancora un po'.....

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 14:24
da ezk
prima di riaccendere il disco riavvio, per la precisione in syslog:

Apr  2 13:52:33 alex-desktopP4 kernel: [  109.956292] usb 5-5: USB disconnect, address 4
Apr  2 13:52:33 alex-desktopP4 kernel: [  109.956873] sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
Apr  2 13:52:33 alex-desktopP4 kernel: [  109.956887] end_request: I/O error, dev sdb, sector 625142448
Apr  2 13:52:33 alex-desktopP4 kernel: [  109.956897] Buffer I/O error on device sdb, logical block 625142448

e via discorrendo........

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 14:31
da bancaldo
posta per completezza:

Codice: Seleziona tutto

dmesg | grep sdb
EDIT:

e

Codice: Seleziona tutto

 lsusb

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 15:31
da ezk
come da richiesta, dmesg | grep sdb:
[  100.267612] sd 4:0:0:0: [sdb] 625142449 512-byte hardware sectors (320073 MB)
[  100.268477] sd 4:0:0:0: [sdb] Write Protect is off
[  100.268485] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  100.268491] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  100.270361] sd 4:0:0:0: [sdb] 625142449 512-byte hardware sectors (320073 MB)
[  100.271730] sd 4:0:0:0: [sdb] Write Protect is off
[  100.271741] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  100.271747] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  100.272699]  sdb: sdb1 sdb2
[  100.369938] sd 4:0:0:0: [sdb] Attached SCSI disk
[  100.603716] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  100.603730] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  100.758843] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  100.758855] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  100.914095] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  100.914106] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.069355] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.069370] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.224477] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.224489] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.379739] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.379755] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.534985] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.534997] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.690110] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.690122] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  101.845364] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  101.845375] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.000491] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.000502] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.155744] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.155756] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.310997] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.311008] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.466132] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.466147] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.621379] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.621391] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.776631] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.776642] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  102.931759] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  102.931770] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.087013] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.087025] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.242141] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.242152] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.397393] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.397404] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.552653] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.552668] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.707775] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.707787] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  103.863027] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  103.863038] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.018282] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.018294] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.173408] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.173420] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.328660] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.328672] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.483788] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.483799] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.639049] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.639064] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.794295] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.794307] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  104.949422] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  104.949434] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.104677] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.104690] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.259936] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.259951] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.415062] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.415075] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.570317] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.570332] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.725444] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.725458] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  105.880692] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  105.880704] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.035946] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.035958] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.191075] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.191088] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.346332] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.346346] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.501579] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.501590] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.656713] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.656727] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.811961] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.811973] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  106.967085] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  106.967097] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.122340] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.122352] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.277592] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.277604] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.432720] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.432732] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.587973] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.587984] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.743109] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.743123] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  107.898357] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  107.898368] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.053609] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.053621] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.208737] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.208748] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.363988] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.364000] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.519123] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.519137] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.674370] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.674382] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.829629] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.829644] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  108.984752] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  108.984764] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.140011] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  109.140026] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.295256] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  109.295267] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.450384] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  109.450395] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.605637] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  109.605648] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.760764] sd 4:0:0:0: [sdb] Sense Key : No Sense [current]
[  109.760776] sd 4:0:0:0: [sdb] Add. Sense: No additional sense information
[  109.956873] sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
[  109.956887] end_request: I/O error, dev sdb, sector 625142448
[  109.956897] Buffer I/O error on device sdb, logical block 625142448
[  109.958359] sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
[  109.958376] end_request: I/O error, dev sdb, sector 625142448
[  109.958388] Buffer I/O error on device sdb, logical block 625142448
[  109.959714] sd 4:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[  109.959728] end_request: I/O error, dev sdb, sector 625142440
[  109.959738] Buffer I/O error on device sdb, logical block 625142440
[  109.959762] sd 4:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[  109.959771] end_request: I/O error, dev sdb, sector 625142441
[  109.959777] Buffer I/O error on device sdb, logical block 625142441
[  109.959785] Buffer I/O error on device sdb, logical block 625142442
[  109.959793] Buffer I/O error on device sdb, logical block 625142443
[  109.959801] Buffer I/O error on device sdb, logical block 625142444
[  109.959807] Buffer I/O error on device sdb, logical block 625142445
[  109.959815] Buffer I/O error on device sdb, logical block 625142446
[  109.959823] Buffer I/O error on device sdb, logical block 625142447
lsusb:
Bus 005 Device 005: ID 2164:2507 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 04d9:0025 Holtek Semiconductor, Inc.
Bus 004 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 16:43
da bancaldo
Bus 005 Device 005: ID 2164:2507
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 04d9:0025 Holtek Semiconductor, Inc.
Bus 004 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Codice: Seleziona tutto

Bus 004 Device 003: ID 04d9:0025 Holtek Semiconductor, Inc
questo cos'è?

Codice: Seleziona tutto

Bus 005 Device 005: ID 2164:2507 
questo invece sembra lui...e non è nua bella cosa

ma che marca e modello di HD è?

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 16:56
da bancaldo
posta perfavore il contenuto del file:
60-persistent-storage.rules

Codice: Seleziona tutto

sudo gedit /etc/udev/rules.d/60-persistent-storage.rules

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 16:56
da ezk
ho il mouse, la tastiera, gli altoparlanti via usb; l'Hd è un Maxtor che però lsusb non vede;
Sistem profiler and benchmark invece si (sezione storage e con l'hd acceso )

Re: Hd usb problemi nel montaggio

Inviato: giovedì 2 aprile 2009, 16:59
da ezk
# do not edit this file, it will be overwritten on update

# persistent storage links: /dev/disk/{by-id,by-uuid,by-label,by-path}
# scheme based on "Linux persistent device names", 2004, Hannes Reinecke

ACTION!="add|change", GOTO="persistent_storage_end"
SUBSYSTEM!="block", GOTO="persistent_storage_end"

# skip rules for inappropriate block devices
KERNEL=="ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*", GOTO="persistent_storage_end"

# never access non-cdrom removable ide devices, the drivers are causing event loops on open()
KERNEL=="hd*[!0-9]", ATTR{removable}=="1", DRIVERS=="ide-cs|ide-floppy", GOTO="persistent_storage_end"
KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="persistent_storage_end"

# ignore partitions that span the entire disk
ATTR{whole_disk}=="*", GOTO="persistent_storage_end"

# /sys/class/block will export this
ENV{DEVTYPE}!="?*", ATTR{range}=="?*", ENV{DEVTYPE}="disk"
ENV{DEVTYPE}!="?*", ATTR{start}=="?*", ENV{DEVTYPE}="partition"

# for partitions import parent information
ENV{DEVTYPE}=="partition", IMPORT{parent}="ID_*"

# by-id (hardware serial number)
KERNEL=="hd*[!0-9]", IMPORT{program}="ata_id --export $tempnode"
KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
KERNEL=="hd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"

KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="?*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p"
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted --fallback-to-sysfs -s %p -d $tempnode"
KERNEL=="cciss?c[0-9]d[0-9]", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted --ignore-sysfs -s %p -d $tempnode", ENV{ID_BUS}="cciss"
KERNEL=="sd*[!0-9]|sr*|cciss?c[0-9]d[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
KERNEL=="sd*[0-9]|cciss*p[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"

# libata compat (links like hd*)
KERNEL=="sd*[!0-9]|sr*", ENV{ID_VENDOR}=="ATA", PROGRAM="ata_id $tempnode", RESULT=="?*", ENV{ID_ATA_COMPAT}="$result", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}"
KERNEL=="sd*[0-9]", ENV{ID_ATA_COMPAT}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_ATA_COMPAT}-part%n"

KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_NAME}=="?*", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}-part%n"

# by-path (shortest physical path)
ENV{DEVTYPE}=="disk", IMPORT{program}="path_id %p"
ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}"
ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"

KERNEL=="sr*", GOTO="persistent_storage_end"
KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GOTO="persistent_storage_end"

# by-label/by-uuid (filesystem properties)
IMPORT{program}="vol_id --export $tempnode"
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

LABEL="persistent_storage_end"
ti ricordo che questo è quello estrapolato dalla live 8.04