Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam miscalculates free disk space #205

Closed
jurf opened this issue Sep 1, 2018 · 32 comments
Closed

Steam miscalculates free disk space #205

jurf opened this issue Sep 1, 2018 · 32 comments

Comments

@jurf
Copy link
Member

jurf commented Sep 1, 2018

It works fine with the home partition, but I have games on another one, which is mounted on /var/home/data (this is Silverblue) and the games being on /var/home/data/games/steamapps. However, it looks like it’s mis-reading the partition size or something, because even though I freed ~10GB and extended the partition by another 50, it still only sees 3GB free.

Wanted to check here first to see if it’s a cryptic bubblewrap issue before reporting it upstream.

I tried completely resetting the Steam installation, no help.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

How are you checking available disk space in this case? df?

@jurf
Copy link
Member Author

jurf commented Sep 1, 2018

Nautilus and df both report the same, correct, free disk space.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

Since you're mentioning nautilus, I'll double-check that you ran df inside the container

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

Where and how you mounting /var/home/data in the application? Just wondering since within the Flatpak $HOME/data is suppose to be a symlink

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

The actual target directory is .data

@jurf
Copy link
Member Author

jurf commented Sep 1, 2018

Since you're mentioning nautilus, I'll double-check that you ran df inside the container

Bingo.

$ cd /var/home/data/
$ df -h .
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/fedora_rivendell-data  197G  150G   47G  77% /var/home/data
$ flatpak run --command=sh com.valvesoftware.Steam
$ cd /var/home/data/
$ df -h .
Filesystem      Size  Used Avail Use% Mounted on
-               3.9G  112K  3.9G   1% /

obrazok

@alexlarsson, …?

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

I would also strongly suggest adding some separate library folder instead of trying to mess around with data. Cloud Sync migration may delete your games from outside the container if you try to do anything to it.

@jurf
Copy link
Member Author

jurf commented Sep 1, 2018

@nanonyme it is a separate library folder, just the LVM volume is named ‘data’.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

Ah, good. On another hand I just started wondering whether Flatpak should provide a way to protect folders against using --filesystem since it might break all amounts of expectations within applications.... @alexlarsson might be the best person to comment on that too

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

So does that 3.9G map with some other disk's free space?

@jurf
Copy link
Member Author

jurf commented Sep 1, 2018

@nanonyme not really, more importantly the 112K used doesn’t correspond with anything, I don’t know what that is.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

How much RAM do you have?

@jurf
Copy link
Member Author

jurf commented Sep 1, 2018

Thought about that, but no; 8 gigs of RAM and (currently) 1 gig of swap.

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 1, 2018

Might still be some space-limited temporary filesystem

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 2, 2018

What do /etc/mtab and /etc/fstab say for you inside the container, btw?

@jurf
Copy link
Member Author

jurf commented Sep 2, 2018

Neither of them are available, but this is the output of lsblk:

sh-4.4$ lsblk
lsblk: /proc/self/mountinfo: parse error at line 1 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 12 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 19 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 20 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 21 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 49 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 50 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 52 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 64 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 67 -- ignored
lsblk: /proc/self/mountinfo: parse error at line 68 -- ignored
NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                             8:0    0 298.1G  0 disk  
├─sda1                                          8:1    0   1.5G  0 part  
├─sda2                                          8:2    0  49.5G  0 part  
└─sda3                                          8:3    0 247.2G  0 part  
  └─luks-some-id                              253:5    0 247.2G  0 crypt 
    └─fedora_rivendell-data                   253:6    0   200G  0 lvm   /var/home/data/games/steamapps
