LinuxQuestions.org
Review your favorite Linux distribution.
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 04-04-2008, 02:25 AM   #1
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Rep: Reputation: 15
Need of different partitions


Hi
What is the reason for giving different partitions for the different directories like /usr /tmp /home ? What is the advantage of that ?

Thanks
in Advance...
 
Old 04-04-2008, 02:39 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
For a home desktop system you really only need 3 partitions:
/ (root) for your operating system and programs
swap for the swap file. This is analogous to virtual memory in Windows.
/home This is for your personal data files.

The advantage of having a separate /home is so when you reinstall or upgrade your distro your personal data remains safe since it is on a separate partition. If you use more than one distro they can all share the same /home partition. (You should use different user names for each distro so the hidden .config files in /home don't conflict if you share a /home between several distros).
Some people like to have a separate /usr (for their programs) or /var (for log files and package caches in /var/log/packages, or for server logs). For a basic desktop system /root, swap, and home is just fine.

Last edited by tommcd; 04-04-2008 at 02:44 AM.
 
Old 04-04-2008, 11:48 PM   #3
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Original Poster
Rep: Reputation: 15
Thankyou for the information..

Is there any advantages when using different partitions ........
 
Old 04-05-2008, 12:39 AM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
One advantage for a separate var partition is for security. Some hackers will try to cause your logging to fill up your harddrive with logs. On a separate partition, only that partition will get filled up.

A disadvantage to so many partitions is either wasted disk space or setting the partition too small.
 
Old 04-05-2008, 02:22 AM   #5
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Original Poster
Rep: Reputation: 15
Is there any advantage for giving a seperate partition for the /tmp ?
 
Old 05-21-2008, 11:01 AM   #6
kssuhesh
LQ Newbie
 
Registered: Aug 2007
Location: Kochi
Distribution: Mandriva
Posts: 24

Original Poster
Rep: Reputation: 15
Hi to all

Me have one more doubt about the partition !!

I installed Mandriva on my system and give 10 GB for '/' and give seperate partition for /home
now my / partition is almost full in it remains only some MB. so that I cant install more things to my system. Is there any way to increase the partition size. I hae an extra partition for saving my personal data. but that partition is not used now. Please anyone please help me ...

Regards
Suhesh K.S.
 
Old 05-21-2008, 11:27 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
That is precisely why I opt for a single partition for each Linux. /boot, /home, /usr etc are just subdirectories inside.

To resize a partition use gparted.
 
Old 05-23-2008, 10:01 PM   #8
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Quote:
Originally Posted by kssuhesh View Post
Hi to all

Me have one more doubt about the partition !!

I installed Mandriva on my system and give 10 GB for '/' and give seperate partition for /home
now my / partition is almost full in it remains only some MB. so that I cant install more things to my system. Is there any way to increase the partition size. I hae an extra partition for saving my personal data. but that partition is not used now. Please anyone please help me ...

Regards
Suhesh K.S.
A couple options however do it at your own risk chances are high you will not be able to reboot:

First backup everything!


Do you have any unused disk space?
One possibility would be to create another partition and symlink it to your home directory.

You could try resizing and moving partitions but most likely you will mess things up. Your installed os will not boot. If you do change partition sizes, I am not sure about grub boot loader, but you could try using a live disk and chroot <access point to the root partition on your hd> lilo

It might be worth a try. The worst thing would be to reinstall the software.
 
Old 05-24-2008, 09:01 PM   #9
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by kssuhesh View Post
Hi to all

Me have one more doubt about the partition !!

I installed Mandriva on my system and give 10 GB for '/' and give seperate partition for /home
now my / partition is almost full in it remains only some MB. so that I cant install more things to my system. Is there any way to increase the partition size. I hae an extra partition for saving my personal data. but that partition is not used now. Please anyone please help me ...

Regards
Suhesh K.S.
Can you post the output of "du -csh /*". Run the command as root, without the quotes. How much extra stuff did you install? I just put Mandriva Sping 2008 on my laptop on a 10GB root partition, added a bunch of extra software, and it only takes up about 3GB or so.
Perhaps your /tmp or /var directories are filling up with stuff for some reason.
I have put Ubuntu, Debian, Slackware, Zenwalk, Mandriva, Fedora, Frugalware on this laptops 10GB root partition and they have never taken up more than 4-5 GB at the most.
 
  


Reply

Tags
partition



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
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
e2fsck: root partitions and ro mounted partitions Clemente Linux - General 4 11-06-2006 09:32 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM

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

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