Mike Lovell wrote:
Or just us the /dev/disk/by-id/*-part1 symlink that was mentioned by Bart earlier in the thread. Lot easier and available on every modern distro that I know of. Another way is using LABEL=<volume label name> in fstab to mount that way. This will work assuming you have put a label on the volume and your distro has the magic foo to work that. Again most modern distros do. Ahhhh. udev saves the day.

My favorite is UUID=<uuid>. You can get the UUID of a filesystem using the 'blkid' command. In fact, Ubuntu 8.10 (maybe earlier) creates UUID-based fstab entries by default. Here's a sample from my laptop's fstab:

UUID=805d6caf-1fbb-4e03-afa2-4f2d8922a77d / ext3 errors=remount-ro 0 1

Shane

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to