LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Re-create the file system structure (https://www.linuxquestions.org/questions/linux-general-1/re-create-the-file-system-structure-4175490233/)

Joaquin 01-05-2014 11:23 AM

Re-create the file system structure
 
Hello,

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?

Thanks.

albinard 01-05-2014 05:15 PM

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:

http://www.psychocats.net/ubuntu/

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:

http://helpdeskgeek.com/linux-tips/r...esh-reinstall/

jlinkels 01-05-2014 06:15 PM

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.

jlinkels


All times are GMT -5. The time now is 10:21 AM.