Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I get the following error trying to install Oracle XE on a CentOS 5 virtual machine:

You have insufficient diskspace in the destination directory (/usr/lib/oracle) 
to install Oracle Database 10g Express Edition.  The installation requires at 
least 1.5 GB free on this disk.
error: %pre(oracle-xe-10.2.0.1-1.0.i386) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping oracle-xe-10.2.0.1-1.0

This struck me as strange, considering that the VM is a brand new installation, using 3 GB of disk space out of 20. When I run free on the same box I get:

             total       used       free     shared    buffers     cached
Mem:       1035108     867780     167328          0      43408     604396
-/+ buffers/cache:     219976     815132
Swap:      2096472        120    2096352

Any ideas what could be wrong here?

share|improve this question
    
Just a note: the "free" command you used will give you your system's memory use, and not disk space. For disk space use the "df" command, preferably "df -h" for human readable output –  katriel Mar 27 '11 at 21:26
add comment

1 Answer

up vote 3 down vote accepted

Turns out that the Easy Install feature of VMWare Fusion with CentOS is not so easy. By default, the installer creates two logical volumes: one under / and one under /home. It then allocates almost all disk space to the /home logical volume. In my case, I had 3.8 GB allocated under / and 13 GB allocated under /home.

This becomes a problem with large rpms that expect to be installed under / such as oracle's. By creating a new VM without the Easy Install checkbox, I was able to correct the problem. I didn't even need to change any defaults!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.