sdb                                             8:16   0 232.9G  0 disk  
├─sdb1                                          8:17   0   200M  0 part  
├─sdb2                                          8:18   0     1G  0 part  
└─sdb3                                          8:19   0 231.7G  0 part  
  └─luks-some-other-id                        253:0    0 231.7G  0 crypt 
    ├─fedora_rivendell-root                   253:1    0    10G  0 lvm   /run/host/share/icons
    ├─fedora_rivendell-swap                   253:2    0     1G  0 lvm   [SWAP]
    ├─fedora_rivendell-home                   253:3    0    42G  0 lvm   /run/host/user-fonts-cache
    ├─fedora_rivendell-flatpak                253:4    0    20G  0 lvm   /etc/ld.so.cache
    └─fedora_rivendell-data                   253:6    0   200G  0 lvm   /var/home/data/games/steamapps

I mean what the hell is up with those mountpoints.

@alexlarsson
Copy link
Member

You can't rely on /etc/mtab. Look at /proc/self/mounts (and maybe /proc/self/mountinfo) in the sandbox.
It looks like the /var/home/data in the sandbox is the sandbox instance root tmpfs...

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 3, 2018

Yeah, smelled heavily of tmpfs and maybe that part is fine. We're persisting . and turning data into symlink to .local/share which is also persisted. In this case filesystem is used to map a subdirectory to data though

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 3, 2018

@jurf right?

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 3, 2018

Also there's the question of where it pulls that 20GB used from

@jurf
Copy link
Member Author

jurf commented Sep 3, 2018

@nanonyme I think you’re confusing XDG data and my ‘data’ partition. You can basically replace all instances of ‘data’ with ‘external HDD’.

@jurf
Copy link
Member Author

jurf commented Sep 3, 2018

@alexlarsson, I can make very little sense of those files, sorry. Here they are:

[jurf@rivendell ~]$ flatpak run --command=sh com.valvesoftware.Steam
sh-4.4$ cat /proc/self/mounts
 / tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
/dev/mapper/fedora_rivendell-flatpak /usr ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /app ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /app/lib/i386-linux-gnu ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /usr/lib/x86_64-linux-gnu/ffmpeg ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /usr/share/runtime/locale ext4 ro,seclabel,nosuid,nodev,relatime 0 0
tmpfs /usr/share/runtime/share/icons tmpfs rw,seclabel,nosuid,nodev,relatime,mode=755,uid=1000,gid=1000 0 0
/dev/mapper/fedora_rivendell-flatpak /usr/share/runtime/share/icons/Adwaita ext4 ro,seclabel,nosuid,nodev,relatime 0 0
tmpfs /usr/share/runtime/share/themes tmpfs rw,seclabel,nosuid,nodev,relatime,mode=755,uid=1000,gid=1000 0 0
/dev/mapper/fedora_rivendell-flatpak /usr/share/runtime/share/themes/Pop/gtk-3.0 ext4 ro,seclabel,nosuid,nodev,relatime 0 0
 /run/flatpak/ld.so.conf.d/runtime-001-org.freedesktop.Platform.html5-codecs.conf tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/block sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/bus sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/class sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/dev sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/devices sysfs ro,seclabel,nosuid,nodev,noexec,relatime 0 0
 /etc/passwd tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
 /etc/group tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
 /etc/pkcs11/pkcs11.conf tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
/dev/mapper/fedora_rivendell-root /etc/machine-id ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/environment ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/xattr.conf ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/drirc ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/ca-certificates.conf ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/rpc ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/services ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/vdpau_wrapper.cfg ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/protocols ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/profile.d ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/dbus-1 ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/fonts ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/issue ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/pulse ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/geoclue ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/mke2fs.conf ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/issue.net ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/ssl ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/xdg ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/gtk-3.0 ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/security ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-flatpak /etc/ld.so.cache ext4 rw,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-home /var/cache ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /var/data ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /var/config ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /var/tmp ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
tmpfs /run/host/monitor tmpfs ro,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
 /etc/ld.so.conf tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
 /etc/ld.so.cache tmpfs ro,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
tmpfs /run/user/1000/.flatpak/2994312717 tmpfs ro,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
 /.flatpak-info tmpfs ro,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
