summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-01-05 22:43:37 +0000
committerMike Frysinger <vapier@gentoo.org>2014-01-05 22:43:37 +0000
commit6b5c32b48a2c8b39dec8bcbcce6044fa970b9442 (patch)
treebd2110536bf83f47e87ef6260778b8feb19562f5
parentfstab: drop floppy example as it is rare for this to exist nowadays (diff)
downloadbaselayout-6b5c32b48a2c8b39dec8bcbcce6044fa970b9442.tar.gz
baselayout-6b5c32b48a2c8b39dec8bcbcce6044fa970b9442.tar.bz2
baselayout-6b5c32b48a2c8b39dec8bcbcce6044fa970b9442.zip
fstab: mount by LABEL by default #496562 by Sergey S. Starikoff
svn path=/trunk/; revision=3212
-rw-r--r--share.Linux/fstab15
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