--- On Wed, 4/5/11, Raman.P <[email protected]> wrote: > /sys/block contains data about block devices. A file named > 'removable' contains 1 if it is removable devices. You can > build upon this basic find and grep. > > find . -name '*remov*' -exec grep -l 1 {} \; > > This one lists cd drives also. It will show event umounted > one. It will be interesting to expand this script, to omit > such devices. s/event/even/ sorry for the error Raman.P blog:http://ramanchennai.wordpress.com/ _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
- [Ilugc] How to FInd Location of USB device. Rajesh kumar
- Re: [Ilugc] How to FInd Location of USB device... Balachandran Sivakumar
- Re: [Ilugc] How to FInd Location of USB device... Baskar Selvaraj
- Re: [Ilugc] How to FInd Location of USB de... Rajesh kumar
- Re: [Ilugc] How to FInd Location of USB device... Vignesh Nandha Kumar
- Re: [Ilugc] How to FInd Location of USB de... Akilan R
- Re: [Ilugc] How to FInd Location of US... Vignesh Nandha Kumar
- Re: [Ilugc] How to FInd Location of USB device... Arun Khan
- Re: [Ilugc] How to FInd Location of USB device... Raman.P
- Re: [Ilugc] How to FInd Location of USB de... Raman.P
- Re: [Ilugc] How to FInd Location of USB device... Mohan R
- Re: [Ilugc] How to FInd Location of USB device... Kumar Appaiah
- Re: [Ilugc] How to FInd Location of USB device... baskar k
- Re: [Ilugc] How to FInd Location of USB device... Rajagopal Swaminathan
- Re: [Ilugc] How to FInd Location of USB de... Sathishkumar Duraisamy
- Re: [Ilugc] How to FInd Location of USB device... Vijay Kumar B .
