个人工具

UbuntuHelp:Partitioning

来自Ubuntu中文

跳转至: 导航, 搜索

This page is intended to collect and update information the various guides that have been made about partitioning. For an overview of the issues and caveats related to partitioning, multi-OS systems, file-system reading, and file sharing, see Partitioning issues.

Why Have Separate Partitions

There are several instances that one would want multiple partitions for your Ubuntu install. Each one offers specific benefits that will be outlined below. You are probably familiar with swap being a separate partition, since every ubuntu install defaults to that. In order to understand why you would want to separate out partitions in general, you need to have a basic understanding of the linux filesystem. That webpage does provide a basic overview of the whole filesystem, but it is still more than you need to know. Basically, each mount point serves a certain purpose, and by placing different mount points on separate partitions, you can treat the data there differently from the rest of /. This becomes clearer as you look at individual examples, so hopefully it becomes clearer as you read each section of this guide. The most common mount points (in descending order) to have separate partitions for are swap, /home, and /boot.

Swap

Swap partitions allow you to use some of your harddrive space as RAM. Swap prevents your computer from crashing when you run out of RAM space, and additionally, allows the RAM to be used efficiently in those situations. Click here for much more info on swap.

/home

The /home mount point is where all the individual user's settings are saved. This is the most common partition to setup, and move ones files over, after one has already installed Ubuntu. As such, several guides have been written on how to do this, going through each step of creating a partition, moving the files, and changing your fstab. Click here to find more information on /home, and a listing of these guides.

/boot (or maybe /boot/grub)

The /boot mount point is where the files to boot are stored, and is also the location where GRUB is installed. (GRUB is what allows multiple OS's to boot.) GRUB does not fully support itself being installed multiple times, on different partitions. So, having a dedicated /boot partition can make it easier to run multiple installs of Ubuntu (or other distributions of GNU/Linux). Click here to find more information on separate /boot partitions. https://help.ubuntu.com/community/DiskSpace https://help.ubuntu.com/community/forum/installation/DiskSpace https://help.ubuntu.com/8.04/switching/installing-partitioning.html https://help.ubuntu.com/community/forum/installation/DiskSpace http://www.tuxfiles.org/linuxhelp/fstab.html