Results 1 to 9 of 9

Thread: GRUB menuentry to boot iso file from USB stick?

  1. #1
    Join Date
    Apr 2012
    Beans
    53

    Thumbs down [SOLVED] GRUB menuentry to boot iso file from USB stick?

    Well, is it possible? I have GRUB on my harddrive and usb stick won't boot, I've tried everything. ubuntu-12.04.1-desktop-amd64.iso

    SOLVE:
    http://www.linuxjournal.com/content/...nager-usb-boot
    http://www.plop.at/en/bootmanager/index.html
    Last edited by 1204; October 10th, 2012 at 04:36 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    Cape Town, South Africa
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GRUB menuentry to boot iso file from USB stick?

    USB boot is something that you choose at your BIOS during bootup. If you have created a proper startup disk from the ubuntu iso, your system should boot from the USB.

    Is that what you wanted or am I mistaken?

  3. #3
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB menuentry to boot iso file from USB stick?

    You select in BIOS to boot the USB flash drive, if you installed in any of the standard ways. If BIOS does not give an option to boot USB port then you may be able to use plop boot loader.

    You can copy the ISO (not a normal install) to a partition and use grub to loop mount the ISO file directly. Does not work with all ISOs. But BIOS still has to support booting from flash drive.

    These are scripts to install many ISOs. Some that will not loopmount by installing a kernel and boot image.
    MultiBootUSB - Install and boot multiple Linux from Pendrive / Flash drive / USB disk w/grub2
    https://help.ubuntu.com/community/In...shDriveUSBDisk
    http://ubuntuforums.org/showthread.php?t=1518273
    http://sourceforge.net/projects/multibootusb/files/
    MultiSystem Another LiveUSB Multiboot French(translate) w/grub2
    http://liveusb.info/dotclear/
    Another: multiboot055.sh
    http://blog.p-mt.net/blog/2009/12/27...oot-usb-stick/
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #4
    Join Date
    Apr 2012
    Beans
    53

    Re: GRUB menuentry to boot iso file from USB stick?

    I have grub on my hard drive and I can get to it by pressing shift. Let's say ubuntu.iso is on my USB stick. Can I write a menuentry to /boot/grub/grub.cfg on my hard drive, that mounts USB drive and reads ubuntu.iso?
    Quote Originally Posted by davidbilla View Post
    USB boot is something that you choose at your BIOS during bootup. If you have created a proper startup disk from the ubuntu iso, your system should boot from the USB.

    Is that what you wanted or am I mistaken?
    But my system don't boot from usb stick, I've tried every BIOS setting. Other machine boots so it's not about usb but my system. Optical drive is broken, which I used before, so it is not an option.
    Last edited by 1204; October 9th, 2012 at 04:01 PM.

  5. #5
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB menuentry to boot iso file from USB stick?

    If BIOS will not let you boot from flash drive on USB port then grub will not boot it.

    How old is computer? Both of mine are about 6 years old and boot from USB flash drives. I was lucky as that was about the time most systems changed BIOS to allow USB boot. On one it has many USB boot choices and none of them boot a flash drive. But when I choose which hard drive to boot, then the flash drive is an option. Flash does have to be bootable for it to appear in hard drive menu.

    If system is older than 6 years then it may not boot flash drives.

    Some have had success using this to boot a USB flash drive when BIOS does not let them boot.

    Boot USB or PCMCIA (new)
    http://www.plop.at/en/home.html
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  6. #6
    Join Date
    Apr 2012
    Beans
    53

    Re: GRUB menuentry to boot iso file from USB stick?

    Quote Originally Posted by oldfred View Post
    If BIOS will not let you boot from flash drive on USB port then grub will not boot it. How old is computer?
    Only 4 years old, and it has boot from USB but it won't boot. I have seen couple PCs that does the same and it just don't boot whatever BIOS options you try. CD always boots, but in this case my drive is broken.


    I think I found it, can I just put /dev/sdb1/file.iso as usb stick usually is? http://ubuntuforums.org/showthread.php?t=1549847

    Code:
    menuentry "Lucid ISO" {
    set isofile="/boot/iso/ubuntu-10.04-desktop-i386.iso"
    loopback loop (hd0,1)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
    initrd (loop)/casper/initrd.lz
    }
    Last edited by 1204; October 9th, 2012 at 06:57 PM.

  7. #7
    Join Date
    Apr 2012
    Beans
    53

    Re: GRUB menuentry to boot iso file from USB stick?

    I have Ubuntu 12.04 at the moment.
    I have upgraded it 10.04-10.10-11.04-11.10-12.04...
    It means my system is bloat and not only because I have tested all kinds of things
    This point it's easier to re-install than clean it
    I have grub on my hard drive and it works
    I would like to do GRUB menu entry to hard drive, that it loads ISO file from my USB stick so I could re-install ubuntu

    It's not impossible but I don't know how. I can learn to do it but I hope someone knows already how to load iso file from usb stick

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB menuentry to boot iso file from USB stick?

    I use the entry you posted, but I am booting ISO from another partition on another drive so it has a slightly different path.

    You have to copy the ISO not a normal install to the flash drive. Most times we are telling users to not copy ISO but use the tools to install/extract the ISO to the flash drive.

    You may/should still install grub2's boot loader to the USB flash drive.
    MultiBoot USB with Grub2 (boot directly from iso files)
    Basically you just install grub2, create a folder for the isos and edit a grub.cfg to loop mount the isos.
    HOWTO: Booting LiveCD ISOs from USB flash drive with Grub2
    http://ubuntuforums.org/showthread.php?t=1288604
    http://ubuntu-ky.ubuntuforums.org/sh....php?t=1535864

    You need to do this and then create a folder in the /boot folder so you have /boot/iso. Then copy the ISO to the /boot/iso folder. Update description in grub entry to exact name of ISO you are booting.
    Install grub2 to USB -general info
    http://members.iinet.net/~herman546/....html#GRUB_USB

    If you are booting from hard drive but want to use partition on USB, the grub2 boot loader will see the USB as hd1. The boot drive is always hd0. With multiple drives it can get very confusing and I often have to manually edit emnu entry to correct drive number when booting as I have several drives and may boot from any of them.

    More examples, no real difference from hard drive and USB flash drive if system will boot from flash drive:
    This will boot an ISO from a hard drive.
    ISO Booting with Grub 2 from Hard drive - drs305
    https://help.ubuntu.com/community/Grub2/ISOBoot
    Examples - you may copy & edit for your path & ISO version
    https://help.ubuntu.com/community/Gr...OBoot/Examples
    http://ubuntuforums.org/showthread.php?t=1549847
    Boot ISO from harddrive. To install it would have to be different partition
    [SOLVED] Using grub 2 to boot an iso off hard drive old examples
    http://ubuntuforums.org/showthread.php?t=1535864
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  9. #9
    Join Date
    Apr 2012
    Beans
    53

    Re: GRUB menuentry to boot iso file from USB stick?

    Thanks guys.

Tags for this Thread

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
  •