个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/WindowsDualBoot}} {{Languages|UbuntuHelp:WindowsDualBoot}} '''If Windows isn't already installed, install it first. If you leave space for Ubuntu ...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/WindowsDualBoot}}
 
{{From|https://help.ubuntu.com/community/WindowsDualBoot}}
 
{{Languages|UbuntuHelp:WindowsDualBoot}}
 
{{Languages|UbuntuHelp:WindowsDualBoot}}
'''If Windows isn't already installed, install it first. If you leave space for Ubuntu at this step you don't have to resize your NTFS partition later.'''
 
  
=== WIndows Vista notes ===
+
If Windows isn't already installed, install it first. If you leave space for Ubuntu at this step you don't have to resize your NTFS partition later.
''' Apparently windows Vista can shrink it's own partition without the need to use third-party software.  See [http://vistarewired.com/2007/02/16/how-to-resize-a-partition-in-windows-vista/ this link]. '''
+
  
'''If you are running Windows Vista, shrink down your partition that way, and then the ubuntu installer will default to using the FREE SPACE you just created.'''
+
=== Windows Vista notes ===
 +
==== Partitions resizing ====
 +
Windows Vista can shrink its own partition without the need to use third-party software.  See [http://vistarewired.com/2007/02/16/how-to-resize-a-partition-in-windows-vista/ this link]. If you are running Windows Vista, shrink down your partition through that method, and then boot Ubuntu. The Ubuntu installer will use the free space you created.
 +
==== Master boot record and boot manager ====
 +
Windows Vista may stop your GRUB - Boot manager from reaching (booting ) your Ubuntu installation, when for any reason you try to repair Boot on MBR (Master Boot Record) on your Bootable HDD (Hard Disk Drive). To avoid such a mess many of you may opt to gracefully let Vista have the MBR, and its boot manager should then point to boot partition of your Ubuntu. Windows Vista no more boots through boot.ini and ntdetect.com and ntldr. Instead a Boot folder stores all data for its new Boot Manager to load, Windows Vista OS ships with an command line utility called bcdedit.exe, used with administrator credentials of course. You may want to read [http://technet.microsoft.com/en-us/windowsvista/aa905126.aspx here] about it.
  
 +
Using a command line utility always has its learning curve, so a more productive and better job can be done with a free utility called [http://neosmart.net/dl.php?id=1 EasyBCD], developed and mastered in during the times of Vista Beta already.
  
=== Resizing Partitions Using the Ubuntu Installer ===
+
=== Back up your existing PC ===
Notes: There is an extremely helpful, detailed explanation of using the versatile 'Alternate' CD to be found [http://users.bigpond.net.au/hermanzone/p3.htm here].  
+
While the Ubuntu installer is very safe and can reliably partition your hard disk to allow you to dual boot, it may be a good idea to be ensure that you are able to restore your Windows installation before you try to install Ubuntu.
For using the faster and more popular Live CD installer with GParted, here are two guides, [http://www.psychocats.net/ubuntu/installing.html here] and [http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu here]. Additionally, note that though they're more relevant to the currently distributed version of Ubuntu, they're external links so that they're not 'officially' part of the "official" Ubuntu documentation; follow at your own risk.
+
 
 +
==== Backing up your data ====
 +
Although this may seem obvious, do backup your important data files to another media before attempting a dual-boot install. Many backup solutions exist for Windows users, but the easiest one may be to just create as many CDs or DVDs with copies of your data as required. Another way is by plugging in a USB key or external storage with enough space.
 +
 
 +
==== Backing up your operating system - using recovery tools ====
 +
''Have your recovery CD or DVD handy'' - Most systems which are delivered with Windows already installed also come with some sort of recovery or re-installation disk. There is a recent tendency for companies to try to save money and not ship such a disk. Instead, they provide you a hidden partition on which there is a recovery tool and an image of the pre-installed system.
 +
 
 +
If you are buying a new computer and intend on dual-booting, perhaps it would be a good idea to inquire if you can get a Windows install or recovery media (CD or DVD), if one is not provided by default. The only solution is to telephone your vendor and ask for a proper CD or DVD, which you are normally entitled to.
  
And with that...
+
There is no mention in the Windows End User Licence Agreement (EULA) of the partitioning of the hard drive(s) being against it. Just because the tool they provide for system restore is not adequate does not mean you are prohibited from using another tool.
  
* Boot into Windows and backup any valuable documents/photos etc. onto removable media such as CD-R/DVD-R.
+
According to the Windows EULA, you are entitled to a backup copy of your OS.  While your vendor is not really obliged to provide you with one, having such image tools pre-installed on your computer in no way prohibits you from obtaining a proper backup of your installation cd.  You can remove the restore-image tools from your computer at any time, although Ubuntu can happily be installed alongside them and keep them intact.
* Run the Windows defragmentation tool on C:
+
 
 +
The problem with that is if your partition table becomes corrupt, or if you have hardware problem with your disk, recovery from an internal partition is not an option.
 +
 
 +
''Example request for Windows OS CD / DVD recovery media''
 +
 
 +
You:
 +
"I am about to install Ubuntu linux and that will change my partition table.  I was not given an OS install disk with my system, but a system restore program which is on a hidden partition.  If, for some reason, the PC restore tool is no longer able to find the image partition, I would not be able to restore my system.  The system restore tools that came with my system are not adequate for my needs.  I need an operating system disk.  Would you send me one?"
 +
 
 +
PC manufacturer rep:
 +
"Sure, we'll send one out to you.  It should take two or three days for you to receive it."
 +
 
 +
==== Getting recovery media - contact information  ====
 +
* [http://support.dell.com/support/topics/global.aspx/support/dsn/en/document?c=us&cs=19&docid=287034&l=en&s=dhs&redirect=1#7 Dell Operating System (OS) Recovery CD Creation and Manual Operating System Reinstall]
 +
* [http://support.dell.com/pcrt Other related links and information for Dell owners]
 +
* [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4M7HWZ How can I get a Product Recovery CD or DVD ?]  - for Lenovo owners
 +
* [http://www.mydigitallife.info/2006/01/18/ibm-lenovo-thinkpad-recovery-cd/ Someone's experience getting recovery CDs from IBM for a Thinkpad]
 +
* [http://h10025.www1.hp.com/ewfrf/wc/genericDocument?cc=us&docname=bph07143&lc=en Obtaining a Windows Recovery CD or DVD set] - for HP and Compaq Desktop PCs owners
 +
 
 +
=== Beginning Ubuntu Installation ===
 +
 
 +
* Boot into Windows or using an Ubuntu Live CD and [[head-009b592d724f498a1433d410f28bdc042a486f05 backup]] any valuable documents/photos etc. onto removable media such as CD-R/DVD-R.
 +
* Run the Windows defragmentation tool on C: (My Computer, Right click on drive, Properties, Tools, Defragment Now)
 
* Download and burn, or order a CD
 
* Download and burn, or order a CD
*** [http://www.ubuntulinux.org/download/ List of Download Mirrors]
+
*** Download Ubuntu iso from [http://www.ubuntulinux.org/download/ List of Download Mirrors] and create the Ubuntu CD : https://help.ubuntu.com/community/BurningIsoHowto
*** [http://shipit.ubuntulinux.org/ Order Ubuntu CDs] (currently free!)
+
*** Or [http://shipit.ubuntulinux.org/ Order Ubuntu CDs] (currently free!)
 
* Once you have the CD, insert it into your CD-ROM drive and reboot your PC.
 
* Once you have the CD, insert it into your CD-ROM drive and reboot your PC.
 
*** If the computer does not boot from the CD (eg. Windows starts again instead), check your BIOS settings and fix as appropriate.  
 
*** If the computer does not boot from the CD (eg. Windows starts again instead), check your BIOS settings and fix as appropriate.  
 
* If successfully booted from CD, the Ubuntu logo will be displayed on the screen. Press Enter to continue.
 
* If successfully booted from CD, the Ubuntu logo will be displayed on the screen. Press Enter to continue.
* Follow the prompts.
+
* Follow the prompts until you are asked this question: "How do you want to partition the disk ?".
* The installer will then detect your hard drives and load the disk partitioner.
+
 
** Choose "Manually edit partition table"
+
=== Resizing Partitions Using the Ubuntu Installer ===
 +
 
 +
==== Automatic partitioning ====
 +
* Choose the First Option (It should be something like: "Resize IDE1 master, partition #1 (hda1) and use freed space").
 +
* Specify the size of the new partition as a percentage of your entire hard disk.
 +
* Click on "Forward".
 +
* continue to [https://help.ubuntu.com/community/WindowsDualBoot#head-6852d2e9b3e03d350a4271b58e3bdea4bbe81ad8 Finishing Ubuntu Installation]
 +
 
 +
==== Manual partitioning ====
 +
 
 +
* Choose "Manually edit partition table"
 
**** Listed will be your current partitions
 
**** Listed will be your current partitions
** Select the partition you want to resize and press Enter.
+
* Select the partition you want to resize and press Enter.
** Select "Size:", press Enter.
+
* Select "Size:", press Enter.
** Select Yes, press Enter.
+
* Select Yes, press Enter.
** Type in a new size in Gigabytes for your partition, it's recommended you free up AT LEAST 10 GB of free space for your Ubuntu install. Press Enter when happy with your changes. It may take some time to apply the changes.
+
* Type in a new size in Gigabytes for your partition, it's recommended you free up AT LEAST 10 GB of free space for your Ubuntu install. Press Enter when happy with your changes. It may take some time to apply the changes.
** Create a swap partition of around 500 MB.
+
* Create a swap partition of at least your amount of RAM (if you don't know, 2000 MB is a good value).
** Create a partition for your Ubuntu installation, at least 10 GB.
+
* Create a partition for your Ubuntu installation, at least 10 GB.
** Select "Finish partitioning and write changes to disk".
+
* Select "Finish partitioning and write changes to disk".
 +
 
 +
=== Finishing Ubuntu Installation ===
 +
 
 
* Finish installing your Ubuntu system.
 
* Finish installing your Ubuntu system.
 
* On reboot, remove your Ubuntu cdrom from the cdrom drive, you should be presented with a list of operating systems to boot. Ubuntu should have automatically detected your Windows installation and added an option to boot it on this screen.
 
* On reboot, remove your Ubuntu cdrom from the cdrom drive, you should be presented with a list of operating systems to boot. Ubuntu should have automatically detected your Windows installation and added an option to boot it on this screen.
  
 
=== Issues with Windows XP and NTFS  ===
 
=== Issues with Windows XP and NTFS  ===
 
'''Note:''' most current Linux distributions, including Ubuntu, do not support write-access to NTFS partitions; only read access is supported. Write-access is available through commercial packages or in some experimental open-source packages which may be risky to use. See [[UbuntuHelp:NTFSReadWrite]] for more info.
 
  
 
Although the Ubuntu installer does now include support for resizing NTFS partitions, it is not 100% effective. If you try the above procedure and have no luck, try the following alternative method:
 
Although the Ubuntu installer does now include support for resizing NTFS partitions, it is not 100% effective. If you try the above procedure and have no luck, try the following alternative method:
第60行: 第102行:
 
** Reboot and install Ubuntu into the free space.
 
** Reboot and install Ubuntu into the free space.
  
=== No Windows CD? ===
+
=== External howtos ===
 
+
they're external links so that they're not 'officially' part of the "official" Ubuntu documentation; follow at your own risk.
While the Ubuntu installer is very safe and can reliably partition your hard disk to allow you to dual boot, it may be a good idea to be ensure that you are able to restore your Windows installation before you try to install Ubuntu.
+
* [http://users.bigpond.net.au/hermanzone/p3.htm Install Dual boot For Ubuntu 'Feisty Fawn 7.04 with Alternate CD].  
 
+
* [http://neosmart.net/wiki/display/EBCD/Linux Dual-Booting Ubuntu and Vista with EasyBCD]
Most systems which are delivered with Windows already installed also come with some sort of recovery or re-installation disk.  There is a recent tendency for companies to try to save money and not ship such a disk.  Instead, they provide you a hidden partition on which there is an image of the pre-installed system.  A tool to re-write that image to disk is provided.
+
* [http://neosmart.net/wiki/display/EBCD/Ubuntu Step-By-Step Screenshot Tutorial to set-up an Ubuntu + Vista dual-boot]
 
+
* [http://www.ehomeupgrade.com/entry/2622/how-to_dual-boot_ubuntu How-To: Dual-Boot Ubuntu 6.06 (Dapper) Linux Desktop Along Side Windows XP].  
The problem with that is if your partition table becomes corrupt, or if you have hardware problem with your disk, recovery is not an option.
+
 
+
Example:
+
<pre><nowiki>
+
"Your new computer does not require an operating system CD or drivers CDs.  Instead, if you ever need to reinstall your software, use one of the following methods:
+
 
+
'snip'
+
support.dell.com/pcrt
+
 
+
What Solutions Are Available to Me if I Do Not Have My Microsoft® Windows® XP Operating System CD or the Dell Dimension™ or Inspiron™ Driver CDs?
+
 
+
 
+
Table of Contents
+
1. Run System Restore in Microsoft® Windows® XP.
+
2. Use the Dell DataSafe™ Backup
+
3. Use Norton Ghost 10
+
4. Run Dell™ PC Restore by Symantec to Restore Factory Default Software Settings
+
5. Dell OS Recovery CD Creation and Manual Operating System Reinstall"
+
</nowiki></pre>
+
 
+
The fifth option "Dell OS Recovery Cd creation" tool is no longer available.
+
 
+
The solution is to telephone your vendor and ask for a proper CD. My experience with Dell was pleasant.  It took less than ten seconds for the customer service representative to offer to send me such a CD for free.  They must get asked for that a lot.
+
 
+
<pre><nowiki>
+
me: "I am about to install Ubuntu linux and that will change my partition table.  I was not given an OS install disk with my system, but a system restore program which is on a hidden partition.  If, for some reason, the PC restore tool is no longer able to find the image partition, I would not be able to restore my system.  The system restore tools that came with my system are not adequate for my needs.  I need an operating system disk.  Would you send me one?"
+
 
+
Dell Representative: (clickety click sounds for a few seconds) "Sure, we'll send one out to you. It should take two or three days for you to receive it."
+
</nowiki></pre>
+
 
+
I could not find any mention of the partitioning of the hard drive(s) being against any EULA.  Just because the tool they provide for system restore is not adequate does not mean you are prohibited from using another tool.
+
 
+
If you are buying a new computer and intend on dual-booting, perhaps it would be a good idea to inquire if you can get an OS install CD, if one is not provided by default.
+
 
+
According to the Dell EULA as well as the Microsoft EULA, you are entitled to a backup copy of your OS. While your vendor is not really obliged to provide you with one, having such image tools pre-installed on your computer in no way prohibits you from obtaining a proper backup of your installation cd. You can remove the restore-image tools from your computer at any time, although Ubuntu can happily be installed alongside them and keep them intact.  
+
  
 
----
 
----

2007年11月21日 (三) 17:22的版本


If Windows isn't already installed, install it first. If you leave space for Ubuntu at this step you don't have to resize your NTFS partition later.

Windows Vista notes

Partitions resizing

Windows Vista can shrink its own partition without the need to use third-party software. See this link. If you are running Windows Vista, shrink down your partition through that method, and then boot Ubuntu. The Ubuntu installer will use the free space you created.

Master boot record and boot manager

Windows Vista may stop your GRUB - Boot manager from reaching (booting ) your Ubuntu installation, when for any reason you try to repair Boot on MBR (Master Boot Record) on your Bootable HDD (Hard Disk Drive). To avoid such a mess many of you may opt to gracefully let Vista have the MBR, and its boot manager should then point to boot partition of your Ubuntu. Windows Vista no more boots through boot.ini and ntdetect.com and ntldr. Instead a Boot folder stores all data for its new Boot Manager to load, Windows Vista OS ships with an command line utility called bcdedit.exe, used with administrator credentials of course. You may want to read here about it.

Using a command line utility always has its learning curve, so a more productive and better job can be done with a free utility called EasyBCD, developed and mastered in during the times of Vista Beta already.

Back up your existing PC

While the Ubuntu installer is very safe and can reliably partition your hard disk to allow you to dual boot, it may be a good idea to be ensure that you are able to restore your Windows installation before you try to install Ubuntu.

Backing up your data

Although this may seem obvious, do backup your important data files to another media before attempting a dual-boot install. Many backup solutions exist for Windows users, but the easiest one may be to just create as many CDs or DVDs with copies of your data as required. Another way is by plugging in a USB key or external storage with enough space.

Backing up your operating system - using recovery tools

Have your recovery CD or DVD handy - Most systems which are delivered with Windows already installed also come with some sort of recovery or re-installation disk. There is a recent tendency for companies to try to save money and not ship such a disk. Instead, they provide you a hidden partition on which there is a recovery tool and an image of the pre-installed system.

If you are buying a new computer and intend on dual-booting, perhaps it would be a good idea to inquire if you can get a Windows install or recovery media (CD or DVD), if one is not provided by default. The only solution is to telephone your vendor and ask for a proper CD or DVD, which you are normally entitled to.

There is no mention in the Windows End User Licence Agreement (EULA) of the partitioning of the hard drive(s) being against it. Just because the tool they provide for system restore is not adequate does not mean you are prohibited from using another tool.

According to the Windows EULA, you are entitled to a backup copy of your OS. While your vendor is not really obliged to provide you with one, having such image tools pre-installed on your computer in no way prohibits you from obtaining a proper backup of your installation cd. You can remove the restore-image tools from your computer at any time, although Ubuntu can happily be installed alongside them and keep them intact.

The problem with that is if your partition table becomes corrupt, or if you have hardware problem with your disk, recovery from an internal partition is not an option.

Example request for Windows OS CD / DVD recovery media

You: "I am about to install Ubuntu linux and that will change my partition table. I was not given an OS install disk with my system, but a system restore program which is on a hidden partition. If, for some reason, the PC restore tool is no longer able to find the image partition, I would not be able to restore my system. The system restore tools that came with my system are not adequate for my needs. I need an operating system disk. Would you send me one?"

PC manufacturer rep: "Sure, we'll send one out to you. It should take two or three days for you to receive it."

Getting recovery media - contact information

Beginning Ubuntu Installation

  • Boot into Windows or using an Ubuntu Live CD and head-009b592d724f498a1433d410f28bdc042a486f05 backup any valuable documents/photos etc. onto removable media such as CD-R/DVD-R.
  • Run the Windows defragmentation tool on C: (My Computer, Right click on drive, Properties, Tools, Defragment Now)
  • Download and burn, or order a CD
  • Once you have the CD, insert it into your CD-ROM drive and reboot your PC.
      • If the computer does not boot from the CD (eg. Windows starts again instead), check your BIOS settings and fix as appropriate.
  • If successfully booted from CD, the Ubuntu logo will be displayed on the screen. Press Enter to continue.
  • Follow the prompts until you are asked this question: "How do you want to partition the disk ?".

Resizing Partitions Using the Ubuntu Installer

Automatic partitioning

  • Choose the First Option (It should be something like: "Resize IDE1 master, partition #1 (hda1) and use freed space").
  • Specify the size of the new partition as a percentage of your entire hard disk.
  • Click on "Forward".
  • continue to Finishing Ubuntu Installation

Manual partitioning

  • Choose "Manually edit partition table"
        • Listed will be your current partitions
  • Select the partition you want to resize and press Enter.
  • Select "Size:", press Enter.
  • Select Yes, press Enter.
  • Type in a new size in Gigabytes for your partition, it's recommended you free up AT LEAST 10 GB of free space for your Ubuntu install. Press Enter when happy with your changes. It may take some time to apply the changes.
  • Create a swap partition of at least your amount of RAM (if you don't know, 2000 MB is a good value).
  • Create a partition for your Ubuntu installation, at least 10 GB.
  • Select "Finish partitioning and write changes to disk".

Finishing Ubuntu Installation

  • Finish installing your Ubuntu system.
  • On reboot, remove your Ubuntu cdrom from the cdrom drive, you should be presented with a list of operating systems to boot. Ubuntu should have automatically detected your Windows installation and added an option to boot it on this screen.

Issues with Windows XP and NTFS

Although the Ubuntu installer does now include support for resizing NTFS partitions, it is not 100% effective. If you try the above procedure and have no luck, try the following alternative method:

    • Boot into Windows and backup any valuable documents/photos etc onto removable media such as CD-R/DVD-R.
    • Run the Windows defragmentation tool on C:
    • Download the System Rescue CD ISO image (100 MB; has several very useful software tools).
    • Burn the ISO image to a CD.
    • Boot from the CD and hit Enter when you see the message "Boot:".
    • When you get a command prompt, enter:
run_qtparted 
    • Select your disk on the graphical screen (most likely /dev/hda).
    • Select your NTFS partition to be resized (most likely /dev/hda1).
    • Right click with the mouse and choose Resize.
    • Set the new partition size.
    • Commit your changes in the File -> Commit menu. If your keyboard and mouse stop responding during resizing then please just be patient.
    • Once your changes are saved, remove the System Rescue CD and insert your Ubuntu installation CD.
    • Reboot and install Ubuntu into the free space.

External howtos

they're external links so that they're not 'officially' part of the "official" Ubuntu documentation; follow at your own risk.