How can I increase the sizy of HOME folder, so I can install games using Wine?

Asked by Pedro Cunha

Well, my Ubuntu partition has 100GB, but my Home folder only gets 2.6GB. Well, since Wine "creates" C: on that folder, it doesn't give me a lot of room to install any recent game.

My question is: how can I add space to my Home folder? I don't know...make it 50GB or something. I have enough free space to increase my Ubuntu partition as well.

I am using Ubuntu 10.10, btw, and a WD Scorpio Black 500GB 7200rpm.

Question information

Language:
English Edit question
Status:
Solved
For:
Wubi Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

There are two ways.

1) Reparition your drives to allocate more space to your home folder. This would involve booting to a liveCD (so the partition is not active), and then using gparted to reduce the partition size of /, and increase /home.

2) Move the wine folder from your home to your / drive somwhere (eg make a folder /usr/local/morespace/), and then using nautilus, drag the /var/space whilst holding the ctrl+shift keys to your home folder.

This will make a link called "morespace" (or whatever you named the folder to ) in your home folder. Rename this link to ".wine" (moving the .wine folder out of the way first (use view->Show hidden folders to see the .wine folder)).

Now, once you are done, you need to change the permissions on the /usr/local/morespace/ as administrator.

run (Alt+F2) "gksudo nautilus" to launch administrator version of nautilus, and change the folder owner /usr/local/morespace/ to yourself.

Now you should be able to make and delete files in that folder as a normal user (test this).

Once done, move the *contents* of your .wine folder (not the folder itself) to this new location.

Now when you browse in your home folder, you should be able to get to this /usr/local/morespace/ folder by following the ".wine" link in your home folder. The actual files will reside on your / partition, but will be accessible from your /home/ filesystem.

Revision history for this message
mycae (mycae) said :
#2

Uhh where I wrote /var/space above, replace it with /usr/local/morespace. sorry.

Revision history for this message
Pedro Cunha (sidner-7) said :
#3

I checked where all the space was, since almost every folder only had 1.5Gb or something, and as it turns out it's the /host folder that has 90GB free. Why? Do I create the morespace folder there?

And if the other folders need more space, will they fetch from /host?

Revision history for this message
Pedro Cunha (sidner-7) said :
#4

Just so there is a little more information on my disk usage.

seltor@ubuntu:~$ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop0 9821012 7732236 1589884 83% /
proc 0 0 0 - /proc
none 0 0 0 - /sys
fusectl 0 0 0 - /sys/fs/fuse/connections
none 0 0 0 - /sys/kernel/debug
none 0 0 0 - /sys/kernel/security
none 1504344 296 1504048 1% /dev
none 0 0 0 - /dev/pts
none 1509944 396 1509548 1% /dev/shm
none 1509944 224 1509720 1% /var/run
none 1509944 0 1509944 0% /var/lock
/dev/sda6 104989692 11042428 93947264 11% /host <------ What I'm talking about
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 0 0 0 - /home/seltor/.gvfs
/dev/sda2 122102032 104774064 17327968 86% /media/OS
seltor@ubuntu:~$

Revision history for this message
marcus aurelius (adbiz) said :
#5

there is not actual c: drive. it's a virtual drives that's used to trick windoze programs into running. your programs are usually stored in the /opt directory, not your /home directory. the /home directory is only used to store data that you download or create, such as word processing documents.

Revision history for this message
Best mycae (mycae) said :
#6

/host is your windows install, it is mounted there by WUBI.
https://wiki.ubuntu.com/WubiGuide

You should be able to follow the same procedure with the /host/wherever/ folder, in theory.

If you have a wubi image, it is possible to increase the size of the image, (as indicated in that guide) but my original (1) instructions will not work.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#7

Since you're running a Wubi system, the /host folder represents your Windows drive; that's why it has so much space. You don't have a separate partition for your home folder, so creating a new folder in /usr/local to put your Wine files wouldn't help.

You can expand your Wubi system, or create a new Wubi image for your home folder, or migrate your Wubi system to a regular Ubuntu installation. See http://lubi.sourceforge.net/lvpm.html.

You should also be able to store and access files in /host, as mycae indicates, but you should not confuse the "Windows files" used by Wine with the actual files that are part of your actual Windows system. That is, if you try to run programs with Wine that you previously installed in your actual Windows system, or try to install programs with Wine to later be used by your actual Windows system, then you're asking for major breakage of both your Wine software and (probably more seriously) the software in your actual Windows system. So, as mycae suggests, if you store Wine files inside /host, put them in their own dedicated subfolder of /host.

(Also, the output of df is a whole lot easier to use if you pass the -h flag.)

@marcus
The Wine "C: drive" is stored inside the .wine folder in the user's home directory by default, and not in /opt.

Revision history for this message
Pedro Cunha (sidner-7) said :
#8

Ok, first of all, thank you all for the help!

I know that Wine and the Windows files are not the same, don't worry Eliah. :)

As for increasing the home folder's storage, the links helped a lot!! I assume, since Ubuntu runs inside the Windows partition, that I don't need a dedicated one for it? At least not a 100GB one. :P

In any case, at least now I can install something. :) Thank you all!

Revision history for this message
Pedro Cunha (sidner-7) said :
#9

Thanks mycae, that solved my question.

Revision history for this message
Ashton Rideaux (ashtonwilliams1993) said :
#10

Umm... i just read your post and i ran out of space because ubuntu only uses 17GB. So i went to disk utltiy app and went to my 1200GB Hard Drive and pressed mount volume... was that safe to do if not tell me why?

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#11

That was safe to do, but since you ran out of space on your Wubi volume, it might not have helped you any.

However, if you offload some documents (or other files that are not part of the Ubuntu OS, such as music and videos of your own) from your Wubi volume to the 1200 GB hard drive, that would be one way to free up space in your Wubi volume.