LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Partitioning recommendation - 40 GB HDD - First Build (http://www.linuxquestions.org/questions/linux-from-scratch-13/partitioning-recommendation-40-gb-hdd-first-build-889739/)

golarbol 07-03-2011 07:29 PM

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.

jhcaiced 07-03-2011 07:39 PM

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.

golarbol 07-03-2011 08:36 PM

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?

.

jefro 07-03-2011 09:48 PM

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.

TobiSGD 07-04-2011 03:40 AM

If this is only for testing and learning LFS I would only use a swap partition and give the rest to the /-partition.

druuna 07-04-2011 03:58 AM

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.

golarbol 07-04-2011 10:58 AM

Thanks all.


All times are GMT -5. The time now is 01:49 PM.