
menuentry
"我的Ubuntu
"
{
linux
/boot/vmlinuz-xxx
initrd
/boot/initrd-xxx.lz
}
或者编辑/etc/grub.d/40_os-prober,将上面代码添加到文件末。然后执行update-grub。
menuentry "Boot Kernel on USB Disk " {set root=(hd1,msdos1)
search --no-floppy --fs-uuid --set=root UUID
linux /bzimage
initrd /initrd.img
}
root=后面改为你的U盘设备号,UUID改为U盘分区uuid。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)