|
find --set-root只是用来寻找并设置grub4dos的根设备,不加参数,没有其它的功能。
还是搞不明白你的tool和HBCD分别是什么东东,所以没法进一步说明什么。
root命令有一个设置当前目录的功能,假设:
chainloader /Tool/PE/setupldr.bin
可以用root命令如此简化:
root ()/Tool/PE
chainloader /setupldr.bin
grub4dos的readme.txt中相关的说明:
******************************************************************************
*** New Feature of Relative Path Support ***
******************************************************************************
Use the `root' or `rootnoverify' command to specify the `working directory'.
For example:
root (hd0,0)/boot/grub
This specifies that the working dir is (hd0,0)/boot/grub. So all subsequent
filenames of the form "/..." will actually refer to (hd0,0)/boot/grub/...
That is to say:
cat /menu.lst
will be equivalent to
cat (hd0,0)/boot/grub/menu.lst
******************************************************************************
*** Notation For The Current Root Device ***
******************************************************************************
The notation `()' can be used to access the current root device. You may use
`find --set-root ...' to set the current root device, but the find command
does not set the `working dir' of the root device. In this case you should
use `()' to set the working dir after the find command:
root ()/boot/grub
Update 2008-05-01:
FIND can also set the `working directory' now. For example:
find --set-root=/tmp /boot/grub/menu.lst
It is equivalent to this pair of commands:
find --set-root /boot/grub/menu.lst
root ()/tmp |
|