fstab

Shane Hathaway shane at hathawaymix.org
Sun Feb 22 04:16:26 MST 2009


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



More information about the PLUG mailing list