On 10/03/2011 12:01 PM, Florian Philipp wrote:
> Am 03.10.2011 20:40, schrieb Grant Edwards:
>> Just recently I've run in to problems because my hard drives are not
>> detected in a predictable order, so my fstab that mount /dev/sdb1 and
>> /dev/sdc1 sometimes result in directory trees in the wrong places
>> (/dev/sda seems consistent, but I don't know why).
>>
>> What's the recommended way to fix this?
>>
> 
> Mount by UUID or label. In /etc/fstab, specify UUID=foo or LABEL=bar
> instead of /dev/sdx1. You can current UUIDs and labels with `ls -l
> /dev/disk/by-uuid` and `ls -l /dev/disk/by-label`, respectively.

Or, if they are ext, use tune2fs -l. One of its output lines will be:

Filesystem UUID:          40ea622d-8265-4498-bc89-0c0f9020dffb

Reply via email to