From f620390721e20277220893bff6a92b77232dcf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 2 Aug 2013 01:18:06 +0200 Subject: [PATCH] mount /tmp in tmpfs to allow to switch the root fs in RO --- fs/etc/fstab | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 fs/etc/fstab diff --git a/fs/etc/fstab b/fs/etc/fstab new file mode 100644 index 0000000..980ed79 --- /dev/null +++ b/fs/etc/fstab @@ -0,0 +1,34 @@ +# /etc/fstab: static file system information. +# +# The root filesystem should have a pass number of either 0 or 1. +# All other filesystems should have a pass number of 0 or greater than 1. +# +# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. +# +# See the manpage fstab(5) for more information. +# +# + +/dev/sda1 /boot ext2 noauto,noatime 1 2 +/dev/mapper/vg0-root / ext4 noatime,discard,nodiratime,defaults 0 1 +/dev/mapper/vg0-swap none swap sw 0 0 +/dev/mapper/vg0-home /home ext4 noatime,discard,nodiratime 0 0 +/dev/mapper/vg0-var /var ext4 noatime,discard,nodiratime 0 0 +/dev/mapper/vg0-portage /usr/portage ext4 noatime,discard,nodiratime 0 0 +/dev/mapper/vg0-media /mnt/media ext4 noatime,discard,nodiratime 0 0 +/dev/mapper/vg0-virt /mnt/virt ext4 noatime,discard,nodiratime,noauto 0 0 +tmpfs /tmp tmpfs size=512M 0 0 +#tmpfs /var/tmp/portage tmpfs size=4G 0 0 +# Firefox +tmpfs /var/tmp/portage tmpfs size=10G 0 0 +#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 + +/dev/sdb1 /mnt/disk vfat defaults,noauto,uid=1000,user 0 0 +/dev/sdb1 /mnt/ntfs ntfs-3g defaults,noauto,uid=1000,user 0 0 + +/dev/mmcblk0p1 /mnt/ext_media ntfs-3g noatime,discard,nodiratime 0 0 +/dev/mmcblk0p1 /mnt/photo vfat defaults,noauto,uid=1000,user 0 0 + +# Backup +/dev/vg-backup/backup /mnt/backup/backup ext4 noauto,noatime 0 0 +/dev/vg-backup/film /mnt/backup/films xfs noauto,noatime 0 0