[Novalug] External USB Drive Questions
igor_birman at yahoo.com
Sat Aug 11 21:11:05 EDT 2012
Thanks, the UUID trick is exactly what I need, I found some documentation here:
however, the umount / mount trick is not enough, somehow the drive manages to disappear completely - when I try to mount I get a message that /dev/sdc1 is not valid. Is there some way to get the USB controller to reset itself without a reboot?
From: Sidney Harrell <sidney.harrell at gmail.com>
To: NOVALUG <novalug at calypso.tux.org>
Sent: Saturday, August 11, 2012 6:00 PM
Subject: Re: [Novalug] External USB Drive Questions
There is a way to find the UUID of a drive once it's plugged in, but I can't remember off the top of my head whether I got it from a command, or looked it up in a log file. But once you have the UUID, you can put that in your fstab, so that the same drive gets mounted to the same location each time.
As for automating the mounting, I'm not sure. My external usb experience is limited to my homemade NAS, which is a P3 (free!) headless box in the closet. When one of the usb drives is unmounted due to a power outage, etc, (I have the box on a UPS, but not the drives), it's not that much bother to ssh into it and go:
On Sat, Aug 11, 2012 at 5:26 PM, Igor Birman <igor_birman at yahoo.com> wrote:
I have an Ubuntu server at a data center with a bunch of USB drives attached to it. My customer comes there from time to time and unplugs some drives and plugs in some new ones. Yesterday when he plugged in a drive it didn't work. I tried un-mounting and remounting but that didn't work. Is there something I can do other than re-booting the computer to reset the USB port? I had to go over to the data center to physically unplug and re-plug in the drive. Then the same thing happened this morning, I re-booted the computer, and it didn't come back, so I had to make another trip so I could reboot the box.
>What do people that have to manage thousands of servers do?
>The other issue I have is every time we re-attach a drive it gets a different id, so i have to manually mount it. Is there any way to have the same USB drive always get mounted at the same location?
>Novalug mailing list
>Novalug at calypso.tux.org
Novalug mailing list
Novalug at calypso.tux.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Novalug