Pascal Hibon wrote: 
> It is best to use the UUID. As JackOfAll mentioned, device names such as
> /dev/sda1 can change. But a UUID will always be the same for a specific
> drive.
> You can get the list of drives with their UUID (among other info) by
> using the command *blkid*.

Just to expand on what Pascal says....


Code:
--------------------
    
  sudo blkid /dev/sda1
  
--------------------


....gets you the UUID of the partition. 

Then you should use that for hd-idle config and especially in fstab if
you put an entry in there to mount the drive. Without wishing to sound
too much like I'm preaching a religion, please, please please, always
use the UUID rather than /dev/sda1 for any hotpluggable (eg. USB)
device. It might be /dev/sda1 at first boot, but you unplug and replug
it, it could now need to be accessed as /dev/sdb1. Refer to it by UUID
and that won't change. Also, if you do specify an entry in /etc/fstab to
automount that drive partition at boot, use the nofail option so the
boot process doesn't hang, (looking for a partition that doesn't exist),
if you should boot without the drive connected or powered. eg.


Code:
--------------------
    
  UUID=B24CF2094CF1C85D             /storage        ntfs-3g nofail,defaults     
    0 0
  
--------------------


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to