Grub4dos linux mint iso

Загрузка c iso образов при помощи memdisk и grub4dos

Вы наверняка слышали о таких девайсах как нетбук. И знаете, что в них не предусмотрен оптический привод (CD\DVD).
Приобретя нетбук я столкнулся с проблемой — мне необходимо было выложить еще 60$ за внешний оптический привод, что для бедного студента в условиях кризиса было немного накладно. Девайс наотрез отказался грузится с флешки с карточки (почему — до сих пор не пойму. ) и тут мне в голову пришла мысль: «А если загрузится с образа?» — так начались поиски…

Далее я предлагаю почитать как я решил проблему при помощи grub4dos и memdisk. Конечная цель — загрузить образ нетинсталла openSUSE 11.3.

Сразу оговорюсь:
Не все образы получается загрузить описанным образом (у меня так и не получилось установить WinXP).
Образ монтируется в оперативную память и поэтому большие образы описанным образом смонтировать не получится.
Это не единственный способ загрузить содержимое iso — можно скопировать ядро и все необходимые ресурсы на диск и загрузить получившуюся конструкцию, но этот способ требует понимания как работает инсталлер и не всегда осуществим.

Шаг первый: подготовка

Мне попался нетбук с предустановленной Windows XP, поэтому вся статься отталкивается от наличия установленной Win XP.
Я использовал grub4dos, хотя всё изложенное в этой статье применимо и к обычному GRUB (в данный момент всё работает на обычном).
Нам нужен один раздел с поддерживаемой загрузчиком файловой системой (любой, кроме NTFS).
*Я использовал FAT32, но подойдет и ext2\ext3.
Копируем на наш раздел образ.

Шаг второй: установка grub4dos

Читаем документацию или продолжение статьи 😉
Качаем grub4dos отсюда.
Распаковываем архив, копируем grub4dos-*\grldr в корневой каталог системного диска (обычно — C:\, далее — %sysdisk%); открываем %sysdisk%\boot.ini и дописываем в секции [operating system]
C:\grldr=»Grub4Dos»
Адрес «C:\grldr» должен быть использован даже если установленная ОС имеет другую букву диска.
*В документации описана установка на более современный загрузчик.
Получится что-то вроде:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=»Microsoft Windows XP Professional» /noexecute=optin /fastdetect
C:\grldr=»Grub4Dos»

Содержимое папки grub4dos-* складываем в %sysdisk%\Grub4Dos
Конфиг из %sysdisk%\Grub4Dos\MENU.LST перекладываем в %sysdisk%\MENU.LST
*Важно понимать, что grub4dos изначально пытается считать (hd0,0)\MENU.LST, поэтому лучше либо использовать ключ —config-file=%CONFIG% либо положить MENU.LST в корень раздела (hd0,0). Обычно это C:\ или /dev/sda1
**Важно также понимать как GRUB нумерует диски, об этом можно почитать либо в официальной, либо в переведенной документации.
***Согласно документации существует еще вариант, который предусматривает прописывание конфига в ключе —config-file=%CONFIG% следующим образом —config-file=»find —set-root /openSUSE-11.3-NET-i586.iso; kernel /memdisk iso raw; initrd /openSUSE-11.3-NET-i586.iso» но у меня почему-то он так работать не хочет (вероятно из-за того, что штатный GRUB прописан в MBR).

Шаг третий: memdisk

У вас есть 2 варианта: скачать syslinux и собрать memdisk самостоятельно или скачать собранный мной memdisk с dropbox’a.
Memdisk сохраняем на разделе с образом (для простоты).
*Вообще говоря мы можем держать образ и memdisk на разных разделах, но тогда нам придется использовать абсолютный путь до memdisk (или образа, что менее вероятно).

Источник

Grub4dos linux mint iso

Advanced Member

Читайте также:  Форматируем диск под линукс
Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Предыдущие части: 1-я | 2-я Второй Груб (тот, который в большинстве современных дистрибутивов) обсуждается в теме «GNU GRUB 2 (grub 1.9x); BURG»

