#308 Game queries available space of / partition instead of /home partition

Stängd
öppnade 1 år sedan av Ramiel · 4 kommentarer
Ramiel kommenterad 1 år sedan

As titled. The game gives the error code -9907 (Insufficient space on disk), but at the same time the displayed download size is only 19.5GB. df -h gives the following output:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.8G  1.7M  7.8G   1% /run
/dev/nvme0n1p5   59G   46G   11G  82% /
tmpfs           7.8G   52M  7.7G   1% /dev/shm
tmpfs           7.8G  8.0M  7.7G   1% /tmp
/dev/nvme0n1p6  321G  228G   77G  75% /home
/dev/nvme0n1p1  256M  100M  157M  39% /boot
tmpfs           1.6G  144K  1.6G   1% /run/user/1000
tmpfs           1.6G   28K  1.6G   1% /run/user/1001

Which indicates that I should have sufficient space for the download (77GB in /home).

OS is Arch Linux x86_64, Wine is wine-7.7, dxvk 1.9.4-2. Graphics cards are Intel TigerLake-LP GT2 and NVIDIA GeForce MX450.

EDIT: After some searching the following log (at `.../'Genshin Impact Game'/GenshinImpact_Data/Persistent/DownloadError.log)is found:

06-04 23:10:43 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735
06-04 23:11:02 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735
06-04 23:11:46 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735
06-04 23:13:34 [Error]CheckSpaceEnough Failed, free space = 11223269376, need space = 20540972735
06-04 23:13:46 [Error]CheckSpaceEnough Failed, free space = 11223269376, need space = 20540972735
06-04 23:16:29 [Error]CheckSpaceEnough Failed, free space = 11223257088, need space = 20540972735
06-04 23:17:36 [Error]CheckSpaceEnough Failed, free space = 11223248896, need space = 20540972735
06-04 23:19:59 [Error]CheckSpaceEnough Failed, free space = 11223236608, need space = 20540972735

Which indicates that the game is trying to download the data onto /, not /home. Any reason for this behavior/any ways to fix this? E.g. would a complete reinstall fix this (as per https://old.reddit.com/r/Genshin_Impact/comments/uytr5q/psa_the_prepatch_is_way_bigger_than_the_actual/), or will it still get stuck at the data downloading step?

EDIT 2: Solved for the time being by moving the pacman package cache to /home temporarily. However, it seems that despite querying the capacity of /, the data is actually downloaded onto somewhere in /home:

Output of df -h at around ~70% download progress:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.8G  1.7M  7.8G   1% /run
/dev/nvme0n1p5   59G   22G   35G  39% /
tmpfs           7.8G   44M  7.7G   1% /dev/shm
tmpfs           7.8G  8.5M  7.7G   1% /tmp
/dev/nvme0n1p6  321G  263G   42G  87% /home
/dev/nvme0n1p1  256M  100M  157M  39% /boot
tmpfs           1.6G  144K  1.6G   1% /run/user/1000
tmpfs           1.6G   28K  1.6G   1% /run/user/1001

Output of df -h at around ~90% download progress:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.8G  1.7M  7.8G   1% /run
/dev/nvme0n1p5   59G   22G   35G  39% /
tmpfs           7.8G   44M  7.7G   1% /dev/shm
tmpfs           7.8G  8.5M  7.7G   1% /tmp
/dev/nvme0n1p6  321G  268G   37G  88% /home
/dev/nvme0n1p1  256M  100M  157M  39% /boot
tmpfs           1.6G  144K  1.6G   1% /run/user/1000
tmpfs           1.6G   28K  1.6G   1% /run/user/1001

Changing title to reflect the new issue since the "original" issue is solved. (Original: "Game refuses to download update files despite having sufficient space")

As titled. The game gives the error code -9907 (Insufficient space on disk), but at the same time the displayed download size is only 19.5GB. `df -h` gives the following output: ``` Filesystem Size Used Avail Use% Mounted on dev 7.7G 0 7.7G 0% /dev run 7.8G 1.7M 7.8G 1% /run /dev/nvme0n1p5 59G 46G 11G 82% / tmpfs 7.8G 52M 7.7G 1% /dev/shm tmpfs 7.8G 8.0M 7.7G 1% /tmp /dev/nvme0n1p6 321G 228G 77G 75% /home /dev/nvme0n1p1 256M 100M 157M 39% /boot tmpfs 1.6G 144K 1.6G 1% /run/user/1000 tmpfs 1.6G 28K 1.6G 1% /run/user/1001 ``` Which indicates that I should have sufficient space for the download (77GB in /home). OS is Arch Linux x86_64, Wine is wine-7.7, dxvk 1.9.4-2. Graphics cards are Intel TigerLake-LP GT2 and NVIDIA GeForce MX450. EDIT: After some searching the following log (at `.../'Genshin Impact Game'/GenshinImpact_Data/Persistent/DownloadError.log)is found: ``` 06-04 23:10:43 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735 06-04 23:11:02 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735 06-04 23:11:46 [Error]CheckSpaceEnough Failed, free space = 11223281664, need space = 20540972735 06-04 23:13:34 [Error]CheckSpaceEnough Failed, free space = 11223269376, need space = 20540972735 06-04 23:13:46 [Error]CheckSpaceEnough Failed, free space = 11223269376, need space = 20540972735 06-04 23:16:29 [Error]CheckSpaceEnough Failed, free space = 11223257088, need space = 20540972735 06-04 23:17:36 [Error]CheckSpaceEnough Failed, free space = 11223248896, need space = 20540972735 06-04 23:19:59 [Error]CheckSpaceEnough Failed, free space = 11223236608, need space = 20540972735 ``` Which indicates that the game is trying to download the data onto `/`, not `/home`. Any reason for this behavior/any ways to fix this? E.g. would a complete reinstall fix this (as per https://old.reddit.com/r/Genshin_Impact/comments/uytr5q/psa_the_prepatch_is_way_bigger_than_the_actual/), or will it still get stuck at the data downloading step? EDIT 2: Solved for the time being by moving the `pacman` package cache to /home temporarily. However, it seems that despite querying the capacity of `/`, the data is actually downloaded onto somewhere in `/home`: Output of `df -h` at around ~70% download progress: ``` Filesystem Size Used Avail Use% Mounted on dev 7.7G 0 7.7G 0% /dev run 7.8G 1.7M 7.8G 1% /run /dev/nvme0n1p5 59G 22G 35G 39% / tmpfs 7.8G 44M 7.7G 1% /dev/shm tmpfs 7.8G 8.5M 7.7G 1% /tmp /dev/nvme0n1p6 321G 263G 42G 87% /home /dev/nvme0n1p1 256M 100M 157M 39% /boot tmpfs 1.6G 144K 1.6G 1% /run/user/1000 tmpfs 1.6G 28K 1.6G 1% /run/user/1001 ``` Output of `df -h` at around ~90% download progress: ``` Filesystem Size Used Avail Use% Mounted on dev 7.7G 0 7.7G 0% /dev run 7.8G 1.7M 7.8G 1% /run /dev/nvme0n1p5 59G 22G 35G 39% / tmpfs 7.8G 44M 7.7G 1% /dev/shm tmpfs 7.8G 8.5M 7.7G 1% /tmp /dev/nvme0n1p6 321G 268G 37G 88% /home /dev/nvme0n1p1 256M 100M 157M 39% /boot tmpfs 1.6G 144K 1.6G 1% /run/user/1000 tmpfs 1.6G 28K 1.6G 1% /run/user/1001 ``` Changing title to reflect the new issue since the "original" issue is solved. (Original: "Game refuses to download update files despite having sufficient space")
Krock kommenterad 1 år sedan
Ägare

Remove all but the C:\ drive from winecfg. This way Wine will be forced to use the correct drive for capacity checks.

Remove all but the `C:\` drive from `winecfg`. This way Wine will be forced to use the correct drive for capacity checks.
Ramiel kommenterad 1 år sedan
Skapare

I removed the Z:\ drive pointing to /, but it seems that without that drive wine will be broken (e.g. other games/programmes stop working, cannot recognize launcher.bat as an internal or external command, or batch script despite it being present in the folder).

I removed the `Z:\` drive pointing to `/`, but it seems that without that drive `wine` will be broken (e.g. other games/programmes stop working, cannot recognize `launcher.bat` as an internal or external command, or batch script despite it being present in the folder).
Krock kommenterad 1 år sedan
Ägare

Yes, winecfg must still contain a drive which points to the game's installation directory so that Wine can resolve the path. For example the following console process should show a proper path:

export WINEPREFIX="/path/to/your/wineprefix"
export WINE="wine" # use the direct Wine path here, if not system-wide

cd "/path/to/game/directory/" # where launcher.bat is
"$WINE" cmd  # without more arguments

The following message must not appear, otherwise the game cannot be found using the known drives:

wine: could not open working directory L"unix\\path\\to\\game\\directory\\", starting in the Windows directory.

Starting launcher.bat from there should be no problem. Disclaimer: this was tested using vanilla Wine but Proton should work the same.

You could also consider to use a separate WINEPREFIX if your other programs need access to all system paths.

Yes, winecfg must still contain a drive which points to the game's installation directory so that Wine can resolve the path. For example the following console process should show a proper path: ``` export WINEPREFIX="/path/to/your/wineprefix" export WINE="wine" # use the direct Wine path here, if not system-wide cd "/path/to/game/directory/" # where launcher.bat is "$WINE" cmd # without more arguments ``` The following message *must not* appear, otherwise the game cannot be found using the known drives: ``` wine: could not open working directory L"unix\\path\\to\\game\\directory\\", starting in the Windows directory. ``` Starting `launcher.bat` from there should be no problem. Disclaimer: this was tested using vanilla Wine but Proton should work the same. You could also consider to use a separate WINEPREFIX if your other programs need access to all system paths.
Ramiel kommenterad 1 år sedan
Skapare

Thank you. I have set drive Z: to point to /home, and it seems that the wine-level problems have been solved.

Thank you. I have set drive `Z:` to point to `/home`, and it seems that the `wine`-level problems have been solved.
Logga in för att delta i denna konversation.
Laddar...
Avbryt
Spara
Det finns inget innehåll än.