[SOLVED] Partitioning recommendation - 40 GB HDD - First Build
Linux From ScratchThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.