hotplug configuration
hello,
I am trying to find out how to make this service work for me. I believe it's installed correctly (I have morphix debian), since all the files in /etc/hotplug are in place. My final goal is to get it work like in Suse 9.1 or Mandrake 10 with usb memory sticks. Namely, when I insert that device into the usb slot, an icon appears on my kde desktop with the mounted device, and it disappears again after I plug it out. I am not sure my hotplug service is running, though when I write Code:
hotplug start the same with Code:
hotplug status Code:
mount -t vfat /dev/sda1 /mnt/usb Now, I read the file /etc/hotplug/usb.rc which (as I believe) contains what I need. Code:
maybe_start_usb () Code:
usbfs on /proc/bus/usb type usbfs (rw) what can be done? where can I say to it to open my application whenever it sees the memory stick plugged in? thanx to everybody. |
/proc/bus/usb is only losely related to usb stick. It is an interface where you can check your system for different usb devices.
|
Thanx for the remark..
Ok, I did have some progress : I noticed that when I write Code:
modprobe usb-storage so I looked at /etc/hotplug/usb/usb-storage and found this: Code:
if (not $attached and $unattached) { Now there are three files: usb-storage,usb-agent and usb.rc. I tried to find out what is the order of execution and the result is (with "echo") usb.rc->usb.agent->usb-storage though I guess that might not be correct since they are built of many functions.. Anyway, after these files run, I can easily mount my usb drive with mount -t /dev/sda1 /mnt/usb but, if I put this line in usb-agent, and direct the ouput to some file, It contains this message: Code:
mount: /dev/sda1 is not a valid block device according to this post: post Quote:
|
All times are GMT -5. The time now is 03:27 AM. |