据说U910将采用grub2来作为引导装载器

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

据说U910将采用grub2来作为引导装载器

#1

帖子 wangdu2002 » 2009-06-09 22:29

在红联看到的消息,但是到下面的页面看了下,只是说明如何测试,并没有明确的说明910会采用grub2。 :em09
https://wiki.ubuntu.com/KernelTeam/Grub2Testing
1、KernelTeam/Grub2Testing(乌邦图内核小组的哥伦布2代的测试说明)

There is a desire always to ship the latest and greatest of any product; boot loaders included. However upgrading a bootloader is at best frightening and
risky. The primary bootloader for x86 platforms is currently grub. That however has not been updated since about 1996 and is getting long in the tooth.
It also does not support newer BIOS forms like EFI and it never will.

There is a replacement for grub, which has been claiming to be the replacement for it for some years (about 6 at least), grub2. Switching to this would
bring support for newer systems, internationalisation, updates and bug fixes etc.

So it's clear we would like to switch the default bootloader to grub2. It makes sense, it's the way forward, why do we not just do it? Well, does grub2
support every single machine out there? All those odd broken machines that grub supports? We do not know. That's where this page comes in.

2、Testing grub2(测试哥伦布2代)

If you are running Jaunty Jackalope or later, grub2 can be installed in parallel with, and as a chainloaded sub-bootloader of, your existing grub
installation. This allows you to boot actually with grub and then select grub2 from the menu. Then you can confirm grub2 works correctly before electing
to switch to it formally.

Even if you are only able to test in chainloaded mode that would give us some information as to the viability of grub2.

3、Before you Test(在测试之前要准备的工作)

Though it is unlikely you will have any issues we would always recommend taking precautions before attempting a bootloader update. It is recommended that
you have an up to date backup of your system before attempting this (you have backups right?). It is also recommended that you have a bootable CD or a
bootable USB disk available should you be unable to boot following the installation.

4、How to Install grub2(怎样安装哥伦布2代)

代码: 全选

sudo apt-get install grub2
At the first prompt, select OK. Next, at the "Chainload from menu.lst" prompt answer "Yes". And at the "Linux command line:" prompt just press the Enter key.

This will install grub2 and modify the existing grub boot loader menu allow one to chain load grub2 to allow one to test to see if grub2 works on your
machine. At this stage, the original grub is still the main boot loader and keeps the original boot menu items.

