Results 1 to 6 of 6

Thread: How to install GRUB 2 to USB drive / pendrive

  1. #1
    Join Date
    Oct 2008
    Location
    Hindustan
    Beans
    146
    Distro
    Ubuntu 12.04 Precise Pangolin

    How to install GRUB 2 to USB drive / pendrive

    I know this can be done with install-grub command in recent ubuntu release. How can i install it from puppy linux or distro which does not use grub 2. Will my pendrive boot if i copy /boot/grub from ubuntu 10.04 live cd to /boot/grub of my pendrive?
    Last edited by sundar_ima; June 24th, 2010 at 11:21 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    Hindustan
    Beans
    146
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to install GRUB 2 to USB drive / pendrive

    Any help???

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to install GRUB 2 to USB drive / pendrive

    I installed grub2 to a 4GB flash drive and boot several ISOs directly. If you have another system on the flash drive you would have to figure out the correct grub2 entry for that system.

    MultiBoot USB with Grub2 (boot directly from iso files)
    Is full script, I only used some commands
    http://www.panticz.de/MultiBootUSB
    HOWTO: Booting LiveCD ISOs from USB flash drive with Grub2
    http://ubuntuforums.org/showthread.php?t=1288604
    Basically you just install grub2, create a folder for the isos and edit a grub.cfg to loop mount the isos.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Oct 2008
    Location
    Hindustan
    Beans
    146
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to install GRUB 2 to USB drive / pendrive

    Quote Originally Posted by oldfred View Post
    I installed grub2 to a 4GB flash drive and boot several ISOs directly. If you have another system on the flash drive you would have to figure out the correct grub2 entry for that system.

    MultiBoot USB with Grub2 (boot directly from iso files)
    Is full script, I only used some commands
    http://www.panticz.de/MultiBootUSB
    HOWTO: Booting LiveCD ISOs from USB flash drive with Grub2
    http://ubuntuforums.org/showthread.php?t=1288604
    Basically you just install grub2, create a folder for the isos and edit a grub.cfg to loop mount the isos.
    Thank you oldfred for your reply.

    I am aware that this command sudo grub-install --root-directory=/media/USBFolderName /dev/sdx will install GRUB 2 in to pendrive. But this command will not work on puppy linux or any other distros which does not have grub 2 as its default boot manager. How will you install in that case??

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to install GRUB 2 to USB drive / pendrive

    Just because the default is not grub2 does not mean it cannot be booted with grub2. Figuring out the settings can be fun. If an install uses old grub I would consider a chainboot entry. That can easily be added to grub2 and old grub installed to the system partition. Not sure you can chainboot with USB as space in partition may not be available.

    http://www.murga-linux.com/puppy/vie...542410010ef851

    This is with boot loader in MBR change to (hdX,Y) if in PBR. Where X is drive & Y is partition.
    menuentry "9.04 on sdb (from sdc) Chainboot" {
    set root=(hd2)
    chainloader +1
    }

    USB drives may get renumbered depending on where the system puts them so sometimes the entires have to be adjusted.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to install GRUB 2 to USB drive / pendrive

    Have a look in the Puppy forums, there is discussion of grub2 booting there.

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
  •