/dev/fuse /run/user/1000/doc fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
devtmpfs /dev devtmpfs rw,seclabel,nosuid,size=3992864k,nr_inodes=998216,mode=755 0 0
tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev 0 0
devpts /dev/pts devpts rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
mqueue /dev/mqueue mqueue rw,seclabel,nosuid,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,seclabel,nosuid,relatime,pagesize=2M 0 0
/dev/mapper/fedora_rivendell-home /var/home/jurf ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
tmpfs /run/user/1000/app/com.valvesoftware.Steam tmpfs rw,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
/dev/mapper/fedora_rivendell-data /var/home/data/games/steamapps ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /var/home/jurf/.var/app/com.valvesoftware.Steam ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /var/home/jurf/Obrázky ext4 ro,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
 /var/home/jurf/.var/app/com.valvesoftware.Steam/.config/user-dirs.dirs tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
tmpfs /tmp/.X11-unix tmpfs rw,seclabel,nosuid,nodev,relatime,mode=755,uid=1000,gid=1000 0 0
tmpfs /tmp/.X11-unix/X99 tmpfs rw,seclabel,nosuid,nodev 0 0
 /run/user/1000/Xauthority tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
 /run/user/1000/pulse/config tmpfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000 0 0
tmpfs /run/user/1000/pulse/native tmpfs rw,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
tmpfs /run/user/1000/bus tmpfs rw,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
tmpfs /run/dbus/system_bus_socket tmpfs rw,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
tmpfs /run/user/1000/at-spi-bus tmpfs rw,seclabel,nosuid,nodev,relatime,size=804660k,mode=700,uid=1000,gid=1000 0 0
tmpfs /run/systemd/journal/socket tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0
tmpfs /run/systemd/journal/stdout tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0
/dev/mapper/fedora_rivendell-root /run/host/fonts ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-root /run/host/fonts-cache ext4 ro,seclabel,nosuid,nodev,relatime 0 0
/dev/mapper/fedora_rivendell-home /run/host/user-fonts ext4 ro,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-home /run/host/user-fonts-cache ext4 ro,seclabel,nosuid,nodev,relatime,stripe=32761 0 0
/dev/mapper/fedora_rivendell-root /run/host/share/icons ext4 ro,seclabel,nosuid,nodev,relatime 0 0
sh-4.4$ cat /proc/self/mountinfo 
530 255 0:69 /newroot / rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
531 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files /usr ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
532 530 253:4 /app/com.valvesoftware.Steam/x86_64/stable/592c28f76a9d736345a048e4044b47af109bdd3fd70ff492cec69a5d96215e16/files /app ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
533 532 253:4 /runtime/org.freedesktop.Platform.Compat.i386/x86_64/18.08/3c10ab9215d835ec22ae60fc2099a7eb64bf39ad6560d3f5df163f8d08fb2551/files /app/lib/i386-linux-gnu ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
534 531 253:4 /runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08/f4e8c0397f5ad62bf83e189c35da8ce6bfb30bb35fc9d273e36a82c51327e807/files /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
579 531 253:4 /runtime/org.freedesktop.Platform.html5-codecs/x86_64/18.08/6e3e9f613bdde831970263c742fa384078bfa32b9b520a50f30065277fbc9cd2/files /usr/lib/x86_64-linux-gnu/ffmpeg ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
582 531 253:4 /runtime/org.freedesktop.Platform.Locale/x86_64/18.08/32cdf7fafc6cd4b45224a916711439d1510b2b085de182f34ac1cdb76ce729a2-sk/files /usr/share/runtime/locale ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
793 531 0:70 / /usr/share/runtime/share/icons rw,nosuid,nodev,relatime - tmpfs tmpfs rw,seclabel,mode=755,uid=1000,gid=1000
794 793 253:4 /runtime/org.freedesktop.Platform.Icontheme.Adwaita/x86_64/1.0/d1caa338205100dcf62174502ed1cb40a1ddb47a5314aff9a10a1a4db0478bf0/files /usr/share/runtime/share/icons/Adwaita ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
795 531 0:71 / /usr/share/runtime/share/themes rw,nosuid,nodev,relatime - tmpfs tmpfs rw,seclabel,mode=755,uid=1000,gid=1000
796 795 253:4 /runtime/org.gtk.Gtk3theme.Pop/x86_64/3.22/58e885e2fc1c0bccc5af3eed42d61885963221aea69ad140d4b0493fab14b75a/files /usr/share/runtime/share/themes/Pop/gtk-3.0 ro,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
797 530 0:69 /bindfileslHNuK//deleted /run/flatpak/ld.so.conf.d/runtime-001-org.freedesktop.Platform.html5-codecs.conf rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
798 530 0:68 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
799 530 0:19 /block /sys/block ro,nosuid,nodev,noexec,relatime master:4 - sysfs sysfs rw,seclabel
800 530 0:19 /bus /sys/bus ro,nosuid,nodev,noexec,relatime master:4 - sysfs sysfs rw,seclabel
801 530 0:19 /class /sys/class ro,nosuid,nodev,noexec,relatime master:4 - sysfs sysfs rw,seclabel
802 530 0:19 /dev /sys/dev ro,nosuid,nodev,noexec,relatime master:4 - sysfs sysfs rw,seclabel
803 530 0:19 /devices /sys/devices ro,nosuid,nodev,noexec,relatime master:4 - sysfs sysfs rw,seclabel
804 530 0:69 /bindfileiK3VBb//deleted /etc/passwd rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
805 530 0:69 /bindfiler2G8IC//deleted /etc/group rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
806 530 0:69 /bindfileKSGpQ3//deleted /etc/pkcs11/pkcs11.conf rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
807 530 253:1 /ostree/deploy/fedora-workstation/deploy/ca17e10930f3a312a0fefac1e05986e7fe7bf07df46488dba03f1919918513d4.0/etc/machine-id /etc/machine-id ro,nosuid,nodev,relatime master:1 - ext4 /dev/mapper/fedora_rivendell-root rw,seclabel
808 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/environment /etc/environment rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
809 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/xattr.conf /etc/xattr.conf rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
810 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/drirc /etc/drirc rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
811 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/ca-certificates.conf /etc/ca-certificates.conf rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
812 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/rpc /etc/rpc rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
813 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/services /etc/services rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
814 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/vdpau_wrapper.cfg /etc/vdpau_wrapper.cfg rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
815 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/protocols /etc/protocols rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
816 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/profile.d /etc/profile.d rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
817 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/dbus-1 /etc/dbus-1 rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
818 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/fonts /etc/fonts rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
819 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/issue /etc/issue rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
820 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/pulse /etc/pulse rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
821 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/geoclue /etc/geoclue rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
822 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/mke2fs.conf /etc/mke2fs.conf rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
823 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/issue.net /etc/issue.net rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
824 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/ssl /etc/ssl rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
825 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/xdg /etc/xdg rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
826 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/gtk-3.0 /etc/gtk-3.0 rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
827 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/security /etc/security rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
828 530 253:4 /runtime/org.freedesktop.Platform/x86_64/18.08/00e6b0d7759bf5b1df8728c9b5cc6ea5781be4076880628470542253d268902d/files/etc/ld.so.cache /etc/ld.so.cache rw,nosuid,nodev,relatime master:36 - ext4 /dev/mapper/fedora_rivendell-flatpak rw,seclabel
829 530 253:3 /jurf/.var/app/com.valvesoftware.Steam/.cache /var/cache rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
830 530 253:3 /jurf/.var/app/com.valvesoftware.Steam/.local/share /var/data rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
831 530 253:3 /jurf/.var/app/com.valvesoftware.Steam/.config /var/config rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
832 530 253:3 /jurf/.var/app/com.valvesoftware.Steam/.cache/tmp /var/tmp rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
833 530 0:47 /.flatpak-helper/monitor /run/host/monitor ro,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
834 530 0:69 /bindfileUwvTYu//deleted /etc/ld.so.conf rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
835 828 0:69 /bindfileTHDq7V//deleted /etc/ld.so.cache ro,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
836 530 0:47 /.flatpak/2994312717 /run/user/1000/.flatpak/2994312717 ro,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
837 530 0:69 /bindfile4G34fn//deleted /.flatpak-info ro,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
838 530 0:46 /by-app/com.valvesoftware.Steam /run/user/1000/doc rw,nosuid,nodev,relatime master:181 - fuse /dev/fuse rw,user_id=1000,group_id=1000
839 530 0:6 / /dev rw,nosuid master:24 - devtmpfs devtmpfs rw,seclabel,size=3992864k,nr_inodes=998216,mode=755
840 839 0:20 / /dev/shm rw,nosuid,nodev master:25 - tmpfs tmpfs rw,seclabel
841 839 0:21 / /dev/pts rw,nosuid,noexec,relatime master:26 - devpts devpts rw,seclabel,gid=5,mode=620,ptmxmode=000
842 839 0:17 / /dev/mqueue rw,nosuid,relatime master:29 - mqueue mqueue rw,seclabel
843 839 0:42 / /dev/hugepages rw,nosuid,relatime master:30 - hugetlbfs hugetlbfs rw,seclabel,pagesize=2M
844 530 253:3 /jurf/.var/app/com.valvesoftware.Steam /var/home/jurf rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
845 530 0:47 /app/com.valvesoftware.Steam /run/user/1000/app/com.valvesoftware.Steam rw,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
846 530 253:6 /games/steamapps /var/home/data/games/steamapps rw,nosuid,nodev,relatime master:38 - ext4 /dev/mapper/fedora_rivendell-data rw,seclabel,stripe=32761
847 844 253:3 /jurf/.var/app/com.valvesoftware.Steam /var/home/jurf/.var/app/com.valvesoftware.Steam rw,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
848 844 253:3 /jurf/Obrázky /var/home/jurf/Obrázky ro,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
849 847 0:69 /bindfileChdJpO//deleted /var/home/jurf/.var/app/com.valvesoftware.Steam/.config/user-dirs.dirs rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
850 530 0:72 / /tmp/.X11-unix rw,nosuid,nodev,relatime - tmpfs tmpfs rw,seclabel,mode=755,uid=1000,gid=1000
851 850 0:44 /.X11-unix/X0 /tmp/.X11-unix/X99 rw,nosuid,nodev master:3 - tmpfs tmpfs rw,seclabel
852 530 0:69 /bindfile9XVCzf//deleted /run/user/1000/Xauthority rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
853 530 0:69 /bindfiles54DJG//deleted /run/user/1000/pulse/config rw,nosuid,nodev,relatime - tmpfs  rw,seclabel,uid=1000,gid=1000
854 530 0:47 /pulse/native /run/user/1000/pulse/native rw,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
855 530 0:47 /.dbus-proxy/session-bus-proxy-KEDSOZ /run/user/1000/bus rw,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
856 530 0:47 /.dbus-proxy/system-bus-proxy-XNDSOZ /run/dbus/system_bus_socket rw,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
857 530 0:47 /.dbus-proxy/a11y-bus-proxy-IEESOZ /run/user/1000/at-spi-bus rw,nosuid,nodev,relatime master:278 - tmpfs tmpfs rw,seclabel,size=804660k,mode=700,uid=1000,gid=1000
858 530 0:22 /systemd/journal/socket /run/systemd/journal/socket rw,nosuid,nodev master:27 - tmpfs tmpfs rw,seclabel,mode=755
859 530 0:22 /systemd/journal/stdout /run/systemd/journal/stdout rw,nosuid,nodev master:27 - tmpfs tmpfs rw,seclabel,mode=755
860 530 253:1 /ostree/deploy/fedora-workstation/deploy/ca17e10930f3a312a0fefac1e05986e7fe7bf07df46488dba03f1919918513d4.0/usr/share/fonts /run/host/fonts ro,nosuid,nodev,relatime master:2 - ext4 /dev/mapper/fedora_rivendell-root rw,seclabel
861 530 253:1 /ostree/deploy/fedora-workstation/deploy/ca17e10930f3a312a0fefac1e05986e7fe7bf07df46488dba03f1919918513d4.0/usr/lib/fontconfig/cache /run/host/fonts-cache ro,nosuid,nodev,relatime master:2 - ext4 /dev/mapper/fedora_rivendell-root rw,seclabel
862 530 253:3 /jurf/.local/share/fonts /run/host/user-fonts ro,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
863 530 253:3 /jurf/.cache/fontconfig /run/host/user-fonts-cache ro,nosuid,nodev,relatime master:37 - ext4 /dev/mapper/fedora_rivendell-home rw,seclabel,stripe=32761
864 530 253:1 /ostree/deploy/fedora-workstation/deploy/ca17e10930f3a312a0fefac1e05986e7fe7bf07df46488dba03f1919918513d4.0/usr/share/icons /run/host/share/icons ro,nosuid,nodev,relatime master:2 - ext4 /dev/mapper/fedora_rivendell-root rw,seclabel
sh-4.4$ 

