Results 1 to 6 of 6

Thread: tmp > tmpfs

  1. #1
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default tmp > tmpfs

    If I want to mount tmp to RAM where would I configure this now? Could I still configure this under fstab and expect it to work?
    I really hate these systemd changes, being so technically feeble as I am.

    Olav
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  2. #2

    Default Re: tmp > tmpfs

    Quote Originally Posted by F_Sauce View Post
    If I want to mount tmp to RAM where would I configure this now? Could I still configure this under fstab and expect it to work?
    Yes. Why should it not work?

    I really hate these systemd changes, being so technically feeble as I am.
    systemd doesn't mount /tmp automatically by default (at least on openSUSE), and does respect the fstab for all mounts.

    You can configure systemd to mount /tmp as tmpfs _without_ an entry in the fstab, by adding tmp.mount to a target that's loaded at boot, i.e. symlink /usr/lib/systemd/system/tmp.mount into /etc/systemd/system/default.target.wants/ f.e.
    Code:
    sudo ln -s  /usr/lib/systemd/system/tmp.mount /etc/systemd/system/default.target.wants/
    Last edited by wolfi323; 25-Feb-2014 at 13:52.

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,678
    Blog Entries
    3

    Default Re: tmp > tmpfs

    Quote Originally Posted by F_Sauce View Post
    If I want to mount tmp to RAM where would I configure this now? Could I still configure this under fstab and expect it to work?
    I am doing that on two of my computers (with 13.1). It is working well.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  4. #4
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: tmp > tmpfs

    Quote Originally Posted by wolfi323 View Post
    Yes. Why should it not work?

    I wouldn't know.
    I was aware of changes in where the virtual filesystem(?) mount entries were managed and was uncertain.
    I remember reading something on the mailinglist, from the development phase of 13.1, regarding potenial system upgrade issues concerning this, though how to address it seemed not to be decided at that stage; to me at least it didn't.

    Thank you, both!

    Olav
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  5. #5

    Default Re: tmp > tmpfs

    Quote Originally Posted by F_Sauce View Post
    I wouldn't know.
    I was aware of changes in where the virtual filesystem(?) mount entries were managed and was uncertain.
    I remember reading something on the mailinglist, from the development phase of 13.1, regarding potenial system upgrade issues concerning this, though how to address it seemed not to be decided at that stage; to me at least it didn't.
    Yes, systemd does mount some things automatically on boot, like /var/run, /proc, /dev and /sys (this was already the case on 12.3)
    So you shouldn't have them in fstab anymore, they are even removed automatically from /etc/fstab if you do an offline upgrade.

    But having those entries in the fstab does _not_ cause any problems, either.
    What could cause problems is having them in the fstab with wrong mount options (f.e. wrong user/group).
    But even then they would be just ignored I think, not sure right now though. At least back in November I tried to reproduce the problem with those mounts and couldn't.

    The case of somebody having problems with gnome-terminal in 13.1's development phase (that's why an entry was added to the release notes even), turned out to be caused by something completely different: a buggy build script ran manually that remounted one of those mounts with wrong permissions. Nothing at all to do with systemd really.

  6. #6
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: tmp > tmpfs

    OK, this computer came from OS 12.2 and is the only one I have with an SSD installed; and, I usually re-format the root, /, partition so all entries were lost.
    It isn't very often I have manually edited the fstab file but I read up on it the first time I configured the SSD (/tmp, /var/tmp to RAM - discard, noatime etc.), quite clear and easy really.
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •