What partitioning scheme do you recommend for a desktop? I've always created three or four primary partitions -- root, swap, home, and sometimes a separate boot partition. Ubuntu's default install offers LVMs. I've never had to add additional drives or space, so it never seemed like a big deal. Whenever I do a fresh install, though, I always think there might be a better way.
|
feedback
|
|
1) root 2) swap 3) home The biggest reason to do this is that you can do anything to your Ubuntu install and it wont affect your music/videos/whatever in your home. I especially enjoy this when a upgrade to a new Ubuntu version and the install goes weird. | |||||||||||||||||||
feedback
|
|
Generally speaking, you shouldn't bother with a separate The Ubuntu installers for both the desktop CD and server/alternate CD have the ability to install over an existing system, preserving your home directory (and the local system driectories: To use this option when installing, choose the option for advanced partitioning, then select your existing In Ubuntu 10.10 we had hoped to add an option to the installer that detected when you had an existing copy of Ubuntu installed and offered to replace it with the newer version you were attempting to install (using the aforementioned functionality behind the scenes). While it did not make the final cut, it is likely to arrive in Ubuntu 11.04. As for a separate | |||||||||||||
feedback
|
|
Well, at a minimum you need a root partition and a swap partition. I highly recommend a home partition because then when you run out of space on your home partition, it won't affect your applications and more importantly, core components. I discovered this the hard way when I ran out of space on the root partition - and I couldn't even start the Gnome desktop. I had to log in through the terminal and delete some stuff :( | |||||||||||||
feedback
|
|
For server installations, best practice is to use LVM, so you can expand your storage space easily if you run out of free space. My suggestion is:
NOTE: if you use multi-user environment, it is good practice to create /home on LVM. | |||
|
feedback
|
You only really need a separate /boot partition if you are using the alternate installer to set up full disk encryption. Currently the files in /boot need to be unencrypted so the operating system can start. Generally speaking, you might add other partitions if you want to:
As suggested by Asmerito, you should consider putting all your partitions other than /boot on LVM. This will allow increased flexibility in resizing your partitions or even expanding them on to other disks. But you might not expect to require this functionality. If you use the full disk encryption in the alternate installer, it will automatically create a /boot partion, a swap partition and another partition to hold the encrypted data. This encrypted partition is then used to hold a LVM partition. This LVM partition is then used to hold all your additional partitions. Initially this is just your root partition. Hope this all helps. | |||
|
feedback
|
|
I always do a fresh install of newer versions of Ubuntu, so for me it makes sense to have a separate | |||
|
feedback
|
|
On my home server, I prefer to create / , /swap , and /var/log . Since I do run a firewall and log all activity to /var/log, creating the log as a separate partition insures that even if the logs run rampart, it won't block me from booting. | |||
|
feedback
|
|
When I first used Linux circa 1995, I used to create a bunch of partitions, /, swap, home, usr, etc etc. Now, when I use Linux, I always just make 2, root and swap, and I use lvm to resize them as needed. Caveat: I'm mainly speaking about multi-disk systems or systems with the ability to add multiple disks (a server or Linux in a VM). Edit: I've also never managed to fill a partition up, but I am the type of person who enjoys freeing disk space. | |||
|
feedback
|
|
/root, swap, /mnt/storage -- somewhere to store any media that you download. If it gets full if won't fill up root. (I guess that this is similar to the idea of making /home a separate partition.) | |||
|
feedback
|
|
on my notebook, desktop 8GB /root 2*times RAM for swap (1 GB RAM) 2 GB swap rest for /home | ||||
|
feedback
|
|
I use: primary partition: /boot = 1 GB extended partition with LVM: / = 5 GB /var = 3 GB /var/spool/cache = 2 GB ReiserFS (local squid disk cache for all my browsers) /home = +500 GB for users including a public folder (shared both locally and remotely with smb). /tmp = 128 MB (ramFS). swap = twice my RAM. I've been using this scheme for years and I'm very happy with it. Suggestions always welcomed. | |||
|
feedback
|
|
If you plan to install several distributions and want to use the same home folder you can install with a separate /home partition and use the same username for each distro. But if you are only using ubuntu there is no need to have a separate /home partiton. | |||
|
feedback
|
