|
UUID可以这样获得,稍改就可以了
- set /p DriverLetter= 请输入分区盘符(不包含冒号)
- for /f "skip=3 tokens=7*" %%i in ('%cd%\vboot\vbootedit.exe UUID %DriverLetter%:') do @echo %DriverLetter%盘的UUID为: %%i
复制代码
create
Create a boot entry and save it to grub.cfg.
SYNTAX:
vbootedit create title=menu_entry_title [hardisk=diskfile] [cdrom=isofile] [floppy=floppy_image_file] [parent=index] [boot=harddisk|cdrom|floppy] [/store configfile]
OPTIONS:
title=menu_entry_title
Specify the title for the boot entry.
hardisk=diskfile
Specify the path to the virtual disk file.
It can be a .vmdk, .vhd or .vdi file.
cdrom=isofile
Specify the path to the cdrom iso file.
floppy=floppy_image_file
Specify the path to the floppy image file.
parent=index
Specify an integer index for the parent entry.
This is used only to add snapshot entry.
boot=harddisk|cdrom|floppy
Specify the boot media.
/store configfile
Specify the path to the VBoot config file.
By default, the config file is \vboot\grub\grub.cfg on system partition
.
EXAMPLES:
vbootedit create title="XP Install Step 1" harddisk=c:\xp.vhd cdrom=c:\vboot\w
inxp-sp3.iso floppy=c:\vboot\vboot.img boot=cdrom
vbootedit create title="XP VHD Boot" harddisk=c:\xp.vhd
vbootedit create title="XP Snapshot 1" harddisk=c:\xp.vhd parent=1 |
|