多重引導指的是在一台電腦上安裝多個作業系統,同時可以選擇要啟動哪個的行為,其中一種常見的包含正好兩個系統的方式叫做雙引導(雙系統)。多重引導可能需要一個自訂的啟動程式

GRUB中雙引導的UbuntuWindows Vista啟動項

用途

編輯

多重引導允許一台電腦上存在不止一個作業系統,例如你可以有一個主要的系統和一個不怎麼用的候補系統; 另外一個選擇多重引導的原因是可以研究嘗試新系統而不需徹底撤換作業系統——多重引導允許新作業系統組態所有必要的應用程式,在想要時還可以在移除舊系統前遷移數據。 一種可能的替代方式是虛擬化,此時虛擬機器監視器用來主持多個執行客戶作業系統的虛擬機器

多重引導在多個軟件應用需要不同的作業系統時也很有用。多重引導組態允許用戶們使用這台電腦上所有這樣的軟件。這經常配合諸如NTLDRWindows Boot ManagerGRUB這類能夠多重引導的啟動程式使用。軟件開發者也曾在測試或開發需要多個系統時用上多重引導。將這麼多個系統放在同一台機器上可以減少硬件開支。

技術問題

編輯

每個儲存裝置上的作業系統數量

編輯

在多重引導的計算機上,各個操作系統的可存留在其自己的儲存裝置上,或者某些儲存裝置可在在不同的分區內包含多於一個的操作系統。

硬碟分區

編輯

多系統分區的基本概念上是要分割一個磁碟以便容納多個預先計劃好的作業系統安裝。

Windows

編輯

Windows 2000/XP/2003使用NTLDR啟動程式。Windows Vista或以後的Microsoft Windows使用Windows Boot Manager開機程式。

Windows和Linux

編輯

雙引導各自出於自己分區上的Linux和Windows作業系統是一種常見的多重引導組態。除了允許對每個分區安裝之外Windows不簡化或支援多重引導設置,也不提供啟動引導器方面的選擇。儘管如此,現時大部分Linux安裝器都支援雙啟動(一般還是建議有一些分區方面的支援)。經常會有安裝程式正常執行,到了重新啟動時啟動引導器只認識兩種作業系統之一的情況。 [1]

將一個Linux啟動管理器/引導器(常常是GRUB)作為主開機紀錄指向的主要引導器有一些好處。Linux引導器常常能夠正確地找到Windows作業系統,反過來Windows作業系統不能辨識Linux安裝(也不能原生處理Linux檔案系統)。然而,在Windows Vista中,安裝服務包(或其他更新)時可能需要首先還原相應的啟動引導器。如果找不到MBR中Vista引導器中的一些檔案,SP2可能會安裝失敗。類似的問題可能在SP1[2] 或者在存在克隆的磁碟或分區時發生。[3] MBR 引導代碼可以通過System Rescue CD上的dd備份和還原。

中立MBR

編輯
已隱藏部分未翻譯內容,歡迎參與翻譯
An alternative to storing GRUB in the MBR is keeping Windows' or other generic PC boot code in the MBR, and installing GRUB or another bootloader into a primary partition other than that of Windows, thus keeping the MBR neutral.[4] Operating system selection at boot time consequently depends on the bootloader configured within the primary partition that has the boot or "active" flag set on its partition table entry, which could be a bootloader of DOS, OS/2, eComStation, Blue Lion[5] and/or BSD, in addition to Linux and/or Windows.

With the boot flag set on the Windows primary, the Windows Boot Manager can be used to chainload英語chainload another installed bootloader by employing usage of a program like EasyBCD英語EasyBCD.[6] This means the active partition's boot manager will first prompt the user for selection what OS to boot, then load another if necessary, such as GRUB, even a bootloader installed to a logical partition, and then GRUB will load the Linux kernel as it normally would were GRUB installed to the MBR.

The active partition could also be one that exists for no purpose other than choosing an operating system to boot , such as the Boot Manager that shipped with IBM's OS/2 Warp and with eComStation.

Apple Boot Camp

編輯

Boot Camp蘋果公司提供的多重引導,為基於英特爾處理器Mac系列電腦安裝Windows的服務。

參見

編輯

參考

編輯
  1. ^ http://www.tomshardware.com/answers/id-2106559/booting-problem-linux-windows-boot-loader.html[失效連結]
  2. ^ http://blogs.sun.com/pomah/entry/installing_windows_vista_service_pack[永久失效連結]
  3. ^ 存档副本. [2016-05-10]. (原始內容存檔於2019-12-06). 
  4. ^ openSUSE Bugs/grub. openSUSE Bugs/grub. 28 January 2010 [22 January 2017]. (原始內容存檔於2021-01-26). 
  5. ^ ArcaOS. Blue Lion, by Arca Noae. 13 November 2016 [22 January 2017]. (原始內容存檔於2021-02-12). 
  6. ^ How to add an entry for a Linux distribution in Windows’ boot menu. Linux BSD OS. 21 July 2012 [10 July 2016]. (原始內容存檔於2020-11-30). 

外部連結

編輯