@nanonyme
Copy link
Collaborator

nanonyme commented Sep 5, 2018

@jurf it's just that @alexlarsson still seemed to talk about XDG data

@jurf
Copy link
Member Author

jurf commented Sep 8, 2018

OK, let’s start again. I have a partition by the name of foo, in the LVM volume group bar. I run Silverblue, so I decided to mount bar/foo on /var/home/foo. bar/home, my home partition, is mounted on /var/home, because that is how Silverblue works.

On bar/foo I store a lot of things – music, films, games, including a Steam library, in /var/home/foo/games/steamapps. However, even though Steam can successfully see and load games from it, the free space it thinks the partition has is completely wrong, and seems to be constant, at ~4GB.

I tried changing the mountpoint to /var/foo, and the free space is correctly calculated again. Therefore, it looks like it’s a problem with mountpoints inside mountpoints.

@alexlarsson
Copy link
Member

Yeah, I think the problem is that the steam flatpak doesn't expose the regular $HOME, as it uses --persist. So, what you see as /var/home/foo inside steam is in ~/.var/app/com.valvesoftware.Steam/ on the host.

@jurf
Copy link
Member Author

jurf commented Sep 18, 2018

@alexlarsson it isn’t mounted in /var/home/jurf/foo, ergo not in ~/, so why is that a problem?

