Friday 16 August 2019

linux - Why create many partitions?


I have noticed that when installing Ubuntu some people create multiple partitions for directories. Like one for root, one for home, one for boot. What is the advantage to doing this over installing them all on one partition, assuming there is only one hard drive?



Answer



There are several reasons:



  1. System robustness. If you have /home on a separate partition from /, then a regualr user can't fill up the / filesystyem, making it unusable for the rest of the system.

  2. Backups. It makes it easier to back up entire partitions, and to back up on different schedules. For instance, you might only need to do weekly backups of the system partition, but nightly backups of the /home filesystem

  3. System installs. You can have the same /home filesystem mounted by several different system images. And you can delete and rebuild / with out doing a backup/restore of /home or /local

  4. Disk optimization. Not as much of an issue with todays fast drives, but it used to be common practice to put the system filesystem on the inside tracks of the disk to speed up access

  5. Using multiple drives. Before the common availability of large drives, it was common to have little room on the system drive. So a separate drive was used for /home.

  6. NFS. When sharing data across multiple systems, it is common to do it on a filesystem basis.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...