default Ubuntu directories /home vs Home partition
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
default Ubuntu directories /home vs Home partition
Noob question but some confusion over directories vs partitions in a Ubuntu install.
I have a standard 4 partition setup , efi boot, root, home and swap.
But Ubuntu by default creates /home and also /root directories.
What is the difference between Ubuntu's default /home and the home partition I manually create?
What if I was also to create a 'opt' partition?
Would applications that normally install in the Ubuntu default /opt directory install instead in my opt partition?
Sorry for the confusion and thanks in advance for your feedback
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363
Rep:
Hey eco_bach ... The short answer is: partitions are lower-level sections of your hard disk, whereas the /home and /root created when you installed Ubuntu are directories on one or several of the partitions. Practically, it is easier to have certain things installed on separate partitions (especially different operating systems), whereas things like the /home directory can just as easily be installed on the same partition as your Ubuntu system (BTW, the /opt directory is not something a user should create, modify or delete).
There are advantages and disadvantages to each approach - I encourage you to read up on it for details. Swapping can be done via a fixed, separate swap partition or a swap file on your main system partition ... Same caveat as 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.