vboot 如何自动获得uuid并写入grub.cfg
vboot 如何自动获得uuid并写入grub.cfg c大的ntboot模块,没事看看当然不想看原理也可以直接用 管理员运行CMD,命令
G:\vboot\vbootedit.exe UUID G:
就是G的UUID了 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
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
页:
[1]