Announcement

Collapse
No announcement yet.

Did I finally set my fstab correctly?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Did I finally set my fstab correctly?

    Here is current /etc/fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=c2590e88-813b-4481-b1e2-cfc449cedb00 /               ext4    noatime,commit=120,errors=remount-ro 0       1
    # /home was on /dev/sda2 during installation
    UUID=ac1aefd2-69aa-4ce2-9341-3f28a1c816b9 /home           ext4    noatime,defaults       0       2
    # swap was on /dev/sda5 during installation
    UUID=f7c78b56-7e43-40b7-8764-f1b69c256066 none            swap    sw              0       0
    tmpfs           /tmp tmpfs                                        noatime,mode=1777 0       0
    tmpfs           /var/tmp tmpfs                                    defaults,noatime,mode=1777 0 0
    tmpfs           /var/spool tmpfs                                  defaults,noatime,mode=1777 0 0 
    none /var/log tmpfs                                               defaults,noatime 0 0
    /dev/sdb1       /media/Movies2_720p       ext4    defaults      0       2
    /dev/sdc1       /media/movies1080             ext4    defaults      0       2
    /dev/sdd2       /media/Shows2       ext4    defaults      0       2
    /dev/sde1       /media/1080movies2              ext4    defaults      0       2
    /dev/sdf1       /media/Shows           ext4    defaults      0       2
    /dev/sdg1       /media/Torrents   ext4    defaults      0       2
    /dev/sdh1       /media/Series720and1080         ext4    defaults      0       2
    /dev/sdi1       /media/movies1720         ext4    defaults      0       2
    Here is the output of mount, does it correspond correctly to the /etc/fstab file.
    Code:
    rafal@rafal-desktop:~$ mount
    /dev/sda1 on / type ext4 (rw,noatime,commit=120,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    [B]none on /sys/fs/cgroup type tmpfs (rw)[/B]
    [B]none on /sys/fs/fuse/connections type fusectl (rw)[/B]
    [B]none on /sys/kernel/debug type debugfs (rw)[/B]
    [B]none on /sys/kernel/security type securityfs (rw)[/B]
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /tmp type tmpfs (rw,noatime,mode=1777)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    [B]none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)[/B]
    [B]none on /run/shm type tmpfs (rw,nosuid,nodev)[/B]
    [B]none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)[/B]
    [B]none on /sys/fs/pstore type pstore (rw)[/B]
    tmpfs on /var/tmp type tmpfs (rw,noatime,mode=1777)
    tmpfs on /var/spool type tmpfs (rw,noatime,mode=1777)
    [B]none on /var/log type tmpfs (rw,noatime)[/B]
    /dev/sda2 on /home type ext4 (rw,noatime)
    /dev/sdc1 on /media/movies1080 type ext4 (rw)
    /dev/sdg1 on /media/Torrents type ext4 (rw)
    /dev/sdb1 on /media/Movies2_720p type ext4 (rw)
    /dev/sdd2 on /media/Shows2 type ext4 (rw)
    /dev/sdi1 on /media/movies1720 type ext4 (rw)
    /dev/sde1 on /media/1080movies2 type ext4 (rw)
    /dev/sdh1 on /media/Series720and1080 type ext4 (rw)
    /dev/sdf1 on /media/Shows type ext4 (rw)
    systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
    In the mount output, I am interested on why there is so many *none tmpfs* listings, does this correspond to this part of my fstab
    Code:
    tmpfs           /tmp tmpfs                                        noatime,mode=1777 0       0
    I have made the entries bold that are of interest to me,
    Mainly because I only have inserted one *none* entry in my /etc/fstab. Thanks in advance for any answers.

    Also, output of
    Code:
    cat /proc/mounts
    Code:
    rafal@rafal-desktop:~$ cat /proc/mounts
    rootfs / rootfs rw 0 0
    sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    udev /dev devtmpfs rw,relatime,size=8064936k,nr_inodes=2016234,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
    tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=1621624k,mode=755 0 0
    /dev/disk/by-uuid/c2590e88-813b-4481-b1e2-cfc449cedb00 / ext4 rw,noatime,errors=remount-ro,commit=120,data=ordered 0 0
    none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
    none /sys/fs/fuse/connections fusectl rw,relatime 0 0
    none /sys/kernel/debug debugfs rw,relatime 0 0
    none /sys/kernel/security securityfs rw,relatime 0 0
    tmpfs /tmp tmpfs rw,noatime 0 0
    none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
    none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
    none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
    none /sys/fs/pstore pstore rw,relatime 0 0
    tmpfs /var/tmp tmpfs rw,noatime 0 0
    tmpfs /var/spool tmpfs rw,noatime 0 0
    none /var/log tmpfs rw,noatime 0 0
    /dev/sda2 /home ext4 rw,noatime,data=ordered 0 0
    /dev/sdc1 /media/movies1080 ext4 rw,relatime,data=ordered 0 0
    /dev/sdg1 /media/Torrents ext4 rw,relatime,data=ordered 0 0
    /dev/sdb1 /media/Movies2_720p ext4 rw,relatime,data=ordered 0 0
    /dev/sdd2 /media/Shows2 ext4 rw,relatime,data=ordered 0 0
    /dev/sdi1 /media/movies1720 ext4 rw,relatime,data=ordered 0 0
    /dev/sde1 /media/1080movies2 ext4 rw,relatime,data=ordered 0 0
    /dev/sdh1 /media/Series720and1080 ext4 rw,relatime,data=ordered 0 0
    /dev/sdf1 /media/Shows ext4 rw,relatime,data=ordered 0 0
    systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0
    I see some realtime and some noatime entries in there, any reason for this, also for SDA2, could I set noatime, without adding *defaults* after it, or would this cause issues, as in a thread before, someone mentioned that defaults is not needed.
    Last edited by bonkers; Nov 29, 2014, 07:26 AM.

    #2
    /sys and (as I've previously explained) /run are dymanically created by the system to manage devices, services, programs, and resources. They are unrelated to the /tmp line in your fstab.

    I recommend noatime for all partitions except swap. You don't need to specify defaults as that's unnecessary.

    Comment

    Working...
    X