On Tue, Jul 15, 2008 at 10:05 AM,  <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 9:46 AM, John Mort <[EMAIL PROTECTED]> wrote:
>> drives, and eventually figured out that I had been mounting it as
>> device /dev/sdd1, but since I removed that IDE drive it had become
>> /dev/sdc1.  Is it common for hard drives to migrate from device to
>> device as the environment changes? I had been under the impression
>
> Yes, it is common and expected - although, not by you and many others.
> :-) If you're using udev, which you probably are, then you should use
> /dev/disk/by-uuid (or one of its siblings) to mount partitions. Save
> yourself the woe. Also check out
> http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html for
> more information about udev, writing udev rules, etc.
>
> I'm not very fond of the /etc/fstab ^UUID= method, myself. :-)

Okay, it looks like /dev/disk/by-uuid creates a symlink to which
/dev/sdX location a given hard drive is mapped to.  So if the /dev/sdX
changes between boots, fstab won't care since the simlink will direct
it to the new location.

What I don't understand is how this is really all the different than
using the UUID= method. Other than it's might be a little easier to
remember to look in /dev/disk/by-uuid rather than udo /sbin/tune2fs -l
/dev/hdX# | grep UUID, they both end up looking equally cryptic in
fstab.

-- 
John D. Mort
http://john.mort.net
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org          
   
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug                           
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium          
        
  Jun 4 - Sqeak! and eToys
  Jul 2 - KVM (Tenative)
  Aug 6 - Zenos
  Sep 3 - TBD

Reply via email to