LinuxQuestions.org
Review your favorite Linux distribution.
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-20-2015, 07:02 AM   #1
Harshit_24
Member
 
Registered: Jul 2014
Location: India
Distribution: Boss, CentOS/Stella
Posts: 34

Rep: Reputation: 5
Linux partitions Size


I have 120 GB hard disk with 1 GB RAM. I need to install Linux on it with 3 partitions i.e. /, /home, swap.

I would like to know the size of the size of each of the partitions suitable for them.

I am thinking of

/ - 20 GB
swap - 2 GB
/home - Rest i.e. 98 GB.

What do you guys suggest ?

20 GB sufficient for / ?
 
Old 10-20-2015, 07:17 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
My home backup server has a 6GB root, of which it uses about 2GB. It has 4GB memory and 384MB swap which is probably a waste of space.
 
1 members found this post helpful.
Old 10-20-2015, 07:21 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Depending on the use of the machine.
Swap is good. Should be roughly the double of installed RAM. Coming with dimishing returns after 4-8 GB RAM.

If this is a Desktop System 20GB for root is plenty and also allows for some services like SQL or HTTP. This way the 98GB for home is also well sized and should be good for like 5-10 users with medium disk space usage.

In case of a server system swap the numbers of /home with /.
 
1 members found this post helpful.
Old 10-20-2015, 07:26 AM   #4
Harshit_24
Member
 
Registered: Jul 2014
Location: India
Distribution: Boss, CentOS/Stella
Posts: 34

Original Poster
Rep: Reputation: 5
Thanks for your replies. I am asking as for home user whose needs are basic softwares like libreoffice, vlc, cd writer, browser, paint, etc
 
Old 10-20-2015, 07:50 AM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
For this purpose the / might be a bit too big. If you go with a fixed partition schema aim for like 10GB so you are safe for in the future.

Just a note. If more than 2 users would work with the system at the same time the 1GB memory is really low. Also this depends heavily on the distro used.
 
Old 10-20-2015, 07:56 AM   #6
Harshit_24
Member
 
Registered: Jul 2014
Location: India
Distribution: Boss, CentOS/Stella
Posts: 34

Original Poster
Rep: Reputation: 5
I want to install BOSS Linux. As I have installed it on VMware, its installation size was 5.82 GB. Will it be different on hardware install.

10 GB is sufficient for it ?
 
Old 10-20-2015, 08:03 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Installation size will be the the same on real hardware as in the virtual machine. I would keep it at 20GB, 10GB may be not enough, if you keep in mind that this partition will not only contain the OS itself, but also the /tmp directory. If install size is 5.8 GB on a 10GB partition you will barely fit a DVD image into /tmp.
 
2 members found this post helpful.
Old 10-20-2015, 08:10 AM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
I wouldn't partition such a relatively small disk.
 
Old 10-20-2015, 08:50 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by Emerson View Post
I wouldn't partition such a relatively small disk.
I agree here. It's not as if you're protecting /home from something by your separation. Instead you're just going to cause potential problems if you run out of space in one partition over another.

To me the reason for partitioning is so that you put things like your boot partition somewhere else and it is not mounted when the system is operating, and thus you are not able to corrupt that section easily. You're always going to have /home and / (root) mounted.
 
1 members found this post helpful.
Old 10-20-2015, 11:26 AM   #10
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib." FreeBSD.
Posts: 3,223
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
Quote:
Originally Posted by Harshit_24 View Post
I have 120 GB hard disk with 1 GB RAM. I need to install Linux on it with 3 partitions i.e. /, /home, swap.

I would like to know the size of the size of each of the partitions suitable for them.

I am thinking of

/ - 20 GB
swap - 2 GB
/home - Rest i.e. 98 GB.

What do you guys suggest ?

20 GB sufficient for / ?
If you are going to have a separate partition for / then that looks perfect, especially when you consider TobiSGD's advice.

Last edited by cwizardone; 10-20-2015 at 11:29 AM.
 
1 members found this post helpful.
Old 10-20-2015, 11:53 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Emerson View Post
I wouldn't partition such a relatively small disk.
Nowadays I rarely partition any disk (except if a swap partitionis needed), BTRFS with subvolumes is much more flexible.
 
Old 10-20-2015, 06:17 PM   #12
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
LVM can do it with just any filesystem.
 
1 members found this post helpful.
Old 10-20-2015, 06:19 PM   #13
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 14.04 LTS
Posts: 230

Rep: Reputation: 65
Quote:
Originally Posted by Emerson View Post
LVM can do it with just any filesystem.
...apart from shrinking XFS ;-)
 
1 members found this post helpful.
Old 10-20-2015, 07:34 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I agree that for a small disk & at home, just go with '/' and swap.
Don't forget '/' also contains /var where all the logs go ...

If you're really into having all the GUI bells & whistles, I'd try to increase the RAM.
 
1 members found this post helpful.
Old 10-20-2015, 10:08 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by Emerson View Post
LVM can do it with just any filesystem.
I switched from LVM with ext4 to BTRFS exactly because LVM is not as flexible as BTRFS. With BTRFS you don't have to estimate the right filesystem sizes, you don't have to shrink/extend if your estimate doesn't work out, and so on.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Size of Hard Disk partitions for linux directories saurav_at_nandy Linux - Desktop 7 05-20-2013 03:43 PM
Partitions; how many and what size? managerdan Linux - Newbie 2 05-27-2005 08:07 PM
Partitions Size kopikat Linux - Newbie 1 12-24-2004 10:21 AM
Partitions size spy5600 Linux - Newbie 7 08-03-2003 11:21 AM
reducing the size of linux partitions cybergir Linux - Newbie 1 02-04-2003 04:58 PM


All times are GMT -5. The time now is 10:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration