LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-15-2012, 02:11 AM   #1
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Rep: Reputation: Disabled
Question Utilizing /opt partition?


I could have probably posted this under General but as I done this primarly for Gentoo I figured I'd be better off posting here.

When I installed, I setup a /opt partition. My partition scheme was originally done for a LFS install but when that failed I just reused for Gentoo.

My question is...How do I best make use of it so that it's not just waisted space?

What apps can be installed to take advantage of it and do those have to be compiled from source or what options are there?

I did see a few other post but none really addressed what I am wanting to know.
 
Old 06-15-2012, 02:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/opt is generally used for large enterprise apps. Things like MQ, Oracle or Weblogic tend to go in there, proprietary software that doesn't get integrated into the standard filesystem structure. I wouldn't suggest using it for the sake of it, maybe you can merge it with /usr or /home? That's easier with an LVM environment of course. You could possibly turn it into /var if you don't have that dedicated already?
 
Old 06-15-2012, 03:51 AM   #3
dwmolyneux
Member
 
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 124

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
/opt is generally used for large enterprise apps. Things like MQ, Oracle or Weblogic tend to go in there, proprietary software that doesn't get integrated into the standard filesystem structure. I wouldn't suggest using it for the sake of it, maybe you can merge it with /usr or /home? That's easier with an LVM environment of course. You could possibly turn it into /var if you don't have that dedicated already?
As I already have Gentoo installed and I'm not using LVM, how would be the easiest way to change /opt to /var?

I will admit, that Gentoo being a bit more advance than my Linux skill level. I'm not a complete but I'm still in the beginer range.

Last edited by dwmolyneux; 06-15-2012 at 03:54 AM.
 
Old 06-15-2012, 04:42 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
You can use a program like gparted to delete the partition then resize a neighboring partition so you use the space.


Hope this helps.
 
Old 06-16-2012, 02:14 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Your options are:
  • As someone suggested above, just re-use it for something else. To "convert" to /var, all you need is to make sure you adjust the relevant line in /etc/fstab, just change the mountpoint from /opt to /var. It could be a candidate for /usr, /tmp, or /usr/portage, whatever suits you, and depending on how big the partition is. Maybe /home. If you haven't installed Gentoo yet, you can just follow the handbook, and when it comes the time to make the partitioning, take into account that this one will be <whatever> and change your fstab according to that. If Gentoo is already installed, then you will have to switch to runlevel 1 (init 1 in command line as root). Then mount your opt partition somewhere (you can just mount it in opt, or in some other place, it doesn't really matter). Then mv /var/* /opt/, then umount /opt, and re-mount it in /var. Finally, change fstab accordingly.
  • Re-do the partition scheme, and integrate that space into some other place. Parted can help you with this. There's also a gparted livecd, which is probably safer to use, overall if you are not comfortable with the command line yet.
  • Leave it as it is, and use that partition for backups, or to try and test other distros, or to make a cross-dev build tree for your android phone, or... well, possibilities are infinite
 
  


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
Moving /opt etc to another partition... slack&lovinit Slackware 8 08-14-2006 10:33 PM
/usr and /opt in 1 partition hottdogg Linux - General 6 08-16-2005 09:51 AM
how to mount linux partition as /opt shams Linux - Hardware 2 04-02-2005 09:33 PM
new /opt partition from / without resizing with parted everal Linux - Hardware 1 12-16-2004 01:50 AM
Make an /opt partition? proton666 Linux - General 4 01-11-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:34 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
Open Source Consulting | Domain Registration