+ -
当前位置:首页 → 问答吧 → 请问高手,如何把grub2安装到u盘里?

请问高手,如何把grub2安装到u盘里?

时间:2011-12-11

来源:互联网

[root@localhost mnt]# mkdir u
[root@localhost mnt]# ll
总用量 4
drwxr-xr-x. 2 root root 4096 12月 10 21:09 u
[root@localhost mnt]# mount /dev/sdc1 ./u
[root@localhost mnt]# grub2-install --boot-directory =/mnt/u /dev/sdc1
/sbin/grub2-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition.  This is a BAD idea..
/sbin/grub2-setup: error: embedding is not possible, but this is required for cross-disk install.

作者: chenmeng10   发布时间: 2011-12-11

难道命令错了??????????????

作者: chenmeng10   发布时间: 2011-12-11

提示不可以跨硬盘安装!!!!!!!!!!!!!!!!!

作者: chenmeng10   发布时间: 2011-12-11

/dev/sdc1 改成 /dev/sdc 如何?你直接安装到一个分区上还是没法引导的。

注:似乎可引导U盘的常规做法是把 live CD/DVD 导入U盘,实现这一点有
许多工具的,例如 fedora的 liveusb-creator, livecd-tools, unetbootin
(它们实际上貌似都会调用 syslinux 实现可引导)

作者: alick   发布时间: 2011-12-12