Why should you use the device file or the UUID for listing items in etc fstab?
Lists the name of the device file, or the file system label, or the UUID (Universally Unique Identifier). Use of LABEL=label or UUID=uuid has the advantage that the partition is mounted correctly even if the device file used changes, for instance, because you swapped hard disks on the IDE controller.
What is UUID in etc fstab?
UUID stands for Universally Unique IDentifier and it is used in Linux to identify disk in the /etc/fstab file. This way, the order of the disk in the motherboard can be changed, not affecting the mount point they will have.
What is the etc fstab file?
The fstab (/etc/fstab) (or file systems table) file is a system configuration file on Debian systems. The fstab file typically lists all available disks and disk partitions, and indicates how they are to be initialized or otherwise integrated into the overall system’s file system.
Do you use the UUID or man fstab?
In other words, if you don’t have a good reason to do that, stick with the UUID. You can do man fstab for a fairly concise read on the contents and semantics of the /etc/fstab file.
When to use UUIDs in the boot loader?
Section 6.4, “Using UUIDs in the Boot Loader and /etc/fstab File (IA64)” In the Linux 2.6 and later kernel, udev provides a userspace solution for the dynamic /dev directory, with persistent device naming. As part of the hotplug system, udev is executed if a device is added to or removed from the system.
How are UUIDs used in a file system?
A UUID (Universally Unique Identifier) is a 128-bit number for a file system that is unique on both the local system and across other systems. It is a randomly generated with system hardware information and time stamps as part of its seed. UUIDs are commonly used to uniquely tag devices.
Where do I find the UUID for the drive?
The device ID assigned by the manufacturer for a drive never changes, no matter where the device is mounted, so it can always be found at boot. The UUID is a property of the file system and can change if you reformat the drive.