Montar automáticamente disco duro USB

HVILLANU at gnp.com.mx HVILLANU at gnp.com.mx
Fri Nov 12 23:41:50 UTC 2004


Saludos lista,

Como puedo hacer para que al insertar mu disco duro USB este se monte
automáticamente?

Manualmente no hay problema:
#mount -t auto /dev/sda5 /mnt/hdusb
#mount -t vfat /dev/sda5 /mnt/hdusb

El log me muestra lo siguiente:

#dmesg
Linux version 2.6.5-1.358 (bhcompile at bugs.build.redhat.com) (gcc version
3.3.3
20040412 (Red Hat Linux 3.3.3-7)) #1 Sat May 8 09:04:50 EDT 2004
BIOS-provided physical RAM map:
[...]
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: HITACHI_  Model: DK23AA-51         Rev: 00XK
  Type:   Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
SCSI device sda: 10009440 512-byte hdwr sectors (5125 MB)
sda: assuming drive cache: write through
 sda: sda1 < sda5 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
[...]

Y en fstab esta definido así:

/dev/sda5               /mnt/hdusb              auto    noauto,owner 0 0

Si le agrego kudzu y reinicio el equipo, borra la línea de fstab y también
la carpeta /mnt/hdusb

Ah si, tengo Fedora Core 2

Salu2
***************************************************************************













More information about the es-users mailing list