GRUB2的新特性
时间:2005-03-17
来源:互联网
GRUB 2, which is a rewrite of GRUB, is alive and under development. GRUB 2 aims at merging sources from PUPA in order to create the next generation of GNU GRUB. A mailing list and a wiki have been setup for discussing the development of GRUB 2. GRUB 2 has the following tasks: * Create a compact core image. This will make Stage 1.5 unnecessary. * Add support for dynamic loading to the core image, so that it can extend itself at the run time rather than at the build time. * Add real memory management, to make GNU GRUB more extensible. * Add a more object-oriented framework for file systems, files, devices, drives, terminals, commands, and OS loaders. * Add support for internationalization. This includes support for non-ASCII character code, message catalogs like gettext, fonts, graphics console, and so on. * Add an actual localization, based on the above internationalization support. We will target on Japanese as the first step. * Segregate code specific to i386-pc from generic code, to make GNU GRUB portable. * Add support for cross-platform installation. * Develop additional software packages which will help our project and hopefully other projects. |
而stage1则对应了GRUB2中的boot.S,start则对应了GRUB2中的startup.S,这两个扇区在GRUB2中发挥的作用差不多,都调用了BIOS的INT 13H扩展例程来加载后续扇区,唯一不同的是,startup.S加载的不是stage1.5或者stage2,而是GRUB2的kernel。
提到kernel,很自然想象到module,没错,GRUB的kernel也使用了模块机制。
/* The main routine. */ void grub_main (void) { /* First of all, initialize the machine. */ grub_machine_init (); /* Hello. */ grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT); grub_printf ("Welcome to GRUB!\n\n"); grub_setcolorstate (GRUB_TERM_COLOR_STANDARD); /* It is better to set the root device as soon as possible, for convenience. */ grub_set_root_dev (); /* Load pre-loaded modules and free the space. */ grub_register_exported_symbols (); grub_load_modules (); /* Load the normal mode module. */ grub_load_normal_mode (); /* Enter the rescue mode. */ grub_enter_rescue_mode (); }
另外,GRUB2支持多国语言的显示,主要在configfile注释、命令输出、标题等处。目前的CVS版本仅支持日文。
一个优秀的Boot Loader──GRUB2,正如一个mini OS。它展现了内核之外的另一道风景线。
在RMS所提倡的freebios面世之前,GRUB2是自由之歌最好的前奏了。
我认为,"Freebios + GRUB2 + linux/Hurd"将会成为GNU最坚厚的基石,到了那时,除了硬件不开源以外,所有的软件甚至包括各种固件都会走向GNU自由开源的道路,呵呵。
作者: home_king 发布时间: 2005-03-17
作者: goldeagle 发布时间: 2005-03-17
作者: home_king 发布时间: 2005-03-18
p.s.很多硬件已经开源了,比如风扇,散热片,机箱等

作者: lexrus 发布时间: 2005-03-18
作者: lexrus
好,希望早日看到中文的启动菜单。
p.s.很多硬件已经开源了,比如风扇,散热片,机箱等 ![]() |
作者: home_king 发布时间: 2005-03-18
Snap1.jpg (40.3 KB, 566 次查看) |
作者: home_king 发布时间: 2005-03-23
作者: utstar 发布时间: 2005-03-26
作者: 地球发动机 发布时间: 2005-03-28
作者: LF.Andy 发布时间: 2006-03-24
作者: 米奇鼠 发布时间: 2006-03-25
作者: is02bing 发布时间: 2006-03-25
作者: net_king 发布时间: 2006-04-27
现在的1G U盘很便宜了,而自己时不时的会装下各种不同的系统,总是刻盘总是麻烦,如果可以把grub2装在U盘上,然后下载ISO文件在U盘中,从U盘引导,这样就很好啊。
不知道grub2具体如何实现,上网搜了搜,没找到什么有用的资料。
-----------------------
google了大半天,终于找到一个链接 http://osdir.com/ml/boot-loaders.gru.../msg00036.html
很遗憾,这似乎是不可能实现的功能。
作者: NetDC 发布时间: 2007-03-29
作者: nblhj 发布时间: 2007-10-09
作者: ttand 发布时间: 2007-10-18
BTW:个人觉得引导程序支持多国语言费力而不讨好。
作者: wsw 发布时间: 2007-10-29
作者: linunixer 发布时间: 2008-05-19
作者: jiangpeng 发布时间: 2009-06-10
作者: defrag 发布时间: 2009-08-30
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28