Aurelien Jarno wrote:
Le Mardi 26 Février 2002 17:01, Stephane Bunel a écrit :
Didier Link wrote:
Le Tue, 26 Feb 2002 à 10:01:21AM +0100, Aurelien Jarno a écrit :
[...]
En effet c'est pas très pratique ... Le scsi ne supporte pas la
connexion de périphériques à chaud
Si, on peut le faire (cf. /usr/src/linux/drivers/scsi/scsi.c) :
[...]
* Native multichannel, wide scsi, /proc/scsi and hot plugging
* support added by Michael Neuffer <[EMAIL PROTECTED]>
[...]
* Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
[...]
* Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi
* with "0 1 2 3" replaced by your "Host Channel Id Lun".
Mon sauveur !
J'ai rajouté
pre-install sd_mod /usr/bin/lessecho "scsi add-single-device 0 0
0 0" > /proc/scsi/scsi
dans mon /etc/modutils, et ça marche. Quand j'insère le zip, il me créé la
partition, et quand je l'enlève, il me supprime la partition. Génial.
Un petit truc bizarre quand même : echo "scsi ..........." > /proc/scsi/scsi
marche, mais /bin/echo "scsi ..........." > /proc/scsi/scsi me sort :
/bin/echo: Erreur d'écriture.: Fonction non implantée
J'ai donc utilisé lessecho. Bizarre tout de même.
Peut-être qu'un echo -n [...] aurait mieux fonctionné ?
Stéphane.