个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的6个中间版本)
第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 to 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 (see [[UbuntuHelp:HowtoResizeWindowsPartitions|How to Resize Windows Partitions]]) or install another hard drive on which to install Ubuntu.  Changing the layout of a hard drive is called '''[[UbuntuHelp:Partitioning|partitioning]]'''. There are various [[UbuntuHelp:PartitioningSchemes|Partitioning Schemes]] that can be used to divide a hard drive.
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 [[UbuntuHelp:WindowsDualBoot#Manual_partitioning|| 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 ===
+
The Ubuntu installer's Partition Editor, as well as the commonly used [[UbuntuHelp:GParted|GParted]] partition manager, are some of the safest ways to partition a hard disk. However, it is nevertheless important to back up important files before using them.
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.
+
In addition, removing unnecessary files and defragmenting a hard drive is worthwhile before manipulating partitions, in the interest of gaining free space and reducing the time necessary for the partitioning operations.
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.
+
* [[UbuntuHelp:HowtoPartition/PartitioningBasics|Partitioning Basics]]
=== Resizing an old partition ===
+
* [[UbuntuHelp:HowtoPartition/CreatingPartitions|Creating Partitions]]
Open the Gnome Partition Editor 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.
+
* [[UbuntuHelp:HowtoPartition/ResizingPartition|Resizing A Partition]]
http://i235.photobucket.com/albums/ee221/HJMills1388/unmountDrive.png
+
* [[UbuntuHelp:HowtoPartition/ExtendedPartition|Creating An Extended Partition]]
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.
+
* [[UbuntuHelp:HowtoPartition/MovingPartition|Moving A Partition]]
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:HowtoPartition/ReformattingPartition|Reformatting A Partition]]
http://i235.photobucket.com/albums/ee221/HJMills1388/resizePartition.png
+
* [[UbuntuHelp:HowtoPartition/DeletePartition|Deleting A Partition]]
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:HowtoPartition/OperatingSystemsAndPartitions|Operating Systems and Primary/Extended Partitions]]
http://i235.photobucket.com/albums/ee221/HJMills1388/resizeProgress.png
+
* [[UbuntuHelp:HowtoPartition/EditorsAndBackup|Editors And Backup Live CDs]]
Your partition is now resized so you are ready to add new partitions.
+
=== Deleting an existing 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.
+
http://i235.photobucket.com/albums/ee221/HJMills1388/deletePending.png
+
You now have an empty drive which you are ready to partition.
+
=== 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]]

2010年5月19日 (三) 22:43的最新版本


  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 (see How to Resize Windows Partitions) or install another hard drive on which to install Ubuntu. Changing the layout of a hard drive is called partitioning. There are various Partitioning Schemes that can be used to divide a hard drive. 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. The Ubuntu installer's Partition Editor, as well as the commonly used GParted partition manager, are some of the safest ways to partition a hard disk. However, it is nevertheless important to back up important files before using them. In addition, removing unnecessary files and defragmenting a hard drive is worthwhile before manipulating partitions, in the interest of gaining free space and reducing the time necessary for the partitioning operations.