| Gentoo This forum is for the discussion of Gentoo Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
06-15-2012, 02:11 AM
|
#1
|
|
Member
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 113
Rep: 
|
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.
|
|
|
|
06-15-2012, 02:28 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
/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?
|
|
|
|
06-15-2012, 03:51 AM
|
#3
|
|
Member
Registered: Feb 2012
Location: United States of America
Distribution: "First Time Gentoo user",Debian, Fedora, LinuxMint
Posts: 113
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
/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.
|
|
|
|
06-15-2012, 04:42 AM
|
#4
|
|
Member
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 689
Rep: 
|
You can use a program like gparted to delete the partition then resize a neighboring partition so you use the space.
Hope this helps.
|
|
|
|
06-16-2012, 02:14 AM
|
#5
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
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

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|