我姑且转之的,这件事儿让国人一宣传总有些悲凉的感觉…
原帖:http://www.linux-ren.org/modules/newbb/viewtopic.php?topic_id=56228
这有一个原文的地址:http://lists.fedoraproject.org/pipermail/announce/2010-August/002856.html
我姑且转之的,这件事儿让国人一宣传总有些悲凉的感觉…
原帖:http://www.linux-ren.org/modules/newbb/viewtopic.php?topic_id=56228
这有一个原文的地址:http://lists.fedoraproject.org/pipermail/announce/2010-August/002856.html
源地址:[Linux]Grub和initrd对文件系统驱动的支持
前言
本文源于这样一个问题:内核镜像存储在硬盘下特定文件系统中,bootloader必须先加载文件系统驱动,才能读取内核文件。类似的,内核要读取根文件系统中的文件,也需要先加载文件系统驱动。如果文件系统驱动存储在硬盘中,启动时没有驱动无法读硬盘,将导致整个启动过程的失败。那么Grub和内核如何解决这个问题的呢?
启动过程中需要读硬盘的时刻:
1. BIOS读硬盘中MBR,将控制权交给MBR中Grub Stage1
2. Stage 1读硬盘中的Stage 1.5,Stage 1.5读Stage 2;或者Stage 1 直接读取 Stage 2
3. Stage 2读Kernel
4. Kernel挂载根文件系统,读文件
今天看到/etc/modprobe.conf文件中有如下内容:
alias eth0 pcnet32
其中alias啥意思,不太明白,查之,原来是给设备做备注的。开始也忘了查man,后来才知道啥意思,再查man,解释得很详细。
alias wildcard modulename
This allows you to give alternate names for a module. For example: "alias my-mod really_long_modulename" means you can use "modprobe my-mod" instead of "modprobe really_long_modulename". You can also use shell-style wildcards, so "alias my-mod* really_long_modulename" means that "modprobe my-mod-something" has the same effect. You can’t have aliases to other aliases (that way lies madness), but aliases can have options, which will be added to any other options.Note that modules can also contain their own aliases, which you can see using modinfo. These aliases are used as a last resort (ie. if there is no real module, install, remove, or alias command in the configuration).
还记得上次冷博客推荐的关闭显示器小软件closeLCD么,记性差和新朋友的传送门:http://loneblog.com/blog/closelcd-software.html
这是windows用的软件,ubuntu怎么办呢?
这一点完全体现出了like unix系统的超强个性化设置了,由于习惯了上面提到的CloseLCD的快捷键alt+C,所以今天我们在ubuntu下也来做着个一个快捷键。