Ubuntu

如何在 Ubuntu 12.04 上進行 apt-get 升級後配置 GRUB 載入程序

  • January 17, 2014

我有一個裝有 Ubuntu 12.04 的盒子,並且剛剛進行了 apt-get 升級。我看到了一個更新我的 GRUB 引導載入程序的對話框,但顯示以下消息:

The GRUB boot loader was previously installed to a disk that is no longer present,
or whose unique identifier has changed for some reason. It is important to make sure that the
installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check
again to make sure that GRUB is written to the appropriate boot devices.

If you're unsure which drive is designated as boot drive by your BIOS, it is often 
a good idea to install GRUB to all of them.

Note: it is possible to install GRUB to partition boot records as well, and some
appropriate partitions are offered here. However, this forces GRUB to use the blocklist
mechanism, which makes it less reliable, and therefore is not recommended.

GRUB install devices:
[ ] /dev/sda (3000592 MB; ST3000DM001-9YN166)
[ ] /dev/sdb (3000592 MB; ST3000DM001-9YN166)
[ ] /dev/md1 (536 MB; rescue:1)
[ ] /dev/md2 (1099510 MB; rescue:2)

我擔心選擇錯誤的選項會使我的盒子無法啟動。我沒有物理訪問權限,因為它是雲中的一個盒子。請指教!

編輯:

這是我的 /etc/fstab:

proc /proc proc defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0
/dev/md/3 /home ext4 defaults 0 0

這是我的 df -h:

Filesystem      Size  Used Avail Use% Mounted on
/dev/md2       1016G  127G  838G  14% /
udev             16G  4.0K   16G   1% /dev
tmpfs           6.3G  768K  6.3G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none             16G     0   16G   0% /run/shm
/dev/md1        496M   44M  427M  10% /boot
/dev/md3        1.7T  368G  1.3T  23% /home

僅供參考:我順利通過了。在我的設置中,我在/dev/sda和上都安裝了 GRUB /dev/sdb,它執行良好。

引用自:https://serverfault.com/questions/568064