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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-03-2011, 07:29 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2011
Posts: 11
Rep: 
|
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.
|
|
|
|
07-03-2011, 07:39 PM
|
#2
|
|
Member
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83
Rep:
|
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.
|
|
|
|
07-03-2011, 08:36 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2011
Posts: 11
Original Poster
Rep: 
|
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.
|
|
|
|
07-03-2011, 09:48 PM
|
#4
|
|
Guru
Registered: Mar 2008
Posts: 8,531
|
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.
|
|
|
|
07-04-2011, 03:40 AM
|
#5
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,160
|
If this is only for testing and learning LFS I would only use a swap partition and give the rest to the /-partition.
|
|
|
|
07-04-2011, 03:58 AM
|
#6
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,695
|
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.
|
|
|
|
07-04-2011, 10:58 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2011
Posts: 11
Original Poster
Rep: 
|
Thanks all.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:52 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|