LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-30-2004, 05:35 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question Creating partitions at install vs root+swap


How does the system work when you give just a root and swap partition vs partitioning /tmp /usr /local...etc?

In other words those partitions are "virtual" for lack of a better term when you just go root and swap... which means that there size is dynamic vs static and you don't have to worry that your, say /usr partition will run out of room if you add and more data to it because you partitioned it at only 1gig vs 3....

So is there really any good reason to manually partition them in the 1st place?
 
Old 06-30-2004, 07:25 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i always use just 2 partitons. / and swap.

here's how mounting works.
when you mount a partiton, it adds it to the root fileTree.
if you have a seperate partiton, and mount it as /tmp
whenever a program accesses /tmp/ linux will map it to the partiton mounted there.

if no partiton is mounted there, then when a program accesses /tmp linux works its way back to the next mount point it finds... which is / and puts the data in that partiton under the folder /

there is nothing virtual about it.

just sometimes there are advantages. for example.. lets say you abuse your root acount, and damamge linux badly. you need to format and re-install.
IF your /home directory, /tmp and /var directorys are all on seperate partitons, you can format your / partiton, and re-install linux without loosing your personal files, emails, program setttings OR program logs.

of course the downside to this, is not every1 had hundreds of GiG free space, and if a partiton runs out of space, re-sizeing is annoying !
 
Old 07-02-2004, 12:43 AM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
But when you partition like that... / and swap... all the other partition get bigger the more files you put in them right?
 
Old 07-02-2004, 07:49 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,424

Rep: Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556Reputation: 3556
Quote:
Originally posted by Thaidog
But when you partition like that... / and swap... all the other partition get bigger the more files you put in them right?
No, because you only have one partition. All of the files in all of the other directories including /tmp, /usr /var etc are part of the / partition. The more files you put in them the more you fill up /.

As a windows analogy think of the / root partition as c:\ and /var as c:\var, /usr as c:\usr etc. When you add files to c:\var your filling up c:\, c:\var does not get bigger.

Last edited by michaelk; 07-02-2004 at 07:53 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed in creating boot & root disk for Slackware Install bugsbunny Linux - Newbie 3 03-31-2004 07:18 AM
creating swap lynos Linux - General 6 03-27-2004 07:07 AM
Slackware 9 Creating new swap partitions after installation without destroying data MegaGeoff Linux - Newbie 1 01-18-2004 08:44 PM
Creating a swap partition thejackal13 Linux - Newbie 6 10-30-2003 07:03 PM
Creating a swap partition dsuniln Linux - Newbie 9 06-30-2003 12:18 PM

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

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