Основные особенности Grub4Dos:

  • Возможность установки на USB-flash, HDD, CD и floppy
    При установке на USB-flash или HDD возможна установка в mbr, бутсектор или просто загрузка строкой в boot.ini
    C:\GRLDR=»Start GRUB»
  • Возможность подключения ISO-образов, образов дискет и HDD как виртуальных дисков
  • Возможность передачи загрузки выбранному разделу или напрямую загрузчику (ntldr, bootmgr)
  • Наличие графического (gfxmenu) и текстового (splashimage) режима
  • Наличие собственного командного интерпретатора
  • Возможность автоматического поиска и загрузки установленных ОС
    Скачать Grub4Dos
    Руководство на русском. Доп. инфа в файле README_GRUB4DOS.txt (Eng)
    Готовые GFX-Boot темы

    BootIce [__1__] [__2__] Всего записей: 1309 | Зарегистр. 12-05-2008 | Отправлено: 01:20 25-01-2016 | Исправлено: AZJIO, 19:56 06-12-2020

    TemaZosin

    Full Member

    Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Добрый день.

    Я создаю флешку по инструкции. Поставил Grub4Dos, создал меню, положил образы. С нее стартует, подгружается меню, но ни один образ не работает. Установка запускается, виден лого ОС, но потом ошибка.

    Цитата:

    stdin: error 0
    /init: line 7: can’t open /dev/sdb: No medium found
    /init: line 7: can’t open /dev/sdb: No medium found
    uable to open ‘/dev/zram0’

    Цитата:

    (initramfs) unable to find a medium containing a live file system.

    Я понимаю, что это ошибка не найденного привода, т.к. пути жестко заданы, а загрузка идет с флешки. Но хотелось бы с нее и оставить, а не 1 образ на 1 флешку. И да, в память выгружать через —mem тоже не хотелось бы — не хватает ОЗУ.

    Состав файла menu.lst

    title Ubuntu x64
    find —set-root /ubuntu-amd64.iso
    map /ubuntu-amd64.iso (0xff)
    map —hook
    chainloader (0xff)

    Источник

    MX Linux Forum

    Support for MX and antiX Linux distros

    Forum users

    • Please read this before asking for help, and don’t forget to add Quick System Info to help requests!
    • Please follow the Forum Rules

    Current releases
    — MX-19.4 release info here
    — Migration information to MX-19.4 here
    — antiX-19.4 (Grup Yorum) release info here

    News
    — MX Linux on social media: here
    — New Forum Features, Marking Solved and Referencing a User: here

    [SOLVED] Boot ISO Using Grub4Dos

    [SOLVED] Boot ISO Using Grub4Dos

    #1 Post by Arvy » Sun Jun 30, 2019 8:00 pm

    i’m currently running a multi-boot (Win10, Linux Mint, et al) setup on an Intel i9 system (details here). For reasons which I’ll explain only if requested (they’re quite boring) I use Grub4Dos to boot and test various options including some ISO files that have been downloaded to the /Sources folder on an SSD. MX Linux 18.3 has recently been added to those ISO file downloads and to my Grub4dos menu.lst boot options as appended below in plain text format. All of them work okay with the single exception that the start-up options that are subsequently displayed in the MX Linux boot menu don’t actually boot the OS «as advertised». It says that it’s searching for antiX/linuxfs but then displays the error message: «No usb,cd devices found». Having searched and read some other threads here, I’ve tried including «findiso=/Sources/LinuxMX64.iso» on its boot options line and also «load=all», but neither of those corrects the problem in my case.

    I can boot the «live» demo fine if I actually install it on a USB stick, but I’d very much like to be able to do it my way if it’s possible. Does Linux MX support booting its ISO source file directly as can be done with most other distros, or is it «hard wired» to boot only from usb and cd devices? Any suggestions would be gratefully received.

    My current Grub4Dos menu.lst file:

    Re: Boot ISO Using Grub4Dos

    #2 Post by fehlix » Sun Jun 30, 2019 9:09 pm

    You can actual boot from MX Linux ISO’s but not directly through grub4dos.
    You might need to add a further step to chainload grub2, e.g. grub2win’s grubloader,
    and from here boot into the iso’s via loopback.
    The trick is to use the boot option fromiso, which than is used by the Live-initrd, to find the ISO and within the ISO the squashed linuxfs system file to boot from.
    You might consider to use directly grub2 (on windows) to boot directly into different iso’s.
    You can also chainload between grub4dos and grub2, vice versa.

    A exampled grub2 config file has posted recently here and would look like this:

    Re: Boot ISO Using Grub4Dos [UPDATE]

    #3 Post by Arvy » Sun Jun 30, 2019 9:55 pm

    Thank you for those Grub2 suggestions, fehlix. In fact, I had already included an entry in the same grub.cfg file (via /etc/grub.d/40_custom) that I use for booting with Linux Mint’s Grub2 set-up. That does work as specified for booting the MX Linux ISO directly into its demo environment without a boot menu of its own. It’s only my Grub4dos menu.lst entry that I can’t seem get working as it does for booting all other ISOs. Actually, it does boot the MX Linux ISO and load its boot manager menu okay. It’s just that the boot manager can’t then seem to locate and load the kernel within the ISO. Not sure why it should be different in that respect unless it’s «hard wired» that way.

    Well, I got it half working. After Grub4dos successfully boots the ISO to the MX Linux boot manager, I just need to add the following to the options for its start-up menu:
    bdev=/dev/sda1 iso=/Sources/LinuxMX.iso

    Note that it’s iso= (not fromiso=) and, of course, the bdev= option may not be the same for others. Not very convenient, but it’ll do for my immediate trial purposes.

    Re: Boot ISO Using Grub4Dos

    #4 Post by JayM » Sun Jun 30, 2019 11:48 pm

    Re: Boot ISO Using Grub4Dos

    #5 Post by Arvy » Mon Jul 01, 2019 12:14 am

    Thanks very much for the suggestion, JayM. That would be great. Unfortunately, when the ISO is booted directly as I’m doing with Grub4dos, it behaves as if it were booted on optical media and doesn’t provide the the F8 Save option in the start-up menu.

    Eventually, I’ll get around to setting things up properly, but for now it’s just at the experimental exploratory stage. So I’ll just have to accept some temporary inconveniences of my own making. Other than that, I’m quite favourably impressed so far.

    Re: Boot ISO Using Grub4Dos

    #6 Post by JayM » Mon Jul 01, 2019 12:28 am

    If you want to enable persistence you can configure it to use a separate USB thumbdrive for that. I can’t tell you how as I’ve never tried it but I believe it’s documented either in the user manual or the wiki. That would give you another thing to experiment and have fun with.

    Another thing you could try is to temporarily burn the ISO directly to a USB stick with MX Live USB Maker, boot from it to its main settings menu screen then enable saving and add your boot parameters and see if it will still boot from the USB using them. If so, you can remaster then create a snapshot of it, then boot from your snapshot ISO inGrub4Dos and see if your boot parameters are still there (they should be.) That might be a fun thing to try.

    Re: Boot ISO Using Grub4Dos [UPDATE]

    #7 Post by Arvy » Mon Jul 01, 2019 12:45 am

    Okay, I may try that and I’ll post back if I do, but maybe not for a day or two. At this stage, having only recently moved to Linux from Windows, I’m just beginning to explore the differences among various distros and haven’t yet even discovered all of their config parameters and where each one locates them all. And yes, I’m having plenty of fun. But it’s now past this old geezer’s bed time.

    Sorry, Jay, but having seen enough of the demo to make me over-eager to try out a full installation, I skipped over your suggested experiments and just went ahead with a standard single-partition setup on one of my SSDs. Wanted to install on an NVMe device, but for some reason the GParted version invoked by the MX installer wouldn’t allow me to resize the existing nvme0n1p1 ext4 partition to create an new one there. Anyhow, the full setup is working fine. Now I just have to get all of the multipe OS boot managers «synchronized» with each other.

    Re: [SOLVED] Boot ISO Using Grub4Dos

    #8 Post by Arvy » Sun Jul 07, 2019 3:08 pm

    I don’t normally reply to my own queries, but, in view of the suggestions offered by fehlix and JayM, the final outcome may be of some general interest. In essence, I ended up «dumping» Grub4Dos completely in favour of Grub2 — more or less what fehlix was suggesting, I think, except than no Grub2Win was actually required as a replacement.

    My own solution was made easier by the very recent Windows capability for recognizing more than a single partition on USB sticks. (Only W10.1809 and later AFAIK.) Provided that the first partition is Windows readable (i.e., FAT32 or NTFS), a second partition can be ext4 formatted. That second partition can then be mounted and specified as the target (—boot-directory=) for a standard Grub2 installation. Thus, in addition to Grub2’s normal handling of the ext4 partition’s contents, including ISOs, it can also chainload the windows boot manager (ntldr /bootmgr) on the first partition and that, in turn, can handle options for booting WinPE and WinRE image files on that part of the USB stick.

    For those with earlier Windows versions who may be forced to use Grub4Dos to accomplish similar multi-boot USB purposes, it is critical to avoid formatting any ext4 partitions with 64-bit extensions. Grub4Dos can’t handle them. If necessary, any pre-existing 64-bit ext4 partition extensions can be removed with the sudo resize2fs -s /dev/sdXY command. They don’t actually accomplish much for anything under 16 TB anyhow.

    Источник

    Читайте также:  Изменить загрузочный диск линукс
    Оцените статью