LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2010, 12:15 AM   #1
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Rep: Reputation: 15
Which disk is talking about?


Hi,

I'm installing Oracle 10G Express Edition on Linux Mandriva.

When I execute the package I get the following message,
[root@mandriva-vm downloads]# rpm -ivh oracle-xe-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [100%]
installing package oracle-xe-10.2.0.1-1.0.i386 needs 397MB on the / filesystem
[root@mandriva-vm downloads]#

The disk that I'm executing this rpm package has 19GB free space. Can someone assist as to why it's complaining about 397MB?
 
Old 03-19-2010, 12:19 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Can you post your /etc/fstab as well as the output from 'df -h' ?

thanks
 
Old 03-19-2010, 12:24 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It is looking in the root filesystem - how much free space is there in your root partition?
 
Old 03-19-2010, 12:35 AM   #4
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Here is df -h
[root@mandriva-vm downloads]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.1G 3.9G 9.5M 100% /
/dev/sda6 3.4G 215M 3.2G 7% /home
/dev/sdb1 20G 384M 19G 3% /software

Here is the contenets of the fstab file
[root@mandriva-vm etc]# cat fstab
# Entry for /dev/sda1 :
UUID=cd4d8590-1e87-40df-aeeb-ec8de0701d2f / ext4 defaults 1 1
# Entry for /dev/sda6 :
UUID=d2c41f90-834a-4c97-9d9b-37680182d019 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=83ad482e-966a-4c3c-8c14-03c14e17fcfe swap swap defaults 0 0
/dev/sdb1 /software ext3 defaults 1 1
/swapfile swap swap defaults 0 0
 
Old 03-19-2010, 02:15 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,699

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
It's installing to the root '/' fs; which is full .... It's not where you install from, it's where you install to that counts
 
Old 03-19-2010, 02:35 AM   #6
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
ok so how do I execute the rpm package to install on the /software disk?
 
Old 03-19-2010, 08:54 AM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You probably can't, most rpm's have hardcoded locations to place the files. Besides that, you really need to free up some space on your '/' partition, things will start breaking/malfunctioning shortly...

<edit> looks like it will install to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server, if you're not already using /software maybe you could use it as a new /usr partition or add an extra disk. Or resize software and create a new partition, or reinstall and rearrange the partitions. It needs 1.5GB according to the install guide</edit>

cheers

Last edited by kbp; 03-19-2010 at 09:05 AM.
 
Old 03-19-2010, 10:27 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You seem to want to install software to /software - in linux, software is usually installed to /usr ... so you will need to make this bigger since you have not provided any space in /

You definately want to clear space in / partition. You need more space for /boot and /usr directories.

The general method is:
Produce a new partition - mount it to /mnt - copy everything from /usr to /mnt - unmount /mnt - mount the new partition to /usr - edit /etc/fstab so that the new partition will maunt to /usr at boot.

Now you have lots of space.
(Allow at least 8gig for this - unless you know exactly how much you'll be installing.)

If you used LVM you'd be able to just resize and combine on the fly.


Technically: you can alter the target directory for the rpm command. (man rpm) Not usually considered a good idea for production use.
 
Old 03-19-2010, 10:31 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
What you should be doing is to re-think your file system layout.

This command will let you know where your disk space is being used.

Code:
du -sh /*
You could just mount sdb1 to whatever directory is using most of the space. For example, if most of your space is being consumed in /usr you could copy the contents of /usr to /software, then umount /software and mount sdb1 as /usr. If everything is ok, umount sdb1 from /usr and then delete /usr/* to erase these files from the / partition to free the space. Mount again sdb1 in /usr and be happy with it.

After that add a line to make this permanent in /etc/fstab.

A very important thing when copying the files is that you MUST make sure that permissions and ownerships are preserved. If you use cp, you can do that with -a. If you use some other tool you will have to take care of that yourself. If you screw the permissions and/or ownerships massively then most likely you will have to reinstall to fix the mess.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone know what I'm talking about? hoobajue Linux - General 11 12-26-2009 10:44 AM
Talking to an I/O device galapogos Programming 2 06-12-2008 02:29 PM
Talking Movies Hitboxx General 1 01-06-2007 08:35 PM
Grandma not talking to me Envision5000 General 5 06-21-2006 09:46 AM
eth1 not talking the_cranky_don Linux - Networking 10 04-26-2005 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration