[opensuse-factory] USB assignment
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. Cheers, Bob -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Sat, Sep 27, 2008 at 03:07:15PM -0700, 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.
Use the persistant mount point in /media/ based on the name of your partition on the device. Or use the device names in /dev/disk/* that's what they are there for. good luck, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
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)
On Sat, Sep 27, 2008 at 6:07 PM, Robert Lewis
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.
I've been needing to do something similar. I haven't tried anything at all yet, but predicted the situation you describe. I found this method rather interesting [1], maybe you can adapt some or all of it to fit your needs. [1] http://andri.dk/tech/linux/usb-backup -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Andrew Joakimsen
-
Eberhard Moenkeberg
-
Greg KH
-
Robert Lewis