windows7下硬盤安裝ubuntu14.04

windows7 + ubuntu14.04雙系統

準備軟件

1)grub4dos:度娘下載,我用的是0.4.4
2)ubuntu-14.04.2-desktop-i386.iso:ubuntu官網下載

安裝步驟

step 1

1) 解壓grub4dos-0.4.4.zip後,將grub.exe、grldr、grldr.mbr放入C盤根目錄下(win7系統盤)

2)解壓ubuntu-14.04.2-desktop-i386.iso,將ubuntu-14.04.2-desktop-i386.iso、以及ubuntu-14.04.2-desktop-i386\casper目錄下initrd.lz、vmlinuz三個文件放入C盤根目錄

3)在C盤創建menu.lst文件,內容如下

title Ubuntu14.04
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-14.04.2-desktop-i386.iso locale=zh_CN.UTF-8
initrd /initrd.lz

step 2

添加window7啓動項
windows7上使用功能更加強大的bcdedit.exe程序來管理電腦啓動項(XP上使用boot.ini文件方式),可向前兼容boot.ini。本次直接使用bcdedit.exe添加啓動項。
“開始菜單”->cmd->右鍵:選擇以管理身份運行
1)查看現有啓動項

C:\Windows\system32>bcdedit.exe /enum

2)添加新啓動項

C:\Windows\system32>bcdedit.exe /create /d "grub4dos" /application bootsector
#此處會提示項目{ID}成功創建,其中{ID}指bcdedit.exe生成的一個全局唯一ID,標示啓動項"grub4dos"

C:\Windows\system32>bcdedit.exe /set {ID} device partition=C:

C:\Windows\system32>bcdedit.exe /set {ID} path \grldr.mbr

C:\Windows\system32>bcdedit.exe /displayorder {ID} /addlast

3)查看新啓動項目

bcdedit.exe /enum

顯示結果中會增加下面一個啓動項

C:\Windows\system32>bcdedit.exe /enum

實模式啓動扇區
---------------------
標識符                  {ID}
device                  partition=C:
path                    \grldr.mbr
description             GRUB4DOS

C:\Windows\system32>

我的電腦硬盤有四個分區:C(系統盤)、D、E、F;我準備將ubuntu安裝在E盤。先通過windows7自帶磁盤管理工具刪除E盤分區,然後重啓電腦。

step 3

重啓後booter loader中選擇”grub4dos”進入grub引導,然後安進入ubuntu安裝環境
進入unbuntu安裝環境後需要注意兩點:
1)點擊桌面安裝環境上”安裝ubuntu14.04 LTS”之前,ctl + alt + t進入terminal,執行如下命令

sudo umount -l /isodevice

2)ubuntu系統自帶7步安裝流程,在第四步”安裝類型”中,選擇”其他選項”以便自己在硬盤空閒區域分區(原windows7中已刪除E盤)。
我使用具體分區如下:

大小 分區類型 文件系統 掛在節點
1G 主分區 Ex4日誌文件系統 /boot
2G 邏輯分區 swap
20G 邏輯分區 Ex4日誌文件系統 /
80G 邏輯分區 Ex4日誌文件系統 /home

step 4

安裝完成後,可通過grub引導進入ubuntu14.04或者windows7。別忘了進入windows7後刪除”grub4dos”啓動項。

C:\Windows\system32>bcdedit /delete {GUID} /f
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章