LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2005, 06:06 AM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
/usr and /opt in 1 partition


Is it possible to put 2 directories in 1 partition?
My case: I want to put BOTH /usr and /opt ONLY in 1 partition so to make fewer
list in the partition table as I plan to make more than 10 partitions in 2 Disks.
If /usr and /opt have to be separated, that would generate more than 11 partitions.
So, 1 partition less would be tremendously helpful for my future partitioning task.

(This is for experimental and learning experience. Please don't reply:"It's not necessary
to have that many partitions in a pc ! ")

Thanks.
 
Old 08-16-2005, 06:09 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
i9t's possible, sure, just move /opt/ to somethign like /usr/opt and create a symlin kback to /opt on the root partition. then it'll appear in two places.
 
Old 08-16-2005, 06:58 AM   #3
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
Wow...quick reply. Cool.

OK..what i get is your solution is to create /opt as symlink for /usr/opt

Sorry, that's kinda hack solution i think. But is there any other way to make it /usr and /opt really separated but in the same partition? If not I will use your solution although i dunno how to create symlink in the middle linux installation. That will be in another thread after i finished the partitioning stuff

Thanks again.
 
Old 08-16-2005, 07:01 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by hottdogg
Wow...quick reply. Cool.

OK..what i get is your solution is to create /opt as symlink for /usr/opt

Sorry, that's kinda hack solution i think. But is there any other way to make it /usr and /opt really separated but in the same partition? If not I will use your solution although i dunno how to create symlink in the middle linux installation. That will be in another thread after i finished the partitioning stuff

Thanks again.
Not not really, two different directories can't mount to the same drive partition, just isn't feasible unless one is under the other, subdirectory, etc. The link is the proper way to achieve such tasks.
 
Old 08-16-2005, 07:13 AM   #5
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
OK, then. Will be partitioning more than 10 instead of more than 11. Thanks guys.
 
Old 08-16-2005, 09:05 AM   #6
mherring02
Member
 
Registered: May 2005
Location: Pasadena, CA
Distribution: Ubuntu, Fedora
Posts: 50

Rep: Reputation: 15
Not sure I understand all this. You can put any directory in any partition you want. A common default is two partitions---one for swap, and one for everything else. I often set up with four: Swap, Boot, Data, and Root (which holds everything below root that was not put somewhere else).

I recommend the time-honored life principle: KISS
 
Old 08-16-2005, 09:51 AM   #7
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
You could just leave /opt alone so it stays on the / partition. It's not like it'll disappear if you don't assign it a partition.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to install software /opt? or /usr/local? sfwalter Linux - General 4 08-23-2013 11:22 PM
how to mount linux partition as /opt shams Linux - Hardware 2 04-02-2005 09:33 PM
/opt or /usr ? eeried Linux - Newbie 1 01-06-2005 04:49 AM
symlinking /opt to /usr/? [GOD]Anck Slackware 6 01-01-2004 11:03 PM
Make an /opt partition? proton666 Linux - General 4 01-11-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:48 AM.

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