From 6b5c32b48a2c8b39dec8bcbcce6044fa970b9442 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 5 Jan 2014 22:43:37 +0000 Subject: fstab: mount by LABEL by default #496562 by Sergey S. Starikoff svn path=/trunk/; revision=3212 --- share.Linux/fstab | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/share.Linux/fstab b/share.Linux/fstab index 1be6f5a6..bc725cc0 100644 --- a/share.Linux/fstab +++ b/share.Linux/fstab @@ -14,9 +14,18 @@ # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. +# # NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3 # filesystems. This just tells the kernel to use the ext4 driver. -/dev/BOOT /boot ext4 noauto,noatime 1 2 -/dev/ROOT / ext4 noatime 0 1 -/dev/SWAP none swap sw 0 0 +# +# NOTE: You can use full paths to devices like /dev/sda3, but nowadays it is +# recommended to set labels in the filesystem and mount via that. All +# modern Linux filesystems should support this functionality. If your +# boot partition is /dev/sda1 and is ext4, you can set the label of it +# to "boot" by running: +# # e2label /dev/sda1 boot +# Then the LABEL example below will work for you. +LABEL=boot /boot ext4 noauto,noatime 1 2 +LABEL=root / ext4 noatime 0 1 +LABEL=swap none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 -- cgit v1.2.3-65-gdbad