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.
I am new in LFS project and managed to create a partition table.
I want to know if my partition table is good, i spent a lot of time for it figuring out how to do it and what to do.
It's hard to say without knowing your needs. First impression is, it's rather complicated. Please explain your choices and sizes. The act of explaining something sometimes offers new insight.
It's hard to say without knowing your needs. First impression is, it's rather complicated. Please explain your choices and sizes. The act of explaining something sometimes offers new insight.
8bit
i was told that having multiple partitions is safer in case you f*ck up your system, its more effective and organized.
I am new in LFS project and managed to create a partition table.
I want to know if my partition table is good, i spent a lot of time for it figuring out how to do it and what to do.
i will later delete host system and resize /home partition
Any tips?
I think your partition table is too complicated. There is no parctical value of that. It makes sence to create separate /boot, /home, possibly /var and swap.
Separate /usr and /opt are redundant for sure in Linux. Also, you may mount tmpfs to /tmp
Last edited by slackhater; 05-06-2021 at 03:38 PM.
I think your partition table is too complicated. There is no parctical value of that. It makes sence to create separate /boot, /home, possibly /var and swap.
Separate /usr and /opt are redundant for sure in Linux. Also, you may mount tmpfs to /tmp
so in summary i should only have /boot - 512MB, /home - ~100GB, / - 100GB, /var - ?(i don't know what is this and how it is useful), and swap?
so in summary i should only have /boot - 512MB, /home - ~100GB, / - 100GB, /var - ?(i don't know what is this and how it is useful), and swap?
/boot 512 MiB looks reasonable. For root I think it should be at least 32 GiB. 100 GiB is ok but it seems to be a lot. About /var ... it depends ... If you want to make 100 GiB for root, I believe you don't need separate /var unless your system has some narrowed and special needs. /home is the rest of the space.
Swap partition also depends on your RAM and if you want to use hibernation. If you have enough RAM and you do need hibernation, you may choose to use swap file instead of separate swap partition.
My example:
1 MiB for BIOS boot
1 GiB for /boot
64 GiB for root (I use swap file 16 GiB under root), so effective space for root is 48 GiB
The rest is /home
If your system is for personal use, having separate /var is not needed. There are scenarios if you want to make your root partition read-only, then you do need separate writable /var.
Last edited by slackhater; 05-06-2021 at 04:12 PM.
/boot 512 MiB looks reasonable. For root I think it should be at least 32 GiB. 100 GiB is ok but it seems to be a lot. About /var ... it depends ... If you want to make 100 GiB for root, I believe you don't need separate /var unless your system has some narrowed and special needs. /home is the rest of the space.
Swap partition also depends on your RAM and if you want to use hibernation. If you have enough RAM and you do need hibernation, you may choose to use swap file instead of separate swap partition.
My example:
1 MiB for BIOS boot
1 GiB for /boot
64 GiB for root (I use swap file 16 GiB under root), so effective space for root is 48 GiB
The rest is /home
If your system is for personal use, having separate /var is not needed. There are scenarios if you want to make your root partition read-only, then you do need separate writable /var.
thanks for your help, now i know how to partition my disk properly
A separate /var partition is not as silly as one might think. Here is an example...
One day my system was acting strangely. I tried to reboot and even that had problems. Finally after booting into one of the other distros, I saw the problem: something had gone wrong and had logged errors. Lots of errors. Several errors per second. During an overnight the log file filled my entire partition. That's what made everything go wonky: the "/" partition was full, so no disk writes could happen. A separate /var would have meant that /var was packed, but the system could otherwise keep running.
p.s Of course I've not followed my own advice: I've got several operating systems on the one drive and to adjust everything for separate /var partitions would just be over-complicated.
Last edited by jr_bob_dobbs; 05-09-2021 at 07:38 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.