using wine on a data drive

Questions about Wine on Linux
Locked
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

using wine on a data drive

Post by kickass1955 »

i am using wine on a 111 gig system and i need to use wine on another drive. I have a data drive that is 32 bit and tons of space.can i make wine work on my data drive?
trying to play world of tanks and i have only 18 gig left on my sdd drive. and if i can do this i need to remove my tank game on my sdd drive. Any help would be appreciated.
i need instructions line by line on this, i am a newbie to linux. I do have lubuntu 22.04 and pop! os on my rig. trying to use pop to run my game for better fps.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: using wine on a data drive

Post by jkfloris »

You can use the WINEPREFIX variable to specify the "fake Windows" installation.

By default this is the (hidden) .wine folder in your home directory.
Move the .wine directory form your ssd to your data drive.
(No idea where your data drive is mounted, but as an example I'll take /media/data)
Now you have a wineprefix in /media/data/.wine

You just have to tell Wine that you moved your Wineprefix. You can do this with the WINEPREFIX variable.

Code: Select all

WINEPREFIX=/media/data/.wine wine program.exe
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

i really do not know what i am doing....my drive is on dev/sdb2.....data is label name of drive which is fat32.
i copied the wine folder to my data drive , but that did not do anything. is there a step by step instruction on how to do this?
when i try to load wine and go to my data drive , wine does not see it. Just shows c: drive which is wine folder.
i really do not know what i am doing....i did move the wine folder to my data drive...
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

So, if you moved ".wine" to another drive, you would put that in as a custom prefix. So if you moved or copied it to (making this up) /mnt/datadrive/.wine, you would launch like:

Code: Select all

WINEPREFIX=/mnt/datadrive/.wine wine program.exe
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

ok will give that a try
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

says no such file or directory
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

So if you go to the new directory where you copied or moved .wine and do

Code: Select all

pwd
That should show you the location you need to enter

Code: Select all

WINEPREFIX=<output of pwd command>/.wine wine <program name>.exe
You will need to change what's between the <>, and don't include the <> characters
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

ok will try it
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

this is what i have and entered.....WINEPREFIX=media/josephmeier/DATA/.wine wine /drive_c/Games/World_of_Tanks_NA
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

no good
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

/media/josephmeier/DATA
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

there is where i have folder .wine
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

WINEPREFIX=<output of pwd command>/.wine wine <program name>.exe.........in program name------i should use world of tanks.exe ?
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

Yep, but if there are spaces embedded in the filename you either need to precede them with a backslash:

Code: Select all

World\ of\ Tanks
or enclose them in ' or "

Code: Select all

"World of Tanks"
Those are just examples, not sure of the actual filename
Usually you can use "tab completion" to help you too. You can start typing in the file name, then hit <tab> and it might complete it automatically for you.
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

ok , will try it....i am getting close......no error when i did wine prefix. game will not start tho......so i am close
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

and it is worldoftanks.exe
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

Nice, hopefully get it going!
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

i was reading that the drive i am to move wine into has to be unix or ext4 set up in the partition or wine will not run there.....if i have to i can redo my data drive.
Thoughts?
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

Not that I am aware of, but I suppose it could be true, if you try to work on it further, get a good handle on the below.

You can try to pin point what's going wrong.
1. what is the exact name of your .wine folder and what directory is it in? (it might be just .wine)
2. what is the exact name of the executable and what directory is it in?

1. should be something like

Code: Select all

/media/josephmeier/DATA/.wine
If you are in the directory containing it you have to add "-a" to ls to show it

Code: Select all

ls -a
2. should be something like

Code: Select all

/media/josephmeier/DATA/.wine/drive_c/Program Files (x86)/Diablo\ II/Diablo\ II.exe
In the above example this is how i would run it:

Code: Select all

cd /media/josephmeier/DATA/.wine/drive_c/Program\ Files\ \(x86\)/Diablo\ II
WINEPREFIX=/media/josephmeier/DATA/.wine wine Diablo\ II.exe
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

ok will try that.....i am having a terrible time with lutris
if i install by default it runs fine......just cant get it to run on my data drive.
but like i said, i do not have the room on my ssd drive, after game installs i ha 18 gig of free space left.
on my data drive i have over 300 gig.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

Sometimes it's just easier to do a fresh install onto the data drive, then reinstall everything. It sounds like that's your problem? You can't even get a fresh install going on your data drive?
kickass1955
Level 2
Level 2
Posts: 21
Joined: Wed Feb 15, 2023 11:46 am

Re: using wine on a data drive

Post by kickass1955 »

I gave up....bought a 500 gig ssd drive and now all is well in linux land.
i have all i need to run my tank game with 350 gig left over.
maybe one day i will learn linux enuff to do what i want.
Thanks for all the help and suggestions.....
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: using wine on a data drive

Post by invisible kid »

Good deal! Yep, sometimes you gotta bring out the big guns.
Locked