@alexlarsson
Copy link
Member

So, /var/home isn't your home, but /var/home/jurf. Ok, i misunderstood then.

So, the issue is in the sandbox, this is the mount:
/dev/mapper/fedora_rivendell-data /var/home/data/games/steamapps ext4 rw,seclabel,nosuid,nodev,relatime,stripe=32761 0 0

I.e. the steamapps folder from the host is mounted on top of /var/home/data/games/steamapps. All the folders above that, such as /, /var, /var/home, /var/home/data, etc, are all part of the sandbox tmpfs root directory, and as such do not have the same free diskspace as the steamapps dir.

@nanonyme
Copy link
Collaborator

@alexlarsson so if we have the exact location that was mounted with - - filesystem, should df show something sensible for that?

@alexlarsson
Copy link
Member

@nanonyme yes, df will return the right values on /var/home/data/games/steamapps, just not on /var/home/data/games (or /var/home/data, or other parent).

@jurf
Copy link
Member Author

jurf commented Oct 1, 2018

OK, so this is fixed by allowing Steam access to the directory that contains steamapps, in my case /var/home/data/games, since for some reason Steam reads the free disk space from there. I’ll add a relevant section to the wiki, thanks for the help!

@jurf jurf closed this as completed Oct 1, 2018
@jurf
Copy link
Member Author

jurf commented Oct 1, 2018

Upstream bug report: ValveSoftware/steam-for-linux#3881

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants