From: Timothy J M. <tm...@ob...> - 2012-04-03 22:01:27
|
Jim Kyle <ji...@ji...> wrote on 04/03/2012 05:21:29 PM: > On Tuesday, April 3, 2012, at 3:49:12 PM, Timothy J Massey wrote: > > > And because sometimes the drive that I insert will be perfectly blank (a > > new drive), I can't use something like a drive label: it might not have > > one! > > Don't you have to partition and format the new drive before it can be used? Sure, and that's what my script does. > If you do, you could write a "standard" disk label to it at that time, and > then use that standard label in the udev rule or even to mount the drive if > your version of fstab allows drives to be specified by label. And how exactly does the script know what device name that drive will use *before* I put that "standard" label on it? I've already shown that the device name the drive gets is quasi-random (race condition), and if the script guesses wrong I wipe out a drive in my RAID array! :) If I could get Seagate et. al. to put my "standard" disk label on the drive from the factory, I'd be golden. But until they do, I need to make sure that the blank drive *before* initialization shows up in the right place. And if I make that work consistently, then I don't *need* the label! :) Tim Massey Out of the Box Solutions, Inc. Creative IT Solutions Made Simple! http://www.OutOfTheBoxSolutions.com tm...@ob... 22108 Harper Ave. St. Clair Shores, MI 48080 Office: (800)750-4OBS (4627) Cell: (586)945-8796 |