LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-29-2006, 07:01 PM   #1
ce124
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
Using filesystem efficiently


Dear all,

I'm a little overwhelmed by the linux filesystem. Should I just put all of my user files (music, text etc) in the appropriate partition under /home. Are there more efficient ways of doing this like partitioning the disk for separate aspects of the filesystem or putting 30gb of music under a separate unique partition?

Another thing I don't yet understand is where to put source files after I have downloaded and compiled the source code. If I get an rpm package and unpack and './configure/make/make install' it then all of the source files are put in the right place. I'm then left with a directory for the package. Where should this live? /usr/local? I guess what I'm trying to ask is where should I download an rpm (or whatever) to before I unpack and compile? In Windows these would live in the Program Files directory under the C:\ drive.

Thanks for your time,

CE.
 
Old 12-29-2006, 08:19 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by ce124
I'm a little overwhelmed by the linux filesystem. Should I just put all of my user files (music, text etc) in the appropriate partition under /home. Are there more efficient ways of doing this like partitioning the disk for separate aspects of the filesystem or putting 30gb of music under a separate unique partition?
The generic way is to save all your personal files in /home/YOUR_USER_NAME. You can certainly makes as many directories as you want to further categorize your files. I personally use a different disc which is mounted in a directory (/store) I made at boot up. Since I use multiple distros, this arrangement gives me access to all the common files (music, movies, documents, pictures etc) amongst various distros. My home partition contains only distro specific files.

You can refer to FHS to learn more about the file system layout.

Quote:
If I get an rpm package and unpack and './configure/make/make install' it then all of the source files are put in the right place. I'm then left with a directory for the package. Where should this live? /usr/local? I guess what I'm trying to ask is where should I download an rpm (or whatever) to before I unpack and compile? In Windows these would live in the Program Files directory under the C:\ drive.
Why would you configure/make/make install rpm packages. They come as a packaged software ready for you to install.

Tux,
 
Old 12-29-2006, 08:39 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Nitpick: When you say separate partitions under home, I think you mean directories..

To me, there are very few reasons for having a lot of different partitions. The obvious reason for /home being on its own partition is so you can back it up separately and also re-install the OS without bothering your data.

Most of the directories you can ignore.

Source code can go anywhere you want, but /home or /opt would be my choices.
 
Old 12-29-2006, 09:38 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
There are a few standard partitions I make, almost all those choices are based on mount options. Like /tmp and /var (which are usually mounted noexec and nosuid) or /usr (which is mounted ro). Since I need to write and allow execution from home directories, /home is mounted nosuid and is also kept alone for ease of backup.

There's some black-magic involved with picking sizes of partitions, though. So it's often easier for most people to have just a / and a /home.

I wouldn't say one is more efficient than the other.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Processor - How to utilize it efficiently? bence8810 Linux - General 6 10-15-2006 03:12 PM
how to compute set intersection efficiently? George2 Programming 2 06-01-2006 07:21 AM
How to use slapt-get efficiently? MX_Unforgiven Slackware 3 03-04-2006 02:38 PM
vpopmail:- How can we efficiently use uid & gid amit_28oct Linux - Networking 4 09-30-2004 01:02 AM
How can I efficiently play a sound (under Linux) JonnyW247 Programming 4 07-14-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:55 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