Hi, On Sat, 27 Sep 2008, Robert Lewis wrote:
I realize that this is probably the wrong list to be writing this. However, it would seem like something to make more user friendly unless I am being foolish with such a question.
I have a USB drive that I use to backup my important files to where the USB drive has an ext filesystem. I wrote a script to do the backup but I find that when I plug in the USB drive it doesn't always end up as the same device so my script fails or needs changing each time to reflect where the drive went. Yes, it's obviously a mountable drive.
When I plug it in my SUSE 11.0 pops up a screen saying it noticed the device and asks me if I want to open it. That works. Then I know where it is and can point my script to it. However, I want to have my program figure it out or have a specific USB port reserved for this purpose.
You can label your filesystem with tune2fs -L <label> and mount it either with "LABEL=<label>" instead of /dev/sdXY or by using the device name /dev/disk/by-label/<label>. Viele Grüße Eberhard Mönkeberg (emoenke@gwdg.de, em@kki.org)