Re: How to find my usb storage device mount point

2009-02-15 Thread Karel Zak
On Fri, Sep 12, 2008 at 12:33:18PM +0530, ravikumar wrote: > My question is how can i get the mount point. I can get using df > command, for that i need device file to which my storage device atatched. Use filesystem LABELs, "mount -l" returns mountpoints and labels, for example (look up label

Re: How to find my usb storage device mount point

2008-09-12 Thread Thomas Petazzoni
Le Fri, 12 Sep 2008 12:33:18 +0530, ravikumar <[EMAIL PROTECTED]> a écrit : > Done the detection part by looking /proc/bus/usb/devices file. You'd better do this using HAL and D-Bus, which will notify you when a device is mounted. Not need to poll /proc/bus/usb/devices. > For inotify ,i need to

Re: How to find my usb storage device mount point

2008-09-12 Thread ravikumar
Thomas Petazzoni wrote: Le Fri, 12 Sep 2008 11:34:39 +0530, ravikumar <[EMAIL PROTECTED]> a écrit : I think i may not properly communicated my requirement or people wont understand my requirement. My requirement is simply detect usb storage device plugged into PC and notify any files are t

Re: How to find my usb storage device mount point

2008-09-11 Thread Thomas Petazzoni
Le Fri, 12 Sep 2008 11:34:39 +0530, ravikumar <[EMAIL PROTECTED]> a écrit : > I think i may not properly communicated my requirement or people > wont understand my requirement. > > My requirement is simply detect usb storage device plugged into PC > and notify any files are transfered(not data t

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
I think i may not properly communicated my requirement or people wont understand my requirement. My requirement is simply detect usb storage device plugged into PC and notify any files are transfered(not data transfer, i need file names) . I knew syslod and dmesg command will give newly plug

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: For my project df command will help only if i know the device to which my usb storage device is attached. shreeram wrote: In that case you can grep the "dmesg" to find the type of device. ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I wa

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, Ravikumar. "dmesg" should give you the details of the device V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb stora

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Can any body know how dmesg command and syslogd will fetch the information about usb storage device plugged into my system. Regards, Ravikumar. shreeram wrote: ravikumar wrote: Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, R

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
For my project df command will help only if i know the device to which my usb storage device is attached. shreeram wrote: ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, Ravikumar. V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device thr

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to find what are file

Re: How to find my usb storage device mount point

2008-09-11 Thread V . Ravikumar
I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to find what are files transfered from/to usb storage device.(using usbmon i cant f

Re: How to find my usb storage device mount point

2008-09-11 Thread mayur nande
I guess there are appropriate messages in /var/log/messages when you insert your USB drive. tail -n 20 /var/log/message should give you the mount point;for example sda or sdb. Reading this file may be a good idea. Regards Mayur On Thu, Sep 11, 2008 at 11:57 AM, Sandeep K Sinha <[EMAIL PROTECTED]>

Re: How to find my usb storage device mount point

2008-09-11 Thread Belisko Marek
Hi, On 9/11/08, Sandeep K Sinha <[EMAIL PROTECTED]> wrote: > Hi Ravi, > > On Thu, Sep 11, 2008 at 11:43 AM, ravikumar <[EMAIL PROTECTED]> > wrote: > > How to find out where is my usb storage device mounted on,I need to find > out using some program. > > I knew ,usb devices will usually mount on s

Re: How to find my usb storage device mount point

2008-09-11 Thread Sandeep K Sinha
Try suing the "mount" command that will surely provide you with the desired results. Thanks, Sandeep. On Thu, Sep 11, 2008 at 12:12 PM, ravikumar <[EMAIL PROTECTED]>wrote: > > Sandeep K Sinha wrote: > > Hi Ravi, > > On Thu, Sep 11, 2008 at 11:43 AM, ravikumar <[EMAIL PROTECTED]>wrote: > >> How

Re: How to find my usb storage device mount point

2008-09-10 Thread Sandeep K Sinha
Hi Ravi, On Thu, Sep 11, 2008 at 11:43 AM, ravikumar <[EMAIL PROTECTED]>wrote: > How to find out where is my usb storage device mounted on,I need to find > out using some program. > I knew ,usb devices will usually mount on some directory on root file > system with some directory name. > But need

How to find my usb storage device mount point

2008-09-10 Thread ravikumar
How to find out where is my usb storage device mounted on,I need to find out using some program. I knew ,usb devices will usually mount on some directory on root file system with some directory name. But need to identify it using some program. Regards, Ravikumar. -- To unsubscribe from this l