Page 3 of 14 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 133

Thread: Bootable USB and Grub2 dual boot

  1. #21
    Join Date
    Jun 2014
    Beans
    5,890

    Re: Bootable USB and Grub2 dual boot

    There is no reason one cannot install windows 10 from a usb if you know how to put it on a usb and make it bootable. Since 95%+ of windows users never install any operating system, it is not commonly known or done.

    If you don't have windows uefi boot files on the drive, you will need to get them and you definitely won't get them from any Ubuntu, Xubuntu or other Linux system as they are part of the proprietary microsoft windows system. You may be able to get something from the microsoft site, at least that would be the first place I would look. The link below explains one method and it is the microsoft site. As you can see if you read it, you will need another computer with windows.

    https://answers.microsoft.com/en-us/...8-af0085cb67a9

    In the past I tried installing directly from a iso on usb but that didn’t wor
    Not sure what you did wrong but almost any Ubuntu derivative has been able to boot an iso from copied to a drive partition for many years with Grub2. It can be booted from Grub installed on a usb or Grub installed on an internal hard drive and the iso file can be on a usb partition or on a partition on an internal hard drive or external hard drive. Grub4dos is a modified version of Grub designed to work on a windows system. I've never used it myself but Grub Legacy can and has been able to boot extracted iso files copied to a partition on an internal or external drive or on a usb. I would think that being the case, grub4dos would be able to do the same. I've booted the windows 10 installer which I extracted and then copied to a partition on a usb successfully using Grub Legacy.

    Trying to do it with my grub4dos usb
    Does that mean you are trying to boot the Elementary OS iso with grub4dos? Do you have the Elementary iso on the usb where you have grub4dos? What is the menu entry which you are using that gives you that error? Does grub4dos use a menu.lst file? Does grub4dos use a grub.cfg file? In either case, what exactly is the entry. I hope you are not trying to boot the iso directly with grub4dos as I can't image that would work.

  2. #22
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Bootable USB and Grub2 dual boot

    Your grub4dos is just that. An old copy of grub legacy last really supported booting MBR(msdos) based systems.
    Grub2 was the new update released in 2009/2010.

    Since for DOS booting, it will not normally work with UEFI boot.
    In DOS mode it was used by EasyBCD and that did some minor fixes. But EasyBCD not recommended for UEFI boot.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #23
    Join Date
    Jan 2020
    Beans
    62

    Re: Bootable USB and Grub2 dual boot

    Yes it uses menu.lst
    I think it would be best to let go of grub4dos and just work on a empty usb drive, let’s put the basic grup2 on it.
    I have read so many tutorials, videos and forums by now but when I run into a error or outdated info I’m stuck. Noob..
    So keep in mind they everything has to be taught to me.
    So far I have learned how to navigate the terminal.

    Also explain what is the best way to partition the usb.

    Thank you.

  4. #24
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Bootable USB and Grub2 dual boot

    On my 16GB or smaller flash drives I set partitioning to gpt and just have one larger partition.
    On larger flash drives, I typically do a full install which then also installs grub. Then edit grub.cfg to load my ISO from a folder on my drive. I also do the same for my sdb drive to install into sda or vice-versa.
    Biggest issue is getting path to folder & file correct and different versions of Ubuntu's ISO have changed. I often have to open ISO and check the grub.cfg in the ISO for correct file names & boot parameters.

    See post #15 for examples. I have used those in the past. After you review several links & experiment then you should be able to learn how to do it.

    Another example:
    https://ubuntuforums.org/showthread.php?t=2276498

    I also have converted to using lables, not UUIDs and configfile for grub stanza to boot ISO.
    I would update to a new ISO, and forget to run sudo update-grub. Reboot & redo.
    With configfile my grub.cfg never changes, but I can edit my livecdimage.cfg file at will & it just works.
    Use labels:
    https://askubuntu.com/questions/3441...on-a-usb-drive
    https://ubuntuforums.org/showthread....2#post13783902
    Configfile example
    https://ubuntuforums.org/showthread....2#post13788092
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #25
    Join Date
    Jun 2014
    Beans
    5,890

    Re: Bootable USB and Grub2 dual boot

    nstalling Grub2 to a drive (hard drive or flash drive) is explained in detail at the Ubuntu documentation site below. Various methods are expalined. I think the suggestion by oldfred to do an actual install to a usb would be the best way to go.

    https://help.ubuntu.com/community/Grub2/Installing

  6. #26
    Join Date
    Jan 2020
    Beans
    62

    Re: Bootable USB and Grub2 dual boot

    Actual install of?

  7. #27
    Join Date
    Jan 2020
    Beans
    62

    Re: Bootable USB and Grub2 dual boot

    after many hours and many fails i now have a test usb working with grub using: https://wiki.archlinux.org/index.php...boot_USB_drive
    There where no errors during setup however when i booted in eufi and in mbr mode even with secure boot grub loads but it shows 3 small errors but they lest only 1 second and then it says GRUB.....

    So maybe thats normal i dunno..?
    Now how do i configure the menu? (i can't directly open the efi partition)

    This is how it looks like: (in gparted)
    GPT.... (7.54 GB)
    /dev/sdb1 BIOS grub2 core.img 1 MB bios, grub
    /dev/sdb2 EFI fat32 4.59 MB boot, esp
    /dev/sdb3 USB Sticky ntfs 7.04 GB msftdata <<<<< I want the iso's on this parttion.
    unallocated - unallocated - -

    Quick question: why does it say grub2 core.img instead of a actual filesystem?
    And why is there alwasy a 1 MB unused space?

    Edit: so far i know how to mount my partition 2 so i can see whats in there, can also do it with cd or ls, which you all probably know.
    mkdir /mnt/temp
    mount /dev/sdb2 /mnt/temp
    And in here i see the grub.cfg, i can open it but not change it.
    It says:
    search.fs_uuid 52910a2c-232c-4739-b697-3462276a44d4 root hd0,msdos4 set prefix=($root)'/DATA_MOUNTPOINT/boot/grub'
    configfile $prefix/grub.cfg
    The ntfs data partition contains: boot/EFI with nothing it it... ?
    Last edited by ayudha; April 8th, 2020 at 11:03 AM.

  8. #28
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Bootable USB and Grub2 dual boot

    It looks like you used MBR as this would say gpt4 otherwise:
    root hd0,msdos4
    But you only mentioned 3 partitions. Or is this referring to a different drive?

    UEFI requires an ESP, it can be in a MBR drive, but full install should be gpt.
    The bios_grub for for BIOS boot.

    Grub in old grub legacy on MBR drives used the unused sectors between the MBR and the first partition for core.img which is additional code grub needs as MBR is too tiny.
    With gpt there is a protective MBR so old partition tools that do not know gpt will find one gpt partition in the MBR & know something is on drive. But there is no space between MBR and start of gpt partition table. So with gpt grub2 in BIOS mode needs the bios_grub for core.img.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #29
    Join Date
    Jan 2020
    Beans
    62

    Re: Bootable USB and Grub2 dual boot

    I have harddrive and usb in GPT tables.
    i have my usb divided into 3 partitions as the site suggested, first is for mbr boot, second is for efi boot, third is for the files and iso.
    Second partition does have ESP nad if UEFI.
    Bios grub i have set to the first partition like you said.

    but what you mean with:
    It looks like you used MBR as this would say gpt4 otherwise:root hd0,msdos4



    i have no clue.

    So this is correct? (/dev/sdb1 BIOS grub2 core.img 1 MB bios, grub)

    To summary's it again: i have the usb working, both with legacy boot and eufi boot.
    The problem now is i have no clue how to write a menu entry that can install windows iso/or extracted and install for example elemantry. And both for legacy and eufi boot.

  10. #30
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Bootable USB and Grub2 dual boot

    You cannot do Windows.

    You have to create a grub.cfg that is referred to from the ESP's grub's configfile.
    I do not have an example anymore as all my flash drives are full installs. Several 2GB that used to work are now too small. I now added rEFInd to them for emergency UEFI boot.

    Links posted above in several posts all have various examples.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 3 of 14 FirstFirst 1234513 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •