Re: install usb thumb drive

2002-12-04 Thread Rob Weir
On Wed, Dec 04, 2002 at 03:49:29PM +0800, Patrick Hsieh wrote:
 Thank you.
 Is there any way to make the Linux automount the thumb drive and execute my 
 customized command when I connect the usb thumb drive to the usb port?
 
 If automatic command execution is possible, then it will be very interesting.

Should be possible; I think 'hotplug' can be setup to run arbitrary
programs when something is plugged in...

-rob



msg16940/pgp0.pgp
Description: PGP signature


Re: install usb thumb drive

2002-12-04 Thread Patrick Hsieh
Thank you.
I installed hotplug and compile kernel with hotplug support, reading the man 
pages but can't find the place to define my userspace command. Can you 
indicate the correct configuration file or give some examples?



On Wednesday 04 December 2002 17:45, Rob Weir wrote:
 On Wed, Dec 04, 2002 at 03:49:29PM +0800, Patrick Hsieh wrote:
  Thank you.
  Is there any way to make the Linux automount the thumb drive and execute
  my customized command when I connect the usb thumb drive to the usb port?
 
  If automatic command execution is possible, then it will be very
  interesting.

 Should be possible; I think 'hotplug' can be setup to run arbitrary
 programs when something is plugged in...

 -rob

-- 
Patrick Hsieh[EMAIL PROTECTED]
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91
1024D/F3662014 9ADF 6E3F 68DE 8DF8 4A67  0B54 6608 BAA8 F366 2014


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




install usb thumb drive

2002-12-03 Thread Patrick Hsieh
Hello list,

I am trying to install the usb thumb drive on the IBM X21 laptop but have some 
problem. I modprobe usb-uhci and usb-storage, and the screen shows the 
message

usb.c: deregistering driver usb-storage
scsi : 1 host left.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor:   Model: USB DISK  Rev: 2.08
  Type:   Direct-Access  ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
sda: Write Protect is off
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: usb-storage driver claimed interface d7236460
USB Mass Storage support registered.


However, when I fdisk /dev/sda, it complains:
Unable to open /dev/sda

Is there anything wrong?




-- 
Patrick Hsieh[EMAIL PROTECTED]
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91
1024D/F3662014 9ADF 6E3F 68DE 8DF8 4A67  0B54 6608 BAA8 F366 2014


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: install usb thumb drive

2002-12-03 Thread Patrick Hsieh
problem solved!
I noticed that all /dev/sd* were gone. So I copy the /dev/sd* from another 
machine. And every works!



-- 
Patrick Hsieh[EMAIL PROTECTED]
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91
1024D/F3662014 9ADF 6E3F 68DE 8DF8 4A67  0B54 6608 BAA8 F366 2014


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: install usb thumb drive

2002-12-03 Thread Rob Weir
On Tue, Dec 03, 2002 at 06:39:38PM +0800, Patrick Hsieh wrote:
 problem solved!
 I noticed that all /dev/sd* were gone. So I copy the /dev/sd* from another 
 machine. And every works!

Another solution is to run 'MAKEDEV', which is a script that knows how
to create device nodes for you.

-rob



msg16922/pgp0.pgp
Description: PGP signature


Re: install usb thumb drive

2002-12-03 Thread Patrick Hsieh
Thank you.
Is there any way to make the Linux automount the thumb drive and execute my 
customized command when I connect the usb thumb drive to the usb port?

If automatic command execution is possible, then it will be very interesting.



 Another solution is to run 'MAKEDEV', which is a script that knows how
 to create device nodes for you.

 -rob

-- 
Patrick Hsieh[EMAIL PROTECTED]
GnuPG Pubilc Key at http://www.ezplay.tv/~pahud/pahudatezplay.pubkey
MD5 checksum: b948362c94655b74b33e859d58b8de91
1024D/F3662014 9ADF 6E3F 68DE 8DF8 4A67  0B54 6608 BAA8 F366 2014


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]