Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
many years ago, I installed Ubuntu on a PC. The PC still works fine and is very fast. I'm very happy to use *nux on this PC.
Since in this year I am studying and learning Linux (regardless of distribution), I realized the importance of the structure of the file system.
When I installed Ubuntu I created only the root partition and the swap partition. Now I would like to renovate the structure, creating the partition of / home / var etc ... Obviously without losing data and configurations. In practice, I would like to redesign the current file system that has only the root partition. Doing this kind of operation is this possible? If so, how can I do?
It may be possible to repartition your current installation, but it would be a mighty hassle! The only place I have seen instructions for this sort of thing (in that case, adding a /home partition) was on:
It would be easier, and certainly more useful in a practical sense, to reinstall and partition as you wish to begin with. Save your data on a thumb drive, and then there is this for apps:
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Don't unless your goal is top become proficient in disk repartitioning.
For the file system structure it doesn't matter in the least on which partition a certain directory resides. If you change your partition scheme, your partition scheme is changed. But for the OS and for the user the file system structure has not changed.
If you insist on having separate /home /var and /usr partitions I can recommend to install a second disk. Create 3 partitions, create a file system, copy the contents of the old /home, /var and /usr/ Then mount these 3 partitions under the old /home, /var and /usr and you are done.
This is one partitioning scheme. There is no standard, altough it is used often. Some schemes only put /home on a different partition (smart). Some others create what I outlined above, and add a partition for /tmp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.