Windows boot manager как добавить linux

Как добавить Linux Ubuntu в Windows Boot Manager?

Здравствуйте! Мне надоел некрасивый интерфейс GRUB, и у меня возникла идея. Я хочу добавить запись Linux Ubuntu в Windows Boot Manager. Но как сделать я не знаю. Сейчас у меня там 2 записи: Windows 11 и Windows 7 Ultimate. Пробовал программу EasyBCD, но она поддерживает добавление записи дистрибутива Linux в Windows Boot Manager только на MBR, но у меня GPT/UEFI. Как можно это сделать? Мне не хочется каждый раз загружать гроб, и при необходимости зайти в винду, переходить в другой загрузчик в гробе. Я чаще в Windows захожу, чем в Ubuntu.

Средний 13 комментариев

Никита Савченко, спробуй взять какойнить сторонний загрузчик, который будет и красивый и нативно поддерживать все виды операционок.
инструкции как прописать в виндовс загрузку линуксовый раздел под ntldr как минимум была.

Никита Савченко, берете понравившуюся тему (из любого источника, например: https://store.kde.org/browse?cat=109&ord=rating ) или можете создать свою.

Кидаете её в /boot/grub/theme/
Прописываете в конфиг
делаете grub-mkconfig

Никита Савченко, грубу вообще до лампочки до гнома с кде. он работает на несколько слоев глубже них и просто не различает и не замечает их.

Slayer_nn

В чем проблема через boot menu выбирать какую системы грузить?
Зачем линукс пихать в бут менеджер винды, которая при первой возможности его затрет?
самым правильным граб > а на нем уже все OS вешать со своим казино и борделем

Никита Савченко, мнээээ а чем ?? 🙂 это просто сторонний загрузчик или про загрузку линухи через ntldr ??

SagePtr

Никита Савченко, grub можно сделать красивым. Если лень самостоятельно, можно тут взять готовые темы: https://www.gnome-look.org/browse?cat=109&ord=rating (сайт в пынестане заблочен, юзать VPN).

TalismanChet

Довольно странно читать, как на вопрос про «ставить Линукс» отвечают примерно «а нафига тебе, ставь через виртуалку».

1. Линукс стоит на основном рабочем лаптопе уже 4 года. В заводскую Винду перезагружаюсь в среднем раз в месяц, чтоб открыть какой-нибудь cad-овский файл. Дистрибутив — Arch, обновляет пакеты постоянно, работает как хорошие часики. Иногда подключаю док-станцию и второй монитор. Нет, не ломался ни разу, драйверы в ручную не ковырял.

2. Не пользуюсь Грабом давно, просто потому что смысла нет. Записываю загрузчик или напрямую через efibootmgr, или же создаю отдельный загрузчик через bootctl (systemd-boot) и записываю там элементы загрузки. Основное отличие — меню выбора никогда не всплывает (все доступные ОС не высвечиваются), загружается всегда запись №1 из UEFI, очередность можно менять там же. Выбрать одноразово можно при загрузке через специальное меню UEFI, которая всплыват по нажатию одной из F кнопок (зависит от производителья МП) примерно в том же промежутке загрузки, когда еще можно открыть основное меню UEFI/BIOS.

firedragon

Не насилуйте себя. Линукс на железе нужен крайне редко, и часто это то еще извращение. Загоните его в виртуалку.

Источник

How to add ubuntu to windows 10 boot manager, but it will be in another hard drive? [closed]

This question was closed because it is not about an official Ubuntu flavor. It is not currently accepting answers.

This is not about an official Ubuntu flavor. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow.

enter image description here

I want it to be look like this: I have an HDD and an SSD in my PC, I want to install Ubuntu to SSD, I have windows on HDD. I want to be able to boot ubuntu from the windows 10 uefi boot manager. How do I do it?

Читайте также:  Как подключить домен на linux

That is a Windows related question. You want help with Microsoft’s bootloader. so I doubt we can help you with that. If it is at all possible. At least I assume you meant that W8/10 screen inside windows and not a grub replacement(?)

Grub will still install a folder for UEFI boot in drive configured as sda.You do want to install Ubuntu in UEFI boo tmode. You can add this entry to Windows BCD: bcdedit /set path \EFI\ubuntu\grubx64.efi Make sure SSD is gpt partitioned, and best to include an ESP — efi system partition, so you could configure it to boot without Windows drive. help.ubuntu.com/community/UEFI

1 Answer 1

I can’t answer the question directly, since I’m not very familiar with configuring Windows boot tools. I’d like to point out some basic issues, though.

There are two types of programs, with some overlap between them, that are relevant:

  • Boot managers — These programs present a menu or other user interface to enable you to select which OS to boot.
  • Boot loaders — These programs load an OS kernel into memory and transfer control to it. Most boot loaders can load just one type of OS kernel (such as a Linux kernel or a Windows kernel) into memory.

Thus, the boot path goes from the firmware to a boot manager to a boot loader to the OS. One boot manager can hand off control to another, and there can be more complex boot paths if one stage or another returns to an earlier step.

Some programs, such as rEFIt, rEFInd, and gummiboot (now systemd-boot), are boot managers but not boot loaders. Others, such as the Linux EFI stub loader, are boot loaders but not boot managers. Still others, such as GRUB, are both boot managers and boot loaders. Some programs are boot loaders with limited boot management capabilities; for instance, ELILO and (under EFI) SYSLINUX can present menus that let you select which kernel to run, but they can’t launch the boot loaders for other OSes.

My understanding of the Windows boot manager/loader is that it can chainload to another OS’s boot loader or load a Windows kernel. It cannot load a Linux kernel directly, though (except perhaps via the EFI stub loader, but I don’t know of anybody who’s tried it that way). Thus, even if you succeed in configuring the Windows boot manager the way you want, you’ll need a Linux boot loader in the mix.

One twist in all this is the Linux EFI stub loader, which is built into the kernel. The EFI stub loader turns the kernel into an EFI application that serves as a boot loader for the kernel itself. Thus, an EFI boot manager can fill a role very much like a boot loader, but technically, it’s the kernel itself that’s the boot loader. The nature of Linux kernel booting also means that you need to be able to pass options to the kernel, which few non-Linux boot managers make easy. Also, if you wanted to use this feature to have the Windows boot manager launch a Linux kernel, you’d need a way for the Windows boot manager to read the Linux kernel. Since the kernel is normally stored on a Linux-native filesystem, this would require changes to either move the kernel to a FAT partition or add an EFI driver for your Linux filesystem into the mix. Both are possible, but they add complications to the setup.

Читайте также:  Anydesk linux командная строка

Note also that EFIs include their own boot managers, but not boot loaders. Unfortunately, most EFIs’ boot manager user interfaces are quite poor, so most people prefer having something else available to fill that role.

Most experienced Linux users are familiar with GRUB and perhaps one or two other boot loaders or boot managers. Thus, you should have no problems getting advice on this site on how to configure GRUB, ELILO, SYSLINUX, gummiboot, or rEFInd to do what you want. (Note: I forked rEFInd from rEFIt, so if you care to use rEFInd, I’m the one to ask about it.) Expertise in configuring the Windows boot manager/loader is rarer here, though. If you really want to use the Windows tool, you should probably ask on a Windows forum.

There are about a bazillion questions and answers about boot manager and boot loader setup on this site, so please search if you care to use a more traditional Linux-friendly boot manager. If you can’t find the answer to your question, feel free to ask another. (I recommend asking a new question rather than posting follow-ups, since your follow-up questions are likely to be very different from your original question and will require extensive new answers.)

Источник

How can I add Linux to the new Windows 8 boot manager?

Which OSes can be put into the new bootloader that Windows 8 provides? It seems to be quite pretty and consistent with the rest of the new Windows 8 design, so it would be cool to put Linux (Ubuntu) into it instead of using GRUB or BURG. Besides on my personal system, Linux will be put on a hard drive and not the SSD, so it would be a bit faster.

Not sure this is even possible. The only thing that might work is NeoGrub (part of EasyBCD), but I’ve never tried something like this.

1 Answer 1

You can do the same as you could in Windows 7, although I’m not sure I’d recommend it using the graphical boot menu (reason in the end).

Some things first:

The usual setup for people who have dual boot configurations with Linux being one of the OSs that the machine has installed is to have a Linux bootloader by default, and there add an entry for the Windows OS. What that does is to load the Linux bootloader and if you want to load Windows it chainloads into the Windows bootloader which then boots Windows.

Since usually there’s only one Windows installed the menu selector of the Windows bootloader never appears giving the impression that the entry you added in the Linux bootloader actually loads Windows.

The opposite is possible too, although not common among Linux users. For instance, my main bootloader is the one from Windows which then chainloads into a Linux one to boot Linux; I have configured the Linux one to be mostly invisible and load right away though.

How to add a Linux entry in the Windows bootloader:

It really depends on what you install first and what later, I’m sure there are some guides around the internet to explain a detailed procedure on how to setup a dual+ boot environment. So I’ll just go through 2 different setups:

Читайте также:  Linux mount linux network share

When you install Windows first: In this case when you’re installing your Linux distribution, if it allows you to install the bootloader in a partition directly instead of in the MBR of the hard drive do so. After restart you’ll find that you’re booting Windows just like Linux was not installed at all, after that follow the scenario in which Linux was installed first described below.

If you can only install the bootloader in the MBR of the hard drive after the reboot you’ll see a Linux bootloader (Syslinux, GRUB, you name it), choose the Windows entry there and boot into Windows.

Now, I like to use EasyBCD (free for personal usage) to deal with the Windows bootloader, but anything that I do with it can also be accomplished with the proper bcdboot , bcdedit , etc. commands.

  1. Open EasyBCD and go to the «Add New Entry» section and the «Linux/BSD» tab.
  2. Select the bootloader you have for your Linux distribution. In case of GRUB2 there’s an autoselect mode which will select the appropriate partition for you, for Syslinux for example you have to compulsory select the partition where it is installed.
  3. Name the entry, the name you put there is the one that will appear in the Windows bootloader.
  4. Select the partition where your bootloader resides or autoselect if that option is possible. In the end you should end up with something like this: Adding an entry for a Syslinux loader
  5. Click in «Add entry» and you’ll receive the result in the bottom left part of the program: Confirmation
  6. Now you have to restore the Windows bootloader as the default one, for that go to the «BCD Deployment» section, there select to write the Vista/7 bootloader in the MBR (which by the way is the same as for Windows 8): Writing the new MBR
  7. After that you’re all set, you’ll receive a similar confirmation as before. When booting up you’ll see the boot menu prompting you to select one of them: Boot menu example

When you install Linux first: In this case you don’t have to restore the MBR (Master Boot Record, tells what to execute next grosso modo) as Windows installation will overwrite any previous value there.

NOTE: with UEFI and GPT disks this may be different though, but I have no way of trying it out.

Why I’m not sure I’d recommend doing this using the new graphical boot menu in Windows 8:

Essentially because the way it works is different than with the textual menu (default for Windows 7). In Windows 7 (or Vista) you’re first presented with the boot menu and then it starts to load whatever you choose to, in the new graphical menu it first loads some stuff (= takes time) and then presents you with the boot menu. If you don’t select to load Windows 8, it reboots the machine and starts to load whatever you selected which in this case is the Linux bootloader.

I find waiting to load some stuff just to discard it and reboot unnecessary if I just want to boot another OS; but it’s my personal opinion on the matter, there’s no problem whatsoever by loading Linux, or any other OS in this manner.

Anyway, there are different ways to use the textual boot menu instead in Windows 8, if you’re interested check this answer out.

Источник

Оцените статью
Adblock
detector