Note: In Jaunty (but not Karmic), there was a bug in the grub2 installer (LP#376879) where it modifies the existing grub configuration incorrectly. If you experience this problem, at the "Chainload into Grub 2" menu item, press 'e' to edit the configuration. Press 'e' a second time to edit the top boot line and change:
(特别说明,如果是在904版本中测试安装哥伦布2代,一定要在安装后,编辑grub.cfg,把引导行的root xxxx改为uuid xxxx)
root xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
to:
uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
and press the Enter key after editing this line. Then press 'b' to chainload and boot grub2.

Note: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx is your partition UUID number.

If one can boot from grub2 successfully, one can then install grub2 onto the system as the main boot loader using the command:

代码: 全选

sudo upgrade-from-grub-legacy
5、Alternative Test(额外可选的测试方法)

If you do not want to install grub2 on your machine but you do want to see if it works with your BIOS, an alternative test is as follows:

* Download the bzip2 compressed image bootable-grub2-2.5GB.img.bz2
from http://people.ubuntu.com/~cking/grub2-b ... GB.img.bz2
* Uncompress it:

代码: 全选

bunzip2 bootable-grub2-2.5GB.img.bz2
* Insert a 4GB or larger USB pen drive into your machine
* Copy the image to the drive (assuming it appears as block device /dev/sdb, do the following):

代码: 全选

sudo dd if=bootable-grub2-2.5GB.img of=/dev/sdb
WARNING: Make sure you are writing to the correct block device before proceeding!
* Boot your machine with this image. If it boots OK, add your hardware to the list below. Note: This image boots from an ext3 partition.

6、Editing(编辑配置文件)

代码: 全选

sudo nano /boot/grub/grub.cfg
这个nano应该可以用leafpad,gedit,vi/vim,kate等文本编辑器代替之。例如余喜欢用leafpad,就可以使用下面的命令来修改grub.cfg:

代码: 全选

sudo apt-get install leafpad #如果现有系统上没有leafpad可以顺手装一个,瞬间下载,立马装好可用

代码: 全选

sudo leafpad /boot/grub/grub.cfg
上次由 wangdu2002 在 2009-06-14 21:48,总共编辑 5 次。
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 据说U910将采用grub2来作为引导装载器

#2

帖子 hcym » 2009-06-09 22:32

呵呵,又要死一大批人

9.04就带了,安装失败
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 据说U910将采用grub2来作为引导装载器

#3

帖子 billbear » 2009-06-10 7:10

我不信。 grub2 还远不是一个成熟稳定的版本。
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 据说U910将采用grub2来作为引导装载器

#4

帖子 wangdu2002 » 2009-06-10 12:24

billbear 写了:我不信。 grub2 还远不是一个成熟稳定的版本。
这次熊哥可能错了,今天好几个网站都发布了这条消息,Linux伊甸园,LinuxToy,Linux公社都有。看来这次Ubuntu的胆量不小。 :em06
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 据说U910将采用grub2来作为引导装载器

#5

帖子 billbear » 2009-06-10 17:06

噢 好像是真的 到时候我的脚本还得改 :em06
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 据说U910将采用grub2来作为引导装载器

#6

帖子 wangdu2002 » 2009-06-10 21:32

billbear 写了:噢 好像是真的 到时候我的脚本还得改 :em06
没错,开源世界变化快,熊哥也要与时俱进。 :em04
等910出来,继续帮忙做测试。顺便说下,后来又测试下lub重构系统,不备份隐藏文件,可以顺利的更改用户名,没有问题。 :em11
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 据说U910将采用grub2来作为引导装载器

#7

帖子 billbear » 2009-06-11 0:12

明天下个 9.10 来玩 :em11
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 据说U910将采用grub2来作为引导装载器

#8

帖子 billbear » 2009-06-14 17:30

好像有毛病,装不进分区去。我不喜欢动 mbr 的。
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

Re: 据说U910将采用grub2来作为引导装载器

#9

帖子 冲浪板 » 2009-06-14 18:22

自由选择嘛,还有lilo
ryoohki
帖子: 3249
注册时间: 2008-10-28 20:18

Re: 据说U910将采用grub2来作为引导装载器

#10

帖子 ryoohki » 2009-06-14 20:55

grub2就配置文件来说也不是变化太大...至少还能看的懂
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 据说U910将采用grub2来作为引导装载器

#11

帖子 wangdu2002 » 2009-06-14 21:00

billbear 写了:好像有毛病,装不进分区去。我不喜欢动 mbr 的。
熊哥不要太有洁癖啊!,搞搞mbr也没什么,我现在的哥伦布4dos,就喜欢把引导迷你代码写入mbr,省事,免了多级菜单。 :em06
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 据说U910将采用grub2来作为引导装载器

#12

帖子 wangdu2002 » 2009-06-14 21:30

hcym 写了:呵呵,又要死一大批人

9.04就带了,安装失败
看了说明,904装完后,要把root xxxx改成uuid xxxx :em04
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
topbluecat
帖子: 411
注册时间: 2008-03-27 21:56

Re: 据说U910将采用grub2来作为引导装载器

#13

帖子 topbluecat » 2009-06-14 21:40

GRUB2设不了启动密码....要不然还不错.......设不了密码就没办法了..... :em06
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 据说U910将采用grub2来作为引导装载器

#14

帖子 hcym » 2009-06-14 21:48

wangdu2002 写了:
hcym 写了:呵呵,又要死一大批人

9.04就带了,安装失败
看了说明,904装完后,要把root xxxx改成uuid xxxx :em04
似乎不是这么回事,910全新安装也是失败,无论grub,grub2,lilo

最后还是手工打掌,差点回不来

您就等着看好吧

:ema7
回复