loveta0818 发表于 2012-4-13 19:55:34

vboot 如何自动获得uuid并写入grub.cfg

vboot 如何自动获得uuid并写入grub.cfg

bfgxp 发表于 2012-4-13 21:16:51

c大的ntboot模块,没事看看
当然不想看原理也可以直接用

2012ftxbt 发表于 2012-4-26 23:09:24

管理员运行CMD,命令
G:\vboot\vbootedit.exe UUID G:
就是G的UUID了

zhuoer 发表于 2012-5-23 18:20:50

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]
查看完整版本: vboot 如何自动获得uuid并写入grub.cfg