Jie*_*eng 12 ubuntu usb windows bootable system-installation
我想创建一个可启动的 EFI USB 来安装 Ubuntu 和 Windows 7(也许使用PartedMagic 之类的实用程序)。我以前使用MultiSystem做到了这一点。但是,我使用 GPT 并且需要以 EFI 模式启动 Windows 安装才能在 GPT 系统上安装。我想我必须改用 GRUB EFI?如果没有像 MultiSystem 这样的应用程序可以创建 GRUB EFI 可启动 USB,我如何自己创建一个?
我想我会将我的 USB 格式化为 GPT,并在其上安装 GRUB EFI(如何?)。然后我需要配置 GRUB EFI 以在 EFI 中加载 Ubuntu 和 Windows 7 安装?我该怎么做?
更新
这是我尝试过的
sudo elilo -b /dev/sdc1--autoconf --efiboot -v`jiewmeng@JM:~$ sudo elilo -b /dev/sdc1 --autoconf --efiboot -v
elilo: backing up existing /etc/elilo.conf as /etc/elilo.conf-
Loaded efivars kernel module to enable use of efibootmgr
elilo: Checking filesystem on /dev/sdc1...
elilo: Mounting /dev/sdc1...
e lilo: 44298KB needed, 78781KB free, 42192KB to reuse
elilo: Installing primary bootstrap /usr/lib/elilo/elilo.efi onto /dev/sdc1...
elilo: Installing /tmp/elilo.k8NWXX on /dev/sdc1...
elilo: Installing /vmlinuz on /dev/sdc1...
elilo: Installing /vmlinuz.old on /dev/sdc1...
elilo: Installing /initrd.img on /dev/sdc1...
elilo: Installing /initrd.img.old on /dev/sdc1...
elilo: Updating EFI boot-device variable...
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
elilo: An error occured while updating boot menu, we'll ignore it
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
elilo: Installation complete.
Run Code Online (Sandbox Code Playgroud)
难道sudo modprobe efivars有没有输出,但得到了同样的错误,我认为它是因为我不是bootted到EFI Ubuntu的?
接下来,我将尝试使用 USB 启动盘创建器以 EFI 模式启动到实时系统再试一次
更新
我很迷茫,第一次安装Windows是错的吗?我使用 UNetBootIn 为 Ubuntu Alternate 格式化并制作了一个可启动的 USB,但它也失败了,同样的错误是没有可用的内核。如果我制作了一个 Ubuntu 桌面,我将无法配置 apt 源

ubuntu 桌面安装的系统日志http://pastebin.com/CdbUPXax
我觉得我最好不要浪费时间并尽快恢复到 MBR ......这意味着我必须以某种方式第一次备份我的所有数据......这就是为什么我将它延迟到最后的手段......有什么想法吗?
更新
我尝试在 BIOS 模式(非 EFI)下启动 Ubuntu 11.10 Alternate,安装正常,但我无法安装启动加载程序。它说致命错误。然后我通过在恢复模式下启动 USB 来安装 GRUB。有效,但无法启动。启动时出现空白屏幕。如果我尝试进入恢复模式(在安装了 ubuntu 的硬盘上),键盘似乎出现故障,但鼠标有光。
我正在更新这个问题/答案。
这并非没有错误,但当我与 @jiewmeng 合作时,我发现目标是使用 USB 将 Windows 和 Ubuntu 安装到一个硬盘驱动器 UEFI 上。
花了一段时间,我找到了解决方案,但我们需要清理问题和答案。
也许最初的问题也可以回答,但由于目标更多是在安装方面,因此单启动 UEFI USB 似乎不太重要。
我目前使用两个 U 盘,一个用于 Windows,一个用于 Ubuntu。
这是一个 WIP 将尽快更新
我已经为此工作了几天,到处都有空闲时间,终于有了一个 USB,它可以启动并提供 Windows 7 和 ubuntu 的安装。
我的配置是 64 位特定的,您可以尝试更改以适应 32 位的安装,但文件名有很多差异。需要32位的请关注。那说...
您无法从 GPT 格式的 USB 安装 Windows 7。
您可以使用 gdisk 或 parted,并创建一个 GPT USB,它将通过 UEFI 启动。
您将能够配置 UEFI 启动管理器以从 USB 加载 Windows 安装程序,但安装程序将搜索执行安装所需的文件和数据,并且无法识别 GPT USB,而会找到 MBR USB .
但是,这无关紧要,因为 UEFI 查看 MBR/GPT 和 EFI 分区,请参阅有关 UEFI 引导的维基百科条目
尽管 USB 使用标准 MBR,但可以通过 UEFI 安装到 GPT 磁盘。
以下使用 64 位安装,在 64 位 UEFI Asus Sabertooth 上工作。
每个主板上的固件都非常具体,每个主板 UEFI 固件对 UEFI 引导的搜索方式不同。您的主板在查找引导数据时可能会遇到问题,但以下内容适用于我的华硕。
下面是我如何使用 Windows 7 64 位 DVD 和 Ubuntu ISO(在本例中为 11.10 64 位桌面 ISO)的可安装副本制作可启动 USB。
使用 16G USB,这是我手头的全部……
我的 USB 安装为 /dev/sdc,将相关参考更改为适合您 USB 的设备。
确保安装了 7zip。
fdisk /dev/sdc
create new MBR, 'o' command
create new partition, part 1, size 8G, type ef, set bootable, write
mkfs.vfat -F32 /dev/sdc1
mkdir /mnt/USB
mount /dev/sdc1 /mnt/USB
insert Windows 7 x64 DVD, again, mine appeared as /media/UDF\ Volume, you need to change references below
# Extract/Copy the entire Windows DVD to the USB
cp -r /media/UDF\ Volume/* /mnt/USB
# I don't know what effect the following rename has, I copied blindly from another webpage.
mv /mnt/USB/sources/ei.cfg /mnt/USB/sources/ei.cfg_
cd /mnt/USB/efi/microsoft/boot/
7z e /mnt/USB/sources/install.wim 1/Windows/Boot/EFI/bootmgfw.efi
cp -r /mnt/USB/efi/microsoft/boot /mnt/USB/efi/
mv /mnt/USB/efi/boot/bootmgfw.efi /mnt/USB/efi/boot/bootx64.efi
# At this point I booted the USB, and installed Windows 7 to a GPT SSD
# Upon reboot I noticed the Windows Boot loader in my UEFI boot list (actually it made itself 1st).
# so, here we have a standalone Windows7 UEFI installer that will function correctly (64bit ASUS, at least).
# Now, on to adding Ubuntu
cd /mnt/USB
7z x /path2iso/ubuntu-11.10-desktop-amd64.iso
# If 7z finds prexisting files with the same name, just allow always overwrite
# (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? A
# At this point I booted the USB, and installed Ubuntu x64 to a GPT SSD
# we have a standalone Ubuntu 64bit installer that install Ubuntu 64
# Now, on to add a boot manager that will allow us to select between Windows 7 and Ubuntu
# Get the target UUID of the USB partition, using either blkid or the following command
grub-probe --target=fs_uuid /mnt/USB/efi/Microsoft/Boot/bootmgfw.efi
will print YOUR_UUID # Substitute into the following references to YOUR_UUID
# Append the following menuentry to /mnt/USB/boot/grub/x86_64-efi/grub.cfg
menuentry "Microsoft Windows x86_64 UEFI-GPT Setup" {
insmod usbms
insmod part_gpt
insmod part_msdos
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --no-floppy --set=root YOUR_UUID # <- CHANGE THIS TO YOUR UUID
chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
}
Run Code Online (Sandbox Code Playgroud)
瞧!使用 grub 作为引导管理器的工作 U 盘,允许使用 UEFI 安装安装到 GPT 磁盘。
如果您有错误,请不要犹豫,给我发信息,我会研究它。
| 归档时间: |
|
| 查看次数: |
39264 次 |
| 最近记录: |