Make usb with linux bootable

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I wanted to create a bootable Linux Lubuntu install on USB flash drive, with persistent state. Apparently, I have messed up the bootloader install: now I have a USB that boots on the particular laptop where it was created, but doesn't boot on other PCs (doesn't show up in the bootable devices list). And the laptop now enters grub console right at boot, when the USB flash drive is not plugged in. It is possible to boot the OEM Windows that's on the laptop's hdd only if I select the appropriate boot device in the bios menu.



That problem with pc entering grub console at boot is a separate problem that I think I know how to fix. However, I'd like to fix that usb flash drive now.



There's a /boot directory on the Lubuntu flash drive, with grub config in /boot/grub/grub.cfg where I can recognize the grub menu items that are displayed when the laptop boots up with flash drive plugged in. So, apparently the bootloader is installed on the laptop's hdd, and the bootloader points to the grub config that's on the flash drive.



If I do $ file -s /dev/sdb, I get




/dev/sdb: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS
(0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 31083985
sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS
(0x3ff,254,63), startsector 31088638, 219586562 sectors




I am not sure this is expected response if the usb is not bootable.



My question is how I can now make the flash drive bootable, without disturbing its contents? And how I make it load the flash drive's grub config file when the pc is booted from it. I wonder also if the grub menu item commands should be adjusted so that the references to bootable partition work regardless of the pc the flash drive is booted on.










share|improve this question



























    up vote
    0
    down vote

    favorite












    I wanted to create a bootable Linux Lubuntu install on USB flash drive, with persistent state. Apparently, I have messed up the bootloader install: now I have a USB that boots on the particular laptop where it was created, but doesn't boot on other PCs (doesn't show up in the bootable devices list). And the laptop now enters grub console right at boot, when the USB flash drive is not plugged in. It is possible to boot the OEM Windows that's on the laptop's hdd only if I select the appropriate boot device in the bios menu.



    That problem with pc entering grub console at boot is a separate problem that I think I know how to fix. However, I'd like to fix that usb flash drive now.



    There's a /boot directory on the Lubuntu flash drive, with grub config in /boot/grub/grub.cfg where I can recognize the grub menu items that are displayed when the laptop boots up with flash drive plugged in. So, apparently the bootloader is installed on the laptop's hdd, and the bootloader points to the grub config that's on the flash drive.



    If I do $ file -s /dev/sdb, I get




    /dev/sdb: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS
    (0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 31083985
    sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS
    (0x3ff,254,63), startsector 31088638, 219586562 sectors




    I am not sure this is expected response if the usb is not bootable.



    My question is how I can now make the flash drive bootable, without disturbing its contents? And how I make it load the flash drive's grub config file when the pc is booted from it. I wonder also if the grub menu item commands should be adjusted so that the references to bootable partition work regardless of the pc the flash drive is booted on.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I wanted to create a bootable Linux Lubuntu install on USB flash drive, with persistent state. Apparently, I have messed up the bootloader install: now I have a USB that boots on the particular laptop where it was created, but doesn't boot on other PCs (doesn't show up in the bootable devices list). And the laptop now enters grub console right at boot, when the USB flash drive is not plugged in. It is possible to boot the OEM Windows that's on the laptop's hdd only if I select the appropriate boot device in the bios menu.



      That problem with pc entering grub console at boot is a separate problem that I think I know how to fix. However, I'd like to fix that usb flash drive now.



      There's a /boot directory on the Lubuntu flash drive, with grub config in /boot/grub/grub.cfg where I can recognize the grub menu items that are displayed when the laptop boots up with flash drive plugged in. So, apparently the bootloader is installed on the laptop's hdd, and the bootloader points to the grub config that's on the flash drive.



      If I do $ file -s /dev/sdb, I get




      /dev/sdb: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS
      (0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 31083985
      sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS
      (0x3ff,254,63), startsector 31088638, 219586562 sectors




      I am not sure this is expected response if the usb is not bootable.



      My question is how I can now make the flash drive bootable, without disturbing its contents? And how I make it load the flash drive's grub config file when the pc is booted from it. I wonder also if the grub menu item commands should be adjusted so that the references to bootable partition work regardless of the pc the flash drive is booted on.










      share|improve this question















      I wanted to create a bootable Linux Lubuntu install on USB flash drive, with persistent state. Apparently, I have messed up the bootloader install: now I have a USB that boots on the particular laptop where it was created, but doesn't boot on other PCs (doesn't show up in the bootable devices list). And the laptop now enters grub console right at boot, when the USB flash drive is not plugged in. It is possible to boot the OEM Windows that's on the laptop's hdd only if I select the appropriate boot device in the bios menu.



      That problem with pc entering grub console at boot is a separate problem that I think I know how to fix. However, I'd like to fix that usb flash drive now.



      There's a /boot directory on the Lubuntu flash drive, with grub config in /boot/grub/grub.cfg where I can recognize the grub menu items that are displayed when the laptop boots up with flash drive plugged in. So, apparently the bootloader is installed on the laptop's hdd, and the bootloader points to the grub config that's on the flash drive.



      If I do $ file -s /dev/sdb, I get




      /dev/sdb: DOS/MBR boot sector; partition 1 : ID=0x83, start-CHS
      (0x0,32,33), end-CHS (0x3ff,254,63), startsector 2048, 31083985
      sectors; partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS
      (0x3ff,254,63), startsector 31088638, 219586562 sectors




      I am not sure this is expected response if the usb is not bootable.



      My question is how I can now make the flash drive bootable, without disturbing its contents? And how I make it load the flash drive's grub config file when the pc is booted from it. I wonder also if the grub menu item commands should be adjusted so that the references to bootable partition work regardless of the pc the flash drive is booted on.







      boot grub2 usb-drive






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 14 at 11:30

























      asked Apr 14 at 11:13









      Passiday

      1284




      1284




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          i might give you a way



          there is a software which helped me a year ago when i felt the same problem
          i am giving you the software's link
          use it in any windows platform.



          and do let me know if it worked



          https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar






          share|improve this answer




















          • With all due respect, but running an exe from a stranger is not the way to solve problems.
            – Passiday
            Apr 14 at 13:45










          • indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
            – akgnit
            Apr 14 at 15:33











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024943%2fmake-usb-with-linux-bootable%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          i might give you a way



          there is a software which helped me a year ago when i felt the same problem
          i am giving you the software's link
          use it in any windows platform.



          and do let me know if it worked



          https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar






          share|improve this answer




















          • With all due respect, but running an exe from a stranger is not the way to solve problems.
            – Passiday
            Apr 14 at 13:45










          • indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
            – akgnit
            Apr 14 at 15:33















          up vote
          0
          down vote













          i might give you a way



          there is a software which helped me a year ago when i felt the same problem
          i am giving you the software's link
          use it in any windows platform.



          and do let me know if it worked



          https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar






          share|improve this answer




















          • With all due respect, but running an exe from a stranger is not the way to solve problems.
            – Passiday
            Apr 14 at 13:45










          • indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
            – akgnit
            Apr 14 at 15:33













          up vote
          0
          down vote










          up vote
          0
          down vote









          i might give you a way



          there is a software which helped me a year ago when i felt the same problem
          i am giving you the software's link
          use it in any windows platform.



          and do let me know if it worked



          https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar






          share|improve this answer












          i might give you a way



          there is a software which helped me a year ago when i felt the same problem
          i am giving you the software's link
          use it in any windows platform.



          and do let me know if it worked



          https://github.com/akgnit/Useful-Codes/blob/master/BOOTICEx64_v1.332.rar







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 14 at 11:39









          akgnit

          609




          609











          • With all due respect, but running an exe from a stranger is not the way to solve problems.
            – Passiday
            Apr 14 at 13:45










          • indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
            – akgnit
            Apr 14 at 15:33

















          • With all due respect, but running an exe from a stranger is not the way to solve problems.
            – Passiday
            Apr 14 at 13:45










          • indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
            – akgnit
            Apr 14 at 15:33
















          With all due respect, but running an exe from a stranger is not the way to solve problems.
          – Passiday
          Apr 14 at 13:45




          With all due respect, but running an exe from a stranger is not the way to solve problems.
          – Passiday
          Apr 14 at 13:45












          indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
          – akgnit
          Apr 14 at 15:33





          indeed you are correct.. i told you before only it might be a way. this application is from majorgeeks. so i trusted it
          – akgnit
          Apr 14 at 15:33


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024943%2fmake-usb-with-linux-bootable%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Which professions warranted travel in Medieval times?