udev kai usb disks

Harris Kosmidhs hkosmidi at panoramix.softnet.tuc.gr
Fri Aug 19 14:16:04 EEST 2005


Prospa8hsa na pai3o me to udev prokimenou otan kano plug ton e3oteriko 
disko mou h/kai to flash disk na exoun standar onomasia (giati allios 
analoga me to poio ekanes plug prota htan sdb h sdc) kai na ginontai 
mount automata.

Afou perasa ta katallhla paketa sto debian kai ebala ola ta usb pou eixa 
ekana systool -vb scsi|grep vendor

vendor              = "ATA     "
vendor              = "WDC WD20"

O protos einai upoti8etai o SATA pou exo mesa sto kouti kai o allos enas 
kanoirgios 200GB se external HDD
  Epeita sto /etc/udev/udev.rules  ebala:
BUS="scsi", SYSFS_vendor="WDC*", NAME="large%n"
kai ekana restart to udev

kanontas fdisk -l /dev/large mou deixnei oti einai o 200 me to ena 
partition(/dev/large1) pou exei pano. Sthn pragmatikothta omos de mporo 
na to kano mount. Caxnontas ligo eida oti o /dev/large ousiastika einai 
o SATA diskos pou exo (an kai to vendro tou einai ATA).

Dhaldh to udev "mperdeuatai" kai panta 8eorei os /dev/large ton SATA 
disko. Fusika dokimasa na kano unplugged ta panta kai systool -vb scsi 
kai etsi sunhdhtopoihsa oti o e3oterikos diskos einai vendor WDC WD20.

Ti kano la8os kai paizei auto to mple3imo?

PS: na toniso oti eite balo th grammh
BUS="scsi", SYSFS_vendor="WDC*", NAME="large%n"
eite
BUS="scsi", SYSFS_vendor="ATA*", NAME="large%n"
o /dev/large panta anaferetai ston SATA disko




More information about the Linux-greek-users mailing list