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 10-24-2004, 03:10 AM   #1
dimsun
Member
 
Registered: Oct 2004
Posts: 46

Rep: Reputation: 15
3 partitions or more


Hello world,
what's the advantage of having more partitions (i.e. /usr, /var..etc) than just having /, /home and swap??
I will be the only one using my workstation so I like to know what's the best disk partition for me??

Thank you!

dimsun time =)
 
Old 10-24-2004, 04:28 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
There are numerous advantages depending on the situation and how you use it.
Setting apart a partition for lets say /var has the advantage that an evergrowing spool file or log file can't occupy the entire disk, thus preventing a total hangup. There are alway free space for root-user to log in etc.

On a bigger networked system there are advantages like making a partition of the /usr directory and then mount it as read only to prevent malicious use to destroy anything. It also opens up the possability to export this directory using NFS so that multiple computers can share the same software without having to install it on all the machines.
 
Old 10-24-2004, 02:01 PM   #3
dimsun
Member
 
Registered: Oct 2004
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for your info. =)

I am wondering if there is any different between primary partition and logic partition?
I know that after the 4th disk partition will become logical partition, i.e.

dev/hda1 /boot
dev/hda2 /var
dev/hda3 /
dev/hda4 extend
dev/hda5 /home

Am I right that I should leave (/boot, /var, /) in the first 3 partitions (primary) and leave home directory last (logical) partition? or it doesn't really matter

dimsun time =)
 
Old 10-24-2004, 02:13 PM   #4
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
i don't know the numbers for primary partitions and logical ones. I have 5 partitions in my disk, as i first intended, to use it as a dual boot for windows too.But as ugge said. the best thing is that u can take them apart , and keep them away from bad use. (from outside..... through Internet)
 
Old 10-24-2004, 02:17 PM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The IDE standard allow 4 partitions, all of the primary.
The need for more partitions led to the idea of turning one of these primary partitions into a container for a number of logical partitions.

The primary partitions are named 1-4, hda1...
Then the logical volumes are named with numbers from 5 and up.
 
  


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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
How many partitions should I use? fishybawb Slackware - Installation 4 07-23-2004 02:53 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Partitions twinkers Linux - General 26 08-24-2003 10:51 AM
How many partitions dark_light Linux - General 7 05-08-2002 04:37 PM

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

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