* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
@ 2006-08-22 4:18 ` Greg KH
2006-08-22 4:23 ` Deepak Katagade
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2006-08-22 4:18 UTC (permalink / raw)
To: linux-hotplug
On Tue, Aug 22, 2006 at 09:41:22AM +0530, Deepak Katagade wrote:
> 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 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
2006-08-22 4:18 ` Greg KH
@ 2006-08-22 4:23 ` Deepak Katagade
2006-08-28 13:20 ` Deepak Katagade
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Deepak Katagade @ 2006-08-22 4:23 UTC (permalink / raw)
To: linux-hotplug
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
2006-08-22 4:18 ` Greg KH
2006-08-22 4:23 ` Deepak Katagade
@ 2006-08-28 13:20 ` Deepak Katagade
2006-08-28 17:04 ` Greg KH
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Deepak Katagade @ 2006-08-28 13:20 UTC (permalink / raw)
To: linux-hotplug
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
On 8/22/06, Greg KH <greg@kroah.com> wrote:
> On Tue, Aug 22, 2006 at 09:41:22AM +0530, Deepak Katagade wrote:
> > 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 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
` (2 preceding siblings ...)
2006-08-28 13:20 ` Deepak Katagade
@ 2006-08-28 17:04 ` Greg KH
2006-10-26 10:27 ` Deepak Katagade
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2006-08-28 17:04 UTC (permalink / raw)
To: linux-hotplug
On Mon, Aug 28, 2006 at 06:38:59PM +0530, Deepak Katagade wrote:
> 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
` (3 preceding siblings ...)
2006-08-28 17:04 ` Greg KH
@ 2006-10-26 10:27 ` Deepak Katagade
2006-10-26 15:44 ` Greg KH
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Deepak Katagade @ 2006-10-26 10:27 UTC (permalink / raw)
To: linux-hotplug
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
` (4 preceding siblings ...)
2006-10-26 10:27 ` Deepak Katagade
@ 2006-10-26 15:44 ` Greg KH
2006-11-13 12:54 ` Deepak Katagade
2006-11-13 17:12 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2006-10-26 15:44 UTC (permalink / raw)
To: linux-hotplug
On Thu, Oct 26, 2006 at 03:45:05PM +0530, Deepak Katagade wrote:
> 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
` (5 preceding siblings ...)
2006-10-26 15:44 ` Greg KH
@ 2006-11-13 12:54 ` Deepak Katagade
2006-11-13 17:12 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Deepak Katagade @ 2006-11-13 12:54 UTC (permalink / raw)
To: linux-hotplug
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
On 10/26/06, Greg KH <greg@kroah.com> wrote:
> On Thu, Oct 26, 2006 at 03:45:05PM +0530, Deepak Katagade wrote:
> > 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: problem while automounting the usb mass storage
2006-08-21 16:51 problem while automounting the usb mass storage Greg KH
` (6 preceding siblings ...)
2006-11-13 12:54 ` Deepak Katagade
@ 2006-11-13 17:12 ` Greg KH
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2006-11-13 17:12 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 13, 2006 at 06:24:19PM +0530, Deepak Katagade wrote:
> 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread