Win7下硬盘安装Ubuntu10.10双系统
1. 事先分區
????在Win7系統里,用Acronis Disk Director Suite給ubuntu系統分4個區:
????名字:/swap
????格式:swap
????大小:3GB
?
????名字:/boot
????格式:ext3
????大小:2GB
?
????名字:/home
????格式:ext3
????大小:8GB
?
????名字:/
????格式:ext3
????大小:15GB
?
2. 下載ubuntu和相關工具
?? ?在Ubuntu官方網站上下載“ubuntu-10.10-desktop-amd64.iso”
?? ?下載網址:http://www.ubuntu.com/desktop/get-ubuntu/download
?
?? 下載最新版Grub4Dos(我所使用的版本:grub4dos-0.4.4-2009-06-20),解壓后,復制grldr, grldr.mbr兩個文件到C盤根目錄。
?? 下載網址:http://download.gna.org/grub4dos/
?
3. 配置硬盤安裝環境
?? ?下載的“ubuntu-10.10-desktop-amd64.iso”可以放在任何一個盤的根目錄下。我把它放在E:/。
?? ?從這個iso文件里,用winrar等工具,提取Casper下的vmlinuz和initrd.lz兩個文件,放到iso的同一個盤的根目錄下,比如我把它們也都放在E:/。
?? ?在這個盤的根目錄下,新建一個文本文件,命名為:menu.lst,寫入的內容:
title Install?Ubuntu 10.10
find /ubuntu-10.10-desktop-amd64.iso
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-10.10-desktop-amd64.iso locale=zh_CN.UTF-8
initrd /initrd.lz
?
4. 創建安裝啟動菜單?
開始菜單->運行->輸入CMD,命令提示符下如下操作:
bcdedit /create /d GRUB4DOS /application bootsector
命令結果應該會返回一個GUID(一串字母和數字的組合),記錄下,后面要用到這個GUID,并依次執行如下命令:
bcdedit /set {GUID} device partition=C:
bcdedit /set {GUID} path \grldr.mbr
bcdedit /displayorder {GUID} /addlast
?
5. 安裝Ubuntu10.10?
重啟,在啟動項選擇“GRUB4DOS”,再選擇“Install Ubuntu 10.10”。
進入Ubuntu桌面之后,桌面上會有兩個圖標,一個Examples,一個“安裝”。
在雙擊安裝之前,打開終端,輸入
sudo umount -l /isodevice
這一命令取消掉對光盤鏡像所在驅動器的掛載,然后進入Ubuntu 10.10的安裝。
6.刪除安裝啟動菜單?
安裝完成之后,重啟進入Windows(不要進入Ubuntu),把原來的grldr, grldr.mbr,vmlinuz,initrd.lz和menu.lst刪掉。
并刪除GRUB4DOS啟動菜單項。
a、確保以管理員身份啟動cmd窗口
b、輸入并執行命令bcdedit,查看所有的啟動菜單項。如下示例:
C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier??????????????{bootmgr}
device??????????????????partition=C:
description???????????? Windows Boot Manager
locale??????????????????zh-CN
inherit???????????????? {globalsettings}
default???????????????? {current}
resumeobject????????????{f00a81b4-9c18-11de-817f-f75094157968}
displayorder????????????{current}
????????????????????????{f00a81b3-9c18-11de-817f-f75094157968}
????????????????????????{f00a81b8-9c18-11de-817f-f75094157968}
toolsdisplayorder?????? {memdiag}
timeout???????????????? 10
Windows Boot Loader
-------------------
identifier??????????????{current}
device??????????????????partition=C:
path????????????????????\Windows\system32\winload.exe
description???????????? Windows 7
locale??????????????????zh-CN
inherit???????????????? {bootloadersettings}
recoverysequence????????{f00a81b6-9c18-11de-817f-f75094157968}
recoveryenabled???????? Yes
osdevice????????????????partition=C:
systemroot??????????????\Windows
resumeobject????????????{f00a81b4-9c18-11de-817f-f75094157968}
nx??????????????????????OptIn
Real-mode Boot Sector
---------------------
identifier??????????????{f00a81b3-9c18-11de-817f-f75094157968}
device??????????????????partition=C:
path????????????????????\grldr.mbr
description????????????GRUB4DOS
其中倒數第二條記錄正是需要刪除掉的,它的ID號是{f00a81b3-9c18-11de-817f-f75094157968}。
c、輸入并執行命令bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968}
得到操作成功的提示:
C:\Windows\system32>bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968}
The operation completed successfully.
d、重啟計算機,就可以看到GRUB4DOS菜單被成功刪除!?
總結
以上是生活随笔為你收集整理的Win7下硬盘安装Ubuntu10.10双系统的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQL获取当前时间、年、月、日等
- 下一篇: (转) 一步一步学习ASP.NET 5