problem while automounting the usb mass storage
Quoted 1 line · deepak madhu
Hi, I gone through the website www. greenfly.org and I am trying to automount a usb device.I followed all the steps mentioned in the site i.e 1.. Making an entry in the /etc/hotplug/usb.usermap. 2.. And adding a script named usb-storage in the
/etc/hotplug/usband also 3. Making an entry in the/etc/fstab.Thescript usb-storage was able to execut
e and I was able check it by using echo statement.The thing which is not happening is mount command present in the usb-storage script .In the script i was able to print statements before and after the mount but mounting of the device is not happening.Mount is not giving any errors also.The device has been detected properly but mount is not happening .when i ran this script from shell manually I was able to MOUNT. The partitions has been detected propely, product id, device id has been changed properly according to my device. I have used this usb-storage script.#!/bin/sh
Please resend this without using HTML so it can be readable :(
thanks,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Deepak Katagade
Hi,
I gone through the website www. greenfly.org and I am trying to
automount a usb device.I followed all the steps mentioned in the site
i.e 1.. Making an entry in the/etc/hotplug/usb.usermap.
2.. And adding a script
named usb-storage in the/etc/hotplug/usband also
3. Making an entry in the/etc/fstab.
The hotplug scripts are "depreciated" for 2.6 kernel versions, and udev has completly replaced this.
Look at how GNOME and KDE do automounting of usb storage devices now, they use HAL and dbus messages to catch the event and do something with it.
thanks,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Hi,
I gone through the website www. greenfly.org and I am trying to
automount a usb device.I followed all the steps mentioned in the site
i.e 1.. Making an entry in the /etc/hotplug/usb.usermap.
2.. And adding a script
named usb-storage in the /etc/hotplug/usb and also
3. Making an entry in the/etc/fstab.
The script usb-storage was able to execute and I was able check it by using echo statement.The thing which is not happening is mount command present in the usb-storage script .In the script i was able to print statements before and after the mount but mounting of the device is not happening.Mount is not giving any errors also.The device has been detected properly but mount is not happening .
when i ran this script from shell manually I was able to MOUNT.
The partitions has been detected propely, product id, device id has
been changed properly according to my device.
I have used this usb-storage script.
#!/bin/sh
case "$PRODUCT" in
changed according to my device) # FireXpress usb hard drive /bin/mount /mnt/usbdrive
# set up what to do when you remove the drive echo -e '#!/bin/sh\n/bin/umount /mnt/usbdrive' > $REMOVER chmod a+x $REMOVER ;; esac In my system i didn't have /usr/sbin/bin/updfstab whether this is required??. I am using montavista linux 2.6.10.
waiting for your help.
Thanks and regards
deepak
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Hi,
can you please help me in automounting the usb mass storage device
using udev.Just give me how to start. I am not getting the idea how to start.
I am using montavista 2.6.10 kernel and I am not using the xserver.
Thanks and Regards
Deepak
Quoted 13 lines · Greg KH
Quoted 8 lines · Deepak Katagade
Hi,
I gone through the website www. greenfly.org and I am trying to
automount a usb device.I followed all the steps mentioned in the site
i.e 1.. Making an entry in the/etc/hotplug/usb.usermap.
2.. And adding a script
named usb-storage in the/etc/hotplug/usband also
3. Making an entry in the/etc/fstab.The hotplug scripts are "depreciated" for 2.6 kernel versions, and udev has completly replaced this.
Quoted 8 lines
Look at how GNOME and KDE do automounting of usb storage devices now, they use HAL and dbus messages to catch the event and do something with it.
thanks,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Deepak Katagade
Hi,
can you please help me in automounting the usb mass storage device
using udev.Just give me how to start. I am not getting the idea how to start.I am using montavista 2.6.10 kernel and I am not using the xserver.
I would suggest using a newer kernel, as that one is very old and contains numerous security problems...
Anyway, just have udev run a script that mounts the device when it sees a storage device, it should only be a few lines of shell script to do it.
good luck,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Hi All,
I am using udev-058 to automount the usbmass storage device.In the
udev script when the device is detected i am running an application through RUN += which will mount the device.This will work fine for the mass storage devices .But in case of usb dvd writer if the media is present inside the writer and then if we plug the writer the udev will mount the device.Suppose if I put media after plugging the writer in that case the device will not be mounted.How to solve this problem.Anothe thing to note I am not using the hal daemon. Please can you help me solving this problem.
Thanks and regards
Deepak
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Deepak Katagade
Hi All,
I am using udev-058 to automount the usbmass storage device.In the
udev script when the device is detected i am running an application through RUN += which will mount the device.This will work fine for the mass storage devices .But in case of usb dvd writer if the media is present inside the writer and then if we plug the writer the udev will mount the device.Suppose if I put media after plugging the writer in that case the device will not be mounted.How to solve this problem.Anothe thing to note I am not using the hal daemon. Please can you help me solving this problem.
Use HAL :)
Seriously, that's what that tool is for. Look at how HAL and gnome-volume-manager handle mounting of media. There is nothing that udev can do to help out here, sorry.
You also might want to upgrade your version of udev, that is quite old.
good luck,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Hi All,
We have cross compiled the hal-0.4.7 for our arm board and d-bus-0.22.After installing it
when the device is plugged in no events are generated.The following message will come
***************************************************************************************************************
19:04:53.653 [I] hald.c:394: hal 0.4.7
19:04:53.662 [I] hald.c:398: Will not daemonize 19:04:53.732 [I] linux/osspec.c:219: Mountpoint for sysfs is /sys 19:04:53.738 [W] linux/common.c:861: Error opening sysfs directory at /sys/bus/pci/drivers
19:04:54.347 [I] linux/osspec.c:1544:
******************************************19:04:54.352 [I] linux/osspec.c:1545: **** hotplug_counter is now 1 19:04:54.356 [I] linux/osspec.c:1546:
******************************************19:04:54.386 [I 19:04:54.386 [I] device_info.c:1160: scan_fdi_files: Processing file '6in1-card-reader.fdi'
19:04:54.396 [I] device_info.c:1160: scan_fdi_files: Processing file 'ide-drives.fdi'
19:04:54.406 [I] device_info.c:1160: scan_fdi_files: Processing file 'jetflash-mp3-player.fdi'
19:04:54.416 [I] device_info.c:1160: scan_fdi_files: Processing file 'lexar-media-cf-reader.fdi'
19:04:54.424 [I] device_info.c:1160: scan_fdi_files: Processing file 'lucent-pcmcia-wireless.fdi'
19:04:54.434 [I] device_info.c:1160: scan_fdi_files: Processing file 'sony_dsc.fdi'
04:54.486 [I] device_info.c:1163: *** Matched file /usr/local/share/hal/fdi/90defaultpolicy/storage-policy.fdi 19:04:54.585 [I] callout.c:318: Invoking /usr/local/etc/hal/device.d/50-fstab-sync.hal
19:04:54.664 [I] callout.c:330: Child pid 793 for 50-fstab-sync.hal 793: ###################################
793: fstab-sync entering; add udi=/org/freedesktop/Hal/devices/computer 793: Acquiring advisory lock on /etc/fstab
793: Lock acquired
793: mount_root='/media'
793: use_managed=1
793: managed primary='managed'
793: managed secondary='kudzu'
793: using temporary file '/etc/.fstab.hal.N'
793: Seeing if line for dev='/proc',mnt='/proc' should be removed
3: fstab-sync exiting; add udi=/org/freedesktop/Hal/devices/computer 793: ###################################
19:04:55.041 [I] callout.c:173: Child pid 793 terminated 19:04:55.044 [I] hald.c:81: Added device to GDL; udi=/org/freedesktop/Hal/devices/computer
19:04:55.048 [I] hald.c:528: Device probing completed 19:04:55.049 [I] linux/osspec.c:1557:
=====================19:04:55.055 [I]linux/osspec.c:1558: == hotplug_counter is now 0 19:04:55.056 [I] linux/osspec.c:1559:
=====================19:04:55.058 [I]
callout.c:193: Callouts done for /org/freedesktop/Hal/devices/computer
**********************************************************************************************************************
An error message will come telling that.
Error opening sysfs directory at /sys/bus/pci/drivers.
In our board we are not using the PCI bus. What may be the problem please help me on this.
Thanks and regards
Deepak
Quoted 18 lines · Greg KH
Quoted 10 lines · Deepak Katagade
Hi All,
I am using udev-058 to automount the usbmass storage device.In the
udev script when the device is detected i am running an application through RUN += which will mount the device.This will work fine for the mass storage devices .But in case of usb dvd writer if the media is present inside the writer and then if we plug the writer the udev will mount the device.Suppose if I put media after plugging the writer in that case the device will not be mounted.How to solve this problem.Anothe thing to note I am not using the hal daemon. Please can you help me solving this problem.Use HAL :)
Seriously, that's what that tool is for. Look at how HAL and gnome-volume-manager handle mounting of media. There is nothing that udev can do to help out here, sorry.
Quoted 6 lines
You also might want to upgrade your version of udev, that is quite old.
good luck,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Deepak Katagade
An error message will come telling that.
Error opening sysfs directory at/sys/bus/pci/drivers. In our board we are not using the PCI bus. What may be the problem please help me on this.
Try asking on the HAL mailing list :)
good luck,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel