diff options
authorMike Frysinger <>2014-01-05 22:43:37 +0000
committerMike Frysinger <>2014-01-05 22:43:37 +0000
commit6b5c32b48a2c8b39dec8bcbcce6044fa970b9442 (patch)
parentfstab: drop floppy example as it is rare for this to exist nowadays (diff)
fstab: mount by LABEL by default #496562 by Sergey S. Starikoff
svn path=/trunk/; revision=3212
1 files 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 @@
# <fs> <mountpoint> <type> <opts> <dump/pass>
# 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