LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-03-2011, 07:29 PM   #1
golarbol
LQ Newbie
 
Registered: Jul 2011
Posts: 11

Rep: Reputation: Disabled
Partitioning recommendation - 40 GB HDD - First Build


Hi,

I would like your advice on partitioning scheme regarding an empty 40 GB hard drive. I will use LFS lfslivecd-x86-6.3-r2160-min for the build. The computer has 2 GB of RAM. This will be the only OS on the computer. I read Chapter 2.2 but it is unclear for me. I would rather have a solid foundation (partitions) to start.

This is my first LFS.

Thanks for reading.
 
Old 07-03-2011, 07:39 PM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
The partition size and scheme depends mainly on the usage for your computer so there is not an unique solution.

For example, at home my desktop is used for development and testing of new packages so I have a 30Gb partitions for each Linux distro installed, one swap partition (2gb) used by all distros and a 100Gb /home partition used for archiving of data, files etc.

On a 40Gb HDD, I would think that something basic like 20Gb for the operating system and 18Gb for data and 1 or 2 Gb for a swap partition.

Best regards.
 
Old 07-03-2011, 08:36 PM   #3
golarbol
LQ Newbie
 
Registered: Jul 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
The partition size and scheme depends mainly on the usage for your computer so there is not an unique solution.
This is just an old computer dedicated for test.
I see a partitioning scheme here http://en.wikibooks.org/wiki/Linux_From_Scratch

If i use the same pattern like this:

Code:
Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
sda1        Boot           Primary   ext3                              1019.94   <-- boot
sda2                       Primary   swap/Solaris                      2048.10   <-- swap
sda3                       Primary   ext3                             10240.48   <-- root
sda4                       Primary   ext3                             29635.69   <-- home

Does this pattern make sense?

.

Last edited by golarbol; 07-04-2011 at 10:56 AM.
 
Old 07-03-2011, 09:48 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,772

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
I can't see a great reason to limit your home or root so I make it all one. I wouldn't even use a swap partition.
 
Old 07-04-2011, 03:40 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
If this is only for testing and learning LFS I would only use a swap partition and give the rest to the /-partition.
 
Old 07-04-2011, 03:58 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

As you already figured out, there is no default partition layout. I personally find the following a good starting point:

- swap (1 or 1.5 X memory -> 2 or 3 Gb in your case)
- /boot (100 or 200 Mb should be more then enough)
- root (rest of available space)

Swap is among these three and depending on who you ask people will agree or disagree with that. It does depend on the amount of memory you have and which applications you are going to deploy (some demand swap be present) and if you want to hibernate.

Possible extensions to the above:

- /root (2 Gb should suffice)
- /home (for one user a few [5-6] Gb should be enough)

There are more ways of splitting your partition space, but I would focus on the above.

Hope this helps.
 
Old 07-04-2011, 10:58 AM   #7
golarbol
LQ Newbie
 
Registered: Jul 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks all.
 
  


Reply

Tags
layout, lfs, partition


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
[SOLVED] Using both SSD/HDD for partitioning or is it better to just get external HDD? Switch7 Linux - Hardware 16 10-26-2009 12:23 PM
hdd partitioning deggial Linux - Newbie 4 03-05-2006 03:17 AM
Partitioning NEW HDD Thanotos Linux - Hardware 2 12-30-2005 11:35 PM
recommendation to build Slackware for PPC carboncopy Slackware 5 08-06-2003 09:10 PM
partitioning hdd Nick5449 Linux - Hardware 1 06-29-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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