how to control a USB DISK?

Greg Fischer retheoff at gmail.com
Thu Mar 3 01:35:06 CET 2005


I actually tried this last summer on linux and I think in order to
make it work right I had to use the hotplug features AND udev.  I had
to use udev because I needed a specific mount path, otherwise it just
picked the next in the list if there was more than one drive.

I ended up skipping that project because it was a pain and I just
didnt have enough time. Allthough, I could write to usb drives.

Look into hotplug and udev, hopefully that gets you going.


On Wed, 02 Mar 2005 14:56:05 +0100, Roland Heiber <roland.heiber at web.de> wrote:
> Hi,
> 
> when you're under linux and a 2.6er kernel, take a look at hotplug, you
> can configure it the way that your script gets executed whenever a
> specific device is plugged in/out ...
> 
> HtH, Roland
> 
> zyqnews at 163.net wrote:
> > when a new usb disk is plugged into the usb socket, the program will
> > copy a file to the usb disk, then disabled the usb disk to be pulled
> > out safely.
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list