我嘗試在我的 PC 桌面上安裝 Ubuntu 13.04,但是當我重新啟動 PC 時,它總是啟動 Windows 7,而不會詢問我要運行哪個作業系統。我的電腦上有 3 個硬碟:
1:Win7 200 GB
2:500 GB 分區,其中 4 GB 交換空間、150 GB /home 和其他 GB 根目錄 (/)
3:2 TB 各種資料。
我認為引導程式已打開sda1
,並且在安裝 Ubuntu 13.04 期間我無法在該分割區上安裝開機載入程式(致命錯誤)。我該怎麼辦?
這是我的 fdisk 日誌:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders, total 398297088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdf56df56
Device Boot Start End Blocks Id System
/dev/sda1 * 63 398296937 199148437+ 7 HPFS/NTFS/exFAT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x272196e3
Device Boot Start End Blocks Id System
/dev/sdb1 2046 7815167 3906561 5 Extended
/dev/sdb2 7815168 300785663 146485248 83 Linux
/dev/sdb3 300785664 976771071 337992704 83 Linux
/dev/sdb5 2048 7815167 3906560 82 Linux swap / Solaris
答案1
您應該使用啟動修復
1 個啟動 live CD / USB
2 打開終端機並輸入
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair boot-sav
2b 點擊 ubuntu 圖示(左上角)並蒐索 boot,然後執行名為 Boot-repair 的應用程式
3 按照所有說明進行操作並在出現提示時輸入所有命令
重新啟動後,您將看到列出作業系統的 grub 選單。
答案2
F12當機器啟動時按下。選擇安裝 Linux 的磁碟。