Results 1 to 4 of 4

Thread: Leap 42.3 running out of space on / - Does this still work?

  1. #1

    Default Leap 42.3 running out of space on / - Does this still work?

    Hi,

    I am trying to clear /tmp files on boot to see if it gives me more space on /

    I have found this: https://forums.opensuse.org/showthre...-Files-at-Boot

    However, in Yast>Cron is empty. It doesn't look like the screen shot.

    I know it is old, but I didn't want to use Console, as I am easily confused.

    Is there another way to clear /tmp files at boot using GUI?

    Thank you.

  2. #2
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: Leap 42.3 running out of space on / - Does this still work?


  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,245

    Default Re: Leap 42.3 running out of space on / - Does this still work?

    For cleaning /tmp and /var/tmp at boot:

    When there is not already a file /etc/tmpfiles.d/tmp.conf create it as a copy

    Code:
    cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf
    Then change the lines
    Code:
    # Clear tmp directories separately, to make them easier to override
    # SUSE policy: we don't clean those directories
    d /tmp 1777 root root -
    d /var/tmp 1777 root root -
    into
    Code:
    # Clear tmp directories separately, to make them easier to override
    # My policy: empty /tmp en /var/tmp on boot.
    D! /tmp 1777 root root 1d
    D! /var/tmp 1777 root root 1d
    See
    Code:
    man 5 tmpfiles.d
    ================================
    For making /tmp a tmpfs:
    Add an entry into /etc/fstab
    Code:
    tmpfs             /tmp    tmpfs   size=25%,uid=root,gid=root,mode=1777 0 0
    See
    Code:
    man 8 mount
    specialy the section: Mount options for tmpfs.

    Before mounting this file system for the first time (either by command, or by reboot) you should clean the present /tmp directory as good as possible. Existing contents will still occupy disk space when you mount a file system over it.
    Henk van Velden

  4. #4

    Default Re: Leap 42.3 running out of space on / - Does this still work?

    Sorry for the delay. I am in the middle of an ongoing family crisis. Some information to help with the root partition full problem:
    Code:
    linux-fhxr:/home/nappy # btrfs fi usage /
    Overall:
        Device size:                  14.65GiB
        Device allocated:             14.65GiB
        Device unallocated:            1.00MiB
        Device missing:                  0.00B
        Used:                         14.15GiB
        Free (estimated):            254.29MiB      (min: 254.29MiB)
        Data ratio:                       1.00
        Metadata ratio:                   2.00
        Global reserve:               44.66MiB      (used: 0.00B)
    
    Data,single: Size:12.83GiB, Used:12.59GiB
       /dev/sda5      12.83GiB
    
    Metadata,DUP: Size:896.00MiB, Used:799.05MiB
       /dev/sda5       1.75GiB
    
    System,DUP: Size:32.00MiB, Used:16.00KiB
       /dev/sda5      64.00MiB
    
    Unallocated:
       /dev/sda5       1.00MiB
    Also:
    Code:
    linux-fhxr:/home/nappy # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    devtmpfs        1.9G     0  1.9G   0% /dev
    tmpfs           1.9G  904K  1.9G   1% /dev/shm
    tmpfs           1.9G  2.5M  1.9G   1% /run
    tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    /dev/sda5        15G   15G  255M  99% /
    /dev/sda5        15G   15G  255M  99% /var/tmp
    /dev/sda5        15G   15G  255M  99% /.snapshots
    /dev/sda5        15G   15G  255M  99% /var/opt
    /dev/sda5        15G   15G  255M  99% /var/lib/machines
    /dev/sda5        15G   15G  255M  99% /var/spool
    /dev/sda5        15G   15G  255M  99% /boot/grub2/i386-pc
    /dev/sda5        15G   15G  255M  99% /boot/grub2/x86_64-efi
    /dev/sda5        15G   15G  255M  99% /var/log
    /dev/sda5        15G   15G  255M  99% /usr/local
    /dev/sda5        15G   15G  255M  99% /var/cache
    /dev/sda5        15G   15G  255M  99% /var/crash
    /dev/sda5        15G   15G  255M  99% /var/lib/named
    /dev/sda5        15G   15G  255M  99% /var/lib/mariadb
    /dev/sda5        15G   15G  255M  99% /var/lib/pgsql
    /dev/sda5        15G   15G  255M  99% /var/lib/mysql
    /dev/sda5        15G   15G  255M  99% /var/lib/mailman
    /dev/sda5        15G   15G  255M  99% /var/lib/libvirt/images
    /dev/sda5        15G   15G  255M  99% /srv
    /dev/sda5        15G   15G  255M  99% /opt
    /dev/sda5        15G   15G  255M  99% /tmp
    /dev/sda7       213G   97G  106G  48% /home
    tmpfs           389M     0  389M   0% /run/user/481
    tmpfs           389M   16K  389M   1% /run/user/1000
    I am considering copying my home partition to an external hard drive, then changing the partition sizes and reinstalling Leap 42.3. It may seem like a lot and long winded, but I do not feel focussed enough to attempt commands.

    From my brief look at other posts is this something to do with btrfs? Can I save myself this problem in the future by using a different type of partition? I am really looking for an easy solution, that is also one which I sort of understand.

    A big thank you for taking the time to type in all those instructions, but I can't focus. If I just copy and paste them will that work? I am loathed to do that, as I like to sort of understand what I am doing. If I am going to behave like a robot, I might as well use windoze and phone a helpline when it goes wrong Thanks for bearing with me.

Tags for this Thread

Posting Permissions

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