LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-24-2011, 09:56 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Why we make partitions in Linux?


Hi
I want to clear a point regarding to creating partitions when we are installing linux.normally users make / i.e root partition and /home
so some make /boot,/var,/usr,/swap and
/home
Kindly guide me technically why we make different kinds of partitions? If we doesn't make any partition what will happen? And what is the advantages of making partions.
Thanks
garden
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-24-2011, 10:13 AM   #2
Last_Sioux
Member
 
Registered: Nov 2008
Location: Belgrade
Distribution: TRIOS
Posts: 36

Rep: Reputation: 7
Maintenance!!!

Once a bug filled my /var with logs and since i didn't have separated it from /root entire system collapsed. Ever since, I have /tmp and /var separated. Use to have /usr too, but not any more cause kde4 is in /opt now. /home is must.

Last edited by Last_Sioux; 01-30-2011 at 04:37 PM.
 
1 members found this post helpful.
Old 01-24-2011, 10:15 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
For easy backup, if home is on a separate partition, you can reuse it when you reinstall.

Kind regards
 
2 members found this post helpful.
Old 01-24-2011, 10:20 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Additionally, AFAIR /boot has to be on a physical partition. If you have LVM, than I think you need to have a separate /boot. Furthermore,usually your filesystem is ext3/4, whereas swap is something completely different, so it has to be on a separate partition.
 
1 members found this post helpful.
Old 01-24-2011, 10:21 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
All you really need is two partitions. i.e / and /swap (assuming normal desktop usage etc). There are many reasons to have more then two and the following links explain the advantages and disadvantages.

http://www.cyberciti.biz/tips/the-im...artitions.html
http://en.wikipedia.org/wiki/Disk_partitioning
 
1 members found this post helpful.
Old 01-24-2011, 10:22 AM   #6
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Well good guidance.what is the purpose of /usr and /temp
Does all softwares install in /usr partion?

Last edited by gardenair; 01-24-2011 at 10:29 AM.
 
Old 01-24-2011, 10:26 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by gardenair View Post
Well i not understand what u want to say
What don't you understand?

Kind regards
 
Old 01-24-2011, 11:02 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by gardenair View Post
Well good guidance.what is the purpose of /usr and /temp
Does all softwares install in /usr partion?
The Filesystem Hierarchy Standard (FHS) answers both questions and more (the answer to your second question is "no").
 
1 members found this post helpful.
Old 01-24-2011, 01:38 PM   #9
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
Way back in the dimdarks, when a 100 MB drive was a rare and expensive beast, computers would have several small drives and needed to be able to spread the system out between them. That's why the plethora of root directories as system administrators could easily use them to mount on whatever storage they had available. The drives also tended to be slow compared to modern drives so spreading things out was a means to distribute input and output to optimize system performance.

Nowadays, with RAID, cheap gigabyte drives, SSD's, and with software ideas such as LVM and the updates for BIOS replacements and the way disk space is defined, the needs and reasons have changed. (MBR vs GPT etc)

Even a separate swap partition no longer has benefits it used to and a swap file can work as well in most circumstances.

So we have updates to boot loaders to be able to find and boot the systems in ever more complex environments. Change is rapid and that makes it a pain to keep up with it but the benefits are in such things as not having to figure out what to put where like you did way back when.

The maintenance issue described above is probably best handled by a re-install, IMHO. If you have a 10 or 20 GB root partition and a separate home, it is very easy to refresh an install with a modern Linux system, update, reconfigure, and be back where you were in only a few minutes. at least for most of us with a bit of due care.

I am looking at awe at being able to install GRUB2 on a USB memory stick and being able select a CD Image to boot that has a system with an encapsulated compressed file system - and then have that system provide a reasonable responsiveness to get things done. There is a lot going on under the sheets and it just works - but then a 16 GB memory device, USB ports, and all the other hardware is pretty incredible too (at least compared to twenty or thirty years ago).
 
1 members found this post helpful.
  


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
How make partitions on Linux? nirjharoberoi Linux - Software 7 01-18-2008 09:29 AM
How can i make NTFS partitions work on linux? maciuka Mandriva 4 04-04-2007 06:11 PM
how to make linux(centOS) use more than 1 partitions lnthai2002 Linux - General 4 02-08-2006 05:52 PM
Vmware + Win98 (Make windows see Linux partitions) Madmanator Linux - General 2 01-25-2002 08:23 AM
Can't make partitions for linux Yuuzhan Vong General 6 06-01-2001 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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