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've seen systems set up with the hard disk(s) set up in many different partitions. For example, a separate partition being used for /usr, /tmp, /usr/local, ....
I've also seen one partition used.
Personally, I prefer the single partition method. What sort of problems might I encounter with this approach? ...Why would I want separate partitions?
It depends on what you are doing. For example, on a server, /var can fill up with a lot of log messages so I would use a seperate /var partition so / doesn't get filled up as that can bring the server down. In a multiuser environment, I might make a seperate /home partition just to ease certain backup and maintainance tasks. But for a single user not running a server, I see nothing wrong with having just a root and a swap partition.
At minimum, have a separate /home partition. Personally, I use about 4 separate ones for my multi-user (family) PC, but that only because I like to set it up like a 'professional' workstation.
The most important reason for maintaining /home separately is that in case of a hard drive failure, when you don't have a fresh backup (never happen, right?), there is a good chance that your /home partition will still be readable, and therefore rescuable. It's easy enough to reinstall an OS ... data? not so easy. I do the same thing on my Windows machines. 12 gigs or so for OS and programs, and a separate partition for data. Has saved my butt 3 or 4 times over the years.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.