View previous topic :: View next topic |
Author |
Message |
wildman n00b
Joined: 22 Apr 2002 Posts: 14 Location: Gresham, OR
|
Posted: Tue Apr 30, 2002 5:21 pm Post subject: How much free space to compile X windows? |
|
|
I've got about 650MB free on my gentoo partition and it runs out of space when compiling X windows. Anybody know how much free space is required? I made symlinks from /usr/tmp and /var/tmp over to a vfat partition with about 1.5GB free but tar complains that it can't write to those directories.
How do I do this? Help!
Also, it seems that emerge wanted to use /usr/tmp first. Then when I symlinked that over to the vfat partition it tries to use /var/tmp. Why? |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Tue Apr 30, 2002 5:25 pm Post subject: |
|
|
vfat doesn't track ownership and status bits on files.
A loopback partition might do the trick. You could dd a chunk of space on the vfat partition into a large empty file, then mke2fs that file and mount it for use. |
|
Back to top |
|
|
wildman n00b
Joined: 22 Apr 2002 Posts: 14 Location: Gresham, OR
|
Posted: Tue Apr 30, 2002 5:31 pm Post subject: |
|
|
Can you show me the requisite dd command? I'm a bit of a newbie w/ dd. I'm assuming I'll have to recompile my kernal for loopback support (don't remember if I included it).
Thanks for the help! |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Tue Apr 30, 2002 6:30 pm Post subject: |
|
|
You may need to compile with that option, yes.
A sample DD command:
Code: | dd if=/dev/zero of=/mnt/windows/tmp_partition bs=1M count=N |
Where the path to your vfat partition may vary, the temporary partition can be whatever name you want, and the size of the partition is bs*count bytes. I like using bs=1M so that count just gives me megabytes directly.
Then you:
Code: | mke2fs /mnt/windows/tmp_partition |
It'll inform you that this is not a block special device (eg: not a hard drive) and ask if you you want to proceed anyway. Do so.
Finally:
Code: | mount -o loop /mnt/windows/tmp_partition /usr/tmp |
or /var/tmp... whatever works.
Don't forget to unmount it when you're done and delete the file if you want to reclaim that space on the vfat drive. |
|
Back to top |
|
|
wildman n00b
Joined: 22 Apr 2002 Posts: 14 Location: Gresham, OR
|
Posted: Wed May 01, 2002 3:24 pm Post subject: |
|
|
Thanks Target, that worked like a charm! 1.2GB seemed to be enough space to compile X. |
|
Back to top |
|
|
|