个人工具

“UbuntuHelp:HowtoPartition”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/HowtoPartition}}
 
{{From|https://help.ubuntu.com/community/HowtoPartition}}
 
{{Languages|UbuntuHelp:HowtoPartition}}
 
{{Languages|UbuntuHelp:HowtoPartition}}
#title How to Partition
+
#title HowToPartition
If you are running Windows and would like to install Linux on your system, you must free up some space on your hard drive to contain Linux.  Changing the layout of your hard drive is called partitioning.
+
If you are running Windows and would like to install Ubuntu on your system, you must free up some space on your hard drive or install another hard drive to contain it.  Changing the layout of your hard drive or formatting a new hard drive on which to install Ubuntu is called '''partitioning'''.
The Ubuntu installer's partitioner is one of the safest ways to partition a hard disk.  However, do not use this as an excuse to not back up your important files. '''Always perform a backup before any partitioning operation.'''
+
For most people, it will be sufficient to use one of the "Guided Install" selections during installation of Ubuntu; however there are some circumstances in which manually partitioning your hard drive will be necessary.  This guide will give you a basic understanding of manually partitioning your hard drive in preparation for Linux installation, as well as manipulating your partitions after it is installed.
=== How to create space for Ubuntu ===
+
Since we are interested in Ubuntu Linux, I will be concentrating on Linux-based file systems, but since many of you will be dual booting Ubuntu with Windows, I will of necessity touch on Windows file systems as well.  I will use the Partition Editor on my Ubuntu Live CD (GPartEd in this case) as my partition editor which the Ubuntu Live CD installer uses, for my demonstrations, but much of this will apply to other partition editors as well.
There are several ways to partition a hard drive for Ubuntu. If you have data on the hard drive in partitions with free space left on them you can resize those partitions to create space for a new partition. This enables you to keep your existing data and operating system so you can install Ubuntu alongside it. If you want to dual boot Ubuntu and Windows or another Linux distribution this is what you want.
+
The Ubuntu installer's Partition Editor, as well as it's various permutations such as the GPartEd Live CD, is one of the safest ways to partition a hard disk.  However, do not use this as an excuse to not back up your important files.
You can also delete existing partitions and create new partitions in the free space for Ubuntu. This will cause you to lose any existing data but you will have more room for Ubuntu as it is the only partition on the drive.
+
<!> '''ALWAYS perform a backup before any partitioning operation.''' This is particularly important when moving a partition, or shrinking a partition from the left side.  The left side of a partition is generally where most or all of the data resides. The right side is generally free space. But it important before performing ''ANY'' partitioning operation involving already existing partitions.
=== Resizing an old partition ===
+
In addition, before performing any partition operation on an existing Windows partition, it is a very good idea to defragment that partition. Most everyone knows that Windows files tend to fragment over time, and if there is too much fragmentation present, your chances of losing or corrupting data on those partitions increase dramatically.
Install the Gnome Partition Editor and open it from the System Administration menu. As changing partitions can cause data loss you need to put your password in when prompted as a security measure. Select the disk you want to work on from the drop down menu on the right of the tool bar and unmount it (if it is mounted) by right clicking on the bar showing the drive with its partitions and selecting unmount from the drop down menu that appears.
+
And don't be fooled into thinking that you can skip defragmentation because your computer is new or you have just fresh-installed Windows. Having never fresh-installed Vista, I don't know about the Vista installer, but historically the Windows installer is very bad about fragmentation, and some of the worst fragmentation I've seen over the years is just after installing Windows, exceeded only by a Windows Upgrade.
{{http://i235.photobucket.com/albums/ee221/HJMills1388/unmountDrive.png}}
+
The following sections will give you a basic introduction to Partitioning.
You can now alter the drive. In the following screenshots I am working on an empty partition. You will probably have some data on your drive which will be shown by a pale yellow area inside the green border. You cannot resize a partition to be smaller than the yellow area.
+
------
To resize your existing partition simply right click and select "Resize/Move" from the drop down list. You will be presented with a window that allows you to drag the partition to change its size or to type in a new size. From here you can also move the partition to a different area of the drive if there is free space on either side of the partition. In the image below I have resized the Fat32 partition to about 30GB of the 80GB drive I am using.
+
[[UbuntuHelp:/PartitioningBasics|Partitioning Basics]]
{{http://i235.photobucket.com/albums/ee221/HJMills1388/resizePartition.png}}
+
[[UbuntuHelp:/CreatingPartitions|Creating Partitions]]
When you have set the size click "Resize" and then click the "Apply" button on the toolbar to make the change. It will give you a warning message about backing up any data on the drive (not just the partition you are using) which you should take heed of if you have not taken a backup already. If you have then click "Apply" and it will start resizing the drive. If it comes up with an error it may have mounted the disk automatically when it finished resizing it which prevented the disk from being checked after the resize so you may need to unmount the disk before you continue. If this occurs you will need to go into Removable Drives and Media in the System Preferences menu and stop drives being mounted automatically. You can re-enable this when you have finished partitioning.
+
[[UbuntuHelp:/ResizingPartition|Resizing A Partition]]
{{http://i235.photobucket.com/albums/ee221/HJMills1388/resizeProgress.png}}
+
[[UbuntuHelp:/ExtendedPartition|Creating An Extended Partition]]
Your partition is now resized so you are ready to add new partitions.
+
[[UbuntuHelp:/MovingPartition|Moving A Partition]]
=== Deleting an existing partition ===
+
[[UbuntuHelp:/ReformattingPartition|Reformatting A Partition]]
If you want to start with a blank drive then you can delete the partitions that are currently on the drive. '''Make sure you backup important data first.''' In the image below I have two partitions which I want to delete. Right click on the partition you wish to remove and click on delete in the drop down box. Repeat this for all the partitions you wish to remove and you will see your changes reflected in the graphical representation of the drive. When you are ready click the "Apply" button on the toolbar to make the changes.
+
[[UbuntuHelp:/DeletePartition|Deleting A Partition]]
{{http://i235.photobucket.com/albums/ee221/HJMills1388/deletePending.png}}
+
[[UbuntuHelp:/OperatingSystemsAndPartitions|Operating Systems and Primary/Extended Partitions]]
You now have an empty drive which you are ready to partition.
+
[[UbuntuHelp:/EditorsAndBackup|Editors And Backup Live CDs]]
=== Creating new partitions for Ubuntu ===
+
By default Ubuntu uses ext3 partitions. These are readable under Windows (except Vista last time I checked) using the [http://www.fs-driver.org/ FS-Driver project]. If you want a partition which can be readable by both Windows and Ubuntu without installing anything extra you will need to use Fat32.
+
To create a partition you need to right click on any unallocated space and add a new partition with the "New" option in the drop down list. From the window that appears you can select what filsystem type you want, whether it is a primary or logical partition and how large to make the partition. Here I am creating a single ext3 partition covering the whole drive.
+
{{http://i235.photobucket.com/albums/ee221/HJMills1388/addNewPartition.png}}
+
Click "Add" and then click the "Apply" button on the toolbar to add the new partition to the drive. You can create multiple partitions at once if you want and they will be checked automatically once they are created. If you have any problems then make sure that drives are not automatically mounted by unticking the relevant options in Removable Drives and Media in the System Preferences menu.
+
{{http://i235.photobucket.com/albums/ee221/HJMills1388/creatPartitionProgress.png}}
+
===  View Partition Table ===
+
To view disk usage and the partition table, go to Launch System->Administration->Disks
+
Select the Harddrive, then the Partitions tab
+
Each partition will be listed under Partition List, with disk space and mount point.
+
=== The GParted Live CD ===
+
You can download GParted, the partitioning program used in this guide, on a Live CD designed for partition editing. You can also use it to boot other partitions if you have a problem with GRUB. It is available from the [http://gparted.sourceforge.net/ GParted website].
+
=== Parted Magic RAM-boot Version ===
+
[http://partedmagic.com/ Parted Magic] also comes with GParted, but a standalone, installable version that boots and runs off RAM is also available in [http://sourceforge.net/project/showfiles.php?group_id=198821&package_id=240127 deb, exe, rpm, and sh formats] so that no CD is required to use or run it. [http://www.howtoforge.com/unetbootin_windows_ubuntu_fedora_p4 HowtoForge] has screenshots and instructions on using the Parted Magic RAM-boot approach.
+
 
----
 
----
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 17:12的版本


  1. title HowToPartition

If you are running Windows and would like to install Ubuntu on your system, you must free up some space on your hard drive or install another hard drive to contain it. Changing the layout of your hard drive or formatting a new hard drive on which to install Ubuntu is called partitioning. For most people, it will be sufficient to use one of the "Guided Install" selections during installation of Ubuntu; however there are some circumstances in which manually partitioning your hard drive will be necessary. This guide will give you a basic understanding of manually partitioning your hard drive in preparation for Linux installation, as well as manipulating your partitions after it is installed. Since we are interested in Ubuntu Linux, I will be concentrating on Linux-based file systems, but since many of you will be dual booting Ubuntu with Windows, I will of necessity touch on Windows file systems as well. I will use the Partition Editor on my Ubuntu Live CD (GPartEd in this case) as my partition editor which the Ubuntu Live CD installer uses, for my demonstrations, but much of this will apply to other partition editors as well. The Ubuntu installer's Partition Editor, as well as it's various permutations such as the GPartEd Live CD, is one of the safest ways to partition a hard disk. However, do not use this as an excuse to not back up your important files. <!> ALWAYS perform a backup before any partitioning operation. This is particularly important when moving a partition, or shrinking a partition from the left side. The left side of a partition is generally where most or all of the data resides. The right side is generally free space. But it important before performing ANY partitioning operation involving already existing partitions. In addition, before performing any partition operation on an existing Windows partition, it is a very good idea to defragment that partition. Most everyone knows that Windows files tend to fragment over time, and if there is too much fragmentation present, your chances of losing or corrupting data on those partitions increase dramatically. And don't be fooled into thinking that you can skip defragmentation because your computer is new or you have just fresh-installed Windows. Having never fresh-installed Vista, I don't know about the Vista installer, but historically the Windows installer is very bad about fragmentation, and some of the worst fragmentation I've seen over the years is just after installing Windows, exceeded only by a Windows Upgrade. The following sections will give you a basic introduction to Partitioning.


Partitioning Basics Creating Partitions Resizing A Partition Creating An Extended Partition Moving A Partition Reformatting A Partition Deleting A Partition Operating Systems and Primary/Extended Partitions Editors And Backup Live CDs