LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-11-2006, 01:48 AM   #1
jcai
Member
 
Registered: Sep 2004
Distribution: Fedora 5
Posts: 48

Rep: Reputation: 15
where do patches and software get installed to?


i plan on installing gentoo on a 5gb partition of my laptop and use an external HD for everything except for the operating system. so when i install things such as gnome, and patches and dependencies and such, how do i do it onto my external HD?
 
Old 01-11-2006, 07:33 AM   #2
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
Programs will by default usually put at least their executables somewhere below /usr. My first thought is that you can mount this external filesystem on /usr when it's present, and thus have most of your files on it.

The problem is, /usr is quite an important directory, and one that many programs probably expect to be present. Of course, you'll have a different /usr directory on your small OS partition, but if a program puts something there when the disk is unmounted, it'll expect it to be there when the disk is mounted, and of course it won't be (well the file will still exist but be 'hidden' by the external drive's /usr directory). That said, you might be able to get away with it - a lot of it comes down to what assumptions applications make about the underlying filesystem (and the persistance of files written to /usr).

Another option which will work, but be more hassle, is to mount your external filesystem on its own directory as you normally would, and build everything from source. When configuring the programs, you can normally pass in the directories you want it to put its binaries, data files etc. Installing gnome from source might be a bit of fun though...

And then there's the /home directories, which also end up containing a lot of data which isn't part of the operating system, so you'd have to move these too.


In fact I've assumed you'll be moving the hard drive in and out from time to time... but do you plan to keep it docked and mounted for basically the whole time you use the computer?

If so, that simplifies things a lot. Just make your 5GB root partition ('/'), then make separate partitions for all the top-level directories that contain stuff that isn't the operating system... if you make partitions for /home (and /root if you want, which is basically another home directory albeit a less well-used one), /usr, /var, /opt (if you fancy, probably not much point)... yeah, that's probably it. I'd consider /tmp a system directory, /bin and /sbin contain core binaries, /etc will contain config files for your installed applications, but also contains config for system-level utilities and probably should be left alone. The other top-level directories tend to contain special things that aren't really files either.

This doesn't seem very clear to me. If I'm right and it makes no sense, ask me for clarification while prodding in the direction you want to go.

HTH,
Andrzej
 
Old 01-11-2006, 08:53 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I don't understand why you want to put core SW like gnome on the external drive. My Ubuntu install with all the bells and whistles takes 4.5Gb---this includes a bunch of data.

What is your total HD size?

If you need the external drive, I would make it just data---maybe FAT32 so Windows and Linux can both access it.
 
Old 01-11-2006, 01:16 PM   #4
jcai
Member
 
Registered: Sep 2004
Distribution: Fedora 5
Posts: 48

Original Poster
Rep: Reputation: 15
Dtsazza,

that sounds like a good plan, so when installing Gentoo how do i specify which partition each directory should be in? if i remember correctly i executed a mkefs2 command which created the whole filesystem on one partition
 
  


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
Installed Programs/Software ilovelagar Linux - Newbie 25 06-15-2006 07:04 PM
Patches forum (or subsection to software) powadha LQ Suggestions & Feedback 1 11-11-2004 06:06 PM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
Finding Installed Software zaphanol Linux - Software 3 08-01-2003 01:40 PM
applying software patches yocompia Slackware 4 07-29-2003 07:36 PM


All times are GMT -5. The time now is 05:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration