wee 0>
wee 17>
wee 23>
wee 0>
(0x80,255) (0x80,0) (0x80,1) (0x80,2)
(0x80,255):0,0:00,0C:unknown
command
command命令用来执行外部可执行文件。
语法:
command [FILE [ARGS]]
wee不再需要 chainloader 和 kernel 命令了,取而代之的是用 command 本身的功能。command 命令把可以引导的文件(示例如单扇区文件、NTLDR、IO.SYS、vmlinuz 等)都当作可执行文件来对待了。单单在命令行之下敲入 ntldr、 io.sys或者 vmlinuz 等,就可以启动相应的文件了,它们已经是wee的可执行程序了…………
示例1:
#启动linux
command (hd0,0)/vmlinuz (hd0,0)/initrd.img root=UUID=XXXXXXXXXXXXX ro quiet splash acpi=noirq
……
示例2:
#启动mbr
(hd0)+1
示例3:
#启动dbr
(hd0,0)+1
find --set-root --active command +1
find 命令的语法允许带条件的查找设备。
find [OPTIONS] [FILENAME] [CONDITION]
选项 文件名 条件
其中的 CONDITION 是一个返回值是 TRUE 或者 FALSE 的标准 grub 命令。
find 命令的语法允许带条件的查找设备。
find [OPTIONS] [FILENAME] [CONDITION]
选项 文件名 条件
其中的 CONDITION 是一个返回值是 TRUE 或者 FALSE 的标准 grub 命令。当返回值为true时,执行查找操作;返回值为false,不执行查找操作?
find [--set-root[=DIR]] [--devices=DEVLIST] [--ignore-floppies] [--ignore-cd] [FILENAME] [CONDITION]
search for the filename FILENAME if all of partitions and print the list of the devices which contain the file and suffice CONDITION. CONDITION is a normal grub command, which return non-zero for TRUE and zero for FLASE.
search for the filename FILENAME in all of partitions and print the list of the devices which contain the file and suffice CONDITION. CONDITION is a normal grub command, which return non-zero for TRUE and zero for FLASE.
find --set-root /boot/IBM.ICO
+1
此处的 +1 表示一个单扇区的文件,它以 55 AA 结尾,就被认为是精简版 grldr 的一个合法的可执行文件。
default 0
title 1. Boot from (hd0,0) for Windows 7
root (hd0,0)
command …………(省略)
command +1
title 2. Boot from (hd0,1) for Windows XP
root (hd0,1)
command +1
title 3. Boot from (hd0,2) for Linux-Mint
root (hd0,2)
/vmlinuz /initrd.img root=/dev/sda3 ro quiet splash
title 4. Commandline
commandline
title 4. Commandline
exit
xydche 发表于 2014-2-25 00:13
我感觉
撸主在title 1 XX的时候可以这样
天使的魔翼 发表于 2014-2-25 00:47
可以直接把XX写入磁盘,将XX.bin放在一个特定目录下加载,这样一来,可以完全智能化加载了。
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) | Powered by Discuz! X3.3 |