Ubuntu won't boot after installation on second hard drive?












1















I've seen variants of this question on here, but so far none of the solutions I tried have worked.



I have an SSD with Windows on it, and an unallocated HDD that I want to run Ubuntu on. The windows SSD is in UEFI mode. I've heard that if I want to boot from Grub, I need ubuntu to also be in this mode rather than legacy mode. I went into BIOS and changed "UEFI+Legacy" to just "UEFI." I set up a usb using Rufus, it showed up as UEFI. I set it in BIOS as first priority and booted.



I chose "something else" in installation. I've tried many versions of the next step: partitioning the HDD as "/boot" and "/" and "swap." I've tried without the "/boot". I've tried without "/boot" and "/". I've also tried just normal installation "alongside Windows boot manager." In all cases the installation seems to work fine, and then it tells me to restart. I go into BIOS, but the HDD does not show up in UEFI mode, only if I change it back to UEFI+Legacy mode. If I then boot from this, depending on how I partitioned the hard drive, it either tells me "reboot or select proper boot device or insert insert boot media and press any key," or instead of this, there will be just a cursor on a black screen flashing forever until I turn off the PC.



Some have said that to fix the blinking cursor, I need to boot to this hard drive and hold shift to bring up Grubs and then edit a line, which will let me install needed drivers (I built my pc, I have an NVIDIA GPU, msi x470 motherboard, 16 GB RAM). If I do this, the screen comes up with "GRUBS..." and then nothing else after that. So I'm not sure how to make this edit.



I'm not sure if I'm partitioning incorrectly or what. I tried 1 Gb for /boot, 20 GB for swap, the rest for /. And other combinations. But even if I get Ubuntu to finally boot, I think my HDD will still be in legacy mode, so I wouldn't be able to boot both Ubuntu and Windows from Grub, I would have to change the priority every time I want to change operating systems. Am I supposed to check some box or something during installation to make it UEFI mode? I booted the usb in UEFI mode so I'm not sure if that was enough. But at this point I'm fine going into BIOS every time to change as long as I can at least get Ubuntu to finally boot. I've been playing with boot-repair but can't seem to get it to work, but maybe I'm not using it right.



If anyone has a solution to this, that would be great. Please let me know if more information is needed.










share|improve this question



























    1















    I've seen variants of this question on here, but so far none of the solutions I tried have worked.



    I have an SSD with Windows on it, and an unallocated HDD that I want to run Ubuntu on. The windows SSD is in UEFI mode. I've heard that if I want to boot from Grub, I need ubuntu to also be in this mode rather than legacy mode. I went into BIOS and changed "UEFI+Legacy" to just "UEFI." I set up a usb using Rufus, it showed up as UEFI. I set it in BIOS as first priority and booted.



    I chose "something else" in installation. I've tried many versions of the next step: partitioning the HDD as "/boot" and "/" and "swap." I've tried without the "/boot". I've tried without "/boot" and "/". I've also tried just normal installation "alongside Windows boot manager." In all cases the installation seems to work fine, and then it tells me to restart. I go into BIOS, but the HDD does not show up in UEFI mode, only if I change it back to UEFI+Legacy mode. If I then boot from this, depending on how I partitioned the hard drive, it either tells me "reboot or select proper boot device or insert insert boot media and press any key," or instead of this, there will be just a cursor on a black screen flashing forever until I turn off the PC.



    Some have said that to fix the blinking cursor, I need to boot to this hard drive and hold shift to bring up Grubs and then edit a line, which will let me install needed drivers (I built my pc, I have an NVIDIA GPU, msi x470 motherboard, 16 GB RAM). If I do this, the screen comes up with "GRUBS..." and then nothing else after that. So I'm not sure how to make this edit.



    I'm not sure if I'm partitioning incorrectly or what. I tried 1 Gb for /boot, 20 GB for swap, the rest for /. And other combinations. But even if I get Ubuntu to finally boot, I think my HDD will still be in legacy mode, so I wouldn't be able to boot both Ubuntu and Windows from Grub, I would have to change the priority every time I want to change operating systems. Am I supposed to check some box or something during installation to make it UEFI mode? I booted the usb in UEFI mode so I'm not sure if that was enough. But at this point I'm fine going into BIOS every time to change as long as I can at least get Ubuntu to finally boot. I've been playing with boot-repair but can't seem to get it to work, but maybe I'm not using it right.



    If anyone has a solution to this, that would be great. Please let me know if more information is needed.










    share|improve this question

























      1












      1








      1








      I've seen variants of this question on here, but so far none of the solutions I tried have worked.



      I have an SSD with Windows on it, and an unallocated HDD that I want to run Ubuntu on. The windows SSD is in UEFI mode. I've heard that if I want to boot from Grub, I need ubuntu to also be in this mode rather than legacy mode. I went into BIOS and changed "UEFI+Legacy" to just "UEFI." I set up a usb using Rufus, it showed up as UEFI. I set it in BIOS as first priority and booted.



      I chose "something else" in installation. I've tried many versions of the next step: partitioning the HDD as "/boot" and "/" and "swap." I've tried without the "/boot". I've tried without "/boot" and "/". I've also tried just normal installation "alongside Windows boot manager." In all cases the installation seems to work fine, and then it tells me to restart. I go into BIOS, but the HDD does not show up in UEFI mode, only if I change it back to UEFI+Legacy mode. If I then boot from this, depending on how I partitioned the hard drive, it either tells me "reboot or select proper boot device or insert insert boot media and press any key," or instead of this, there will be just a cursor on a black screen flashing forever until I turn off the PC.



      Some have said that to fix the blinking cursor, I need to boot to this hard drive and hold shift to bring up Grubs and then edit a line, which will let me install needed drivers (I built my pc, I have an NVIDIA GPU, msi x470 motherboard, 16 GB RAM). If I do this, the screen comes up with "GRUBS..." and then nothing else after that. So I'm not sure how to make this edit.



      I'm not sure if I'm partitioning incorrectly or what. I tried 1 Gb for /boot, 20 GB for swap, the rest for /. And other combinations. But even if I get Ubuntu to finally boot, I think my HDD will still be in legacy mode, so I wouldn't be able to boot both Ubuntu and Windows from Grub, I would have to change the priority every time I want to change operating systems. Am I supposed to check some box or something during installation to make it UEFI mode? I booted the usb in UEFI mode so I'm not sure if that was enough. But at this point I'm fine going into BIOS every time to change as long as I can at least get Ubuntu to finally boot. I've been playing with boot-repair but can't seem to get it to work, but maybe I'm not using it right.



      If anyone has a solution to this, that would be great. Please let me know if more information is needed.










      share|improve this question














      I've seen variants of this question on here, but so far none of the solutions I tried have worked.



      I have an SSD with Windows on it, and an unallocated HDD that I want to run Ubuntu on. The windows SSD is in UEFI mode. I've heard that if I want to boot from Grub, I need ubuntu to also be in this mode rather than legacy mode. I went into BIOS and changed "UEFI+Legacy" to just "UEFI." I set up a usb using Rufus, it showed up as UEFI. I set it in BIOS as first priority and booted.



      I chose "something else" in installation. I've tried many versions of the next step: partitioning the HDD as "/boot" and "/" and "swap." I've tried without the "/boot". I've tried without "/boot" and "/". I've also tried just normal installation "alongside Windows boot manager." In all cases the installation seems to work fine, and then it tells me to restart. I go into BIOS, but the HDD does not show up in UEFI mode, only if I change it back to UEFI+Legacy mode. If I then boot from this, depending on how I partitioned the hard drive, it either tells me "reboot or select proper boot device or insert insert boot media and press any key," or instead of this, there will be just a cursor on a black screen flashing forever until I turn off the PC.



      Some have said that to fix the blinking cursor, I need to boot to this hard drive and hold shift to bring up Grubs and then edit a line, which will let me install needed drivers (I built my pc, I have an NVIDIA GPU, msi x470 motherboard, 16 GB RAM). If I do this, the screen comes up with "GRUBS..." and then nothing else after that. So I'm not sure how to make this edit.



      I'm not sure if I'm partitioning incorrectly or what. I tried 1 Gb for /boot, 20 GB for swap, the rest for /. And other combinations. But even if I get Ubuntu to finally boot, I think my HDD will still be in legacy mode, so I wouldn't be able to boot both Ubuntu and Windows from Grub, I would have to change the priority every time I want to change operating systems. Am I supposed to check some box or something during installation to make it UEFI mode? I booted the usb in UEFI mode so I'm not sure if that was enough. But at this point I'm fine going into BIOS every time to change as long as I can at least get Ubuntu to finally boot. I've been playing with boot-repair but can't seem to get it to work, but maybe I'm not using it right.



      If anyone has a solution to this, that would be great. Please let me know if more information is needed.







      boot grub2 partitioning uefi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 9 at 5:03









      ChaseChase

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Your HDD needs to be partitioned using GPT not MBR which is usually the default, then the UEFI BIOS should find it ok. It's a good idea to use the Ubuntu disk partitioning tool in the Live disk to setup your partitions before you begin the install so it's easier to see what you're doing and where everything is going.



          Also you need to set the first drive which I'm guessing is your Windows SSD as the location for the bootloader in the /EFI partition on the SSD (probably /dev/sda ). That way the installer will find your Windows boot files and let GRUB give you the option of which OS to boot.



          On the subject of partition sizes, with 16gigs of RAM you don't need a 20gig swap. No need to create a swap partition at all really as the installer will create a swapfile in root for you. And unless you intend to "hibernate" Ubuntu (suspend to disk), you don't need more than a gig or two of swapfile. If you will be hibernating then you'll need a 16gig swapfile. I have 32gigs and no swapfile at all as I have plenty of RAM to run everything I need without running out of memory. YMMV.






          share|improve this answer
























          • Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

            – Chase
            Jan 9 at 6:10











          • Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

            – Chase
            Jan 9 at 7:30













          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f1108178%2fubuntu-wont-boot-after-installation-on-second-hard-drive%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Your HDD needs to be partitioned using GPT not MBR which is usually the default, then the UEFI BIOS should find it ok. It's a good idea to use the Ubuntu disk partitioning tool in the Live disk to setup your partitions before you begin the install so it's easier to see what you're doing and where everything is going.



          Also you need to set the first drive which I'm guessing is your Windows SSD as the location for the bootloader in the /EFI partition on the SSD (probably /dev/sda ). That way the installer will find your Windows boot files and let GRUB give you the option of which OS to boot.



          On the subject of partition sizes, with 16gigs of RAM you don't need a 20gig swap. No need to create a swap partition at all really as the installer will create a swapfile in root for you. And unless you intend to "hibernate" Ubuntu (suspend to disk), you don't need more than a gig or two of swapfile. If you will be hibernating then you'll need a 16gig swapfile. I have 32gigs and no swapfile at all as I have plenty of RAM to run everything I need without running out of memory. YMMV.






          share|improve this answer
























          • Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

            – Chase
            Jan 9 at 6:10











          • Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

            – Chase
            Jan 9 at 7:30


















          1














          Your HDD needs to be partitioned using GPT not MBR which is usually the default, then the UEFI BIOS should find it ok. It's a good idea to use the Ubuntu disk partitioning tool in the Live disk to setup your partitions before you begin the install so it's easier to see what you're doing and where everything is going.



          Also you need to set the first drive which I'm guessing is your Windows SSD as the location for the bootloader in the /EFI partition on the SSD (probably /dev/sda ). That way the installer will find your Windows boot files and let GRUB give you the option of which OS to boot.



          On the subject of partition sizes, with 16gigs of RAM you don't need a 20gig swap. No need to create a swap partition at all really as the installer will create a swapfile in root for you. And unless you intend to "hibernate" Ubuntu (suspend to disk), you don't need more than a gig or two of swapfile. If you will be hibernating then you'll need a 16gig swapfile. I have 32gigs and no swapfile at all as I have plenty of RAM to run everything I need without running out of memory. YMMV.






          share|improve this answer
























          • Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

            – Chase
            Jan 9 at 6:10











          • Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

            – Chase
            Jan 9 at 7:30
















          1












          1








          1







          Your HDD needs to be partitioned using GPT not MBR which is usually the default, then the UEFI BIOS should find it ok. It's a good idea to use the Ubuntu disk partitioning tool in the Live disk to setup your partitions before you begin the install so it's easier to see what you're doing and where everything is going.



          Also you need to set the first drive which I'm guessing is your Windows SSD as the location for the bootloader in the /EFI partition on the SSD (probably /dev/sda ). That way the installer will find your Windows boot files and let GRUB give you the option of which OS to boot.



          On the subject of partition sizes, with 16gigs of RAM you don't need a 20gig swap. No need to create a swap partition at all really as the installer will create a swapfile in root for you. And unless you intend to "hibernate" Ubuntu (suspend to disk), you don't need more than a gig or two of swapfile. If you will be hibernating then you'll need a 16gig swapfile. I have 32gigs and no swapfile at all as I have plenty of RAM to run everything I need without running out of memory. YMMV.






          share|improve this answer













          Your HDD needs to be partitioned using GPT not MBR which is usually the default, then the UEFI BIOS should find it ok. It's a good idea to use the Ubuntu disk partitioning tool in the Live disk to setup your partitions before you begin the install so it's easier to see what you're doing and where everything is going.



          Also you need to set the first drive which I'm guessing is your Windows SSD as the location for the bootloader in the /EFI partition on the SSD (probably /dev/sda ). That way the installer will find your Windows boot files and let GRUB give you the option of which OS to boot.



          On the subject of partition sizes, with 16gigs of RAM you don't need a 20gig swap. No need to create a swap partition at all really as the installer will create a swapfile in root for you. And unless you intend to "hibernate" Ubuntu (suspend to disk), you don't need more than a gig or two of swapfile. If you will be hibernating then you'll need a 16gig swapfile. I have 32gigs and no swapfile at all as I have plenty of RAM to run everything I need without running out of memory. YMMV.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 9 at 5:41









          CompaticoCompatico

          1114




          1114













          • Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

            – Chase
            Jan 9 at 6:10











          • Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

            – Chase
            Jan 9 at 7:30





















          • Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

            – Chase
            Jan 9 at 6:10











          • Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

            – Chase
            Jan 9 at 7:30



















          Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

          – Chase
          Jan 9 at 6:10





          Ok, so I should have a swap file of 1 or 2 gigs or none at all? How do I set my SSD as the location for the bootloader in the /EFI partition? As in, what exactly do I write? Is EFI a file type to choose or do I type that?

          – Chase
          Jan 9 at 6:10













          Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

          – Chase
          Jan 9 at 7:30







          Actually, I think I figured it out. But now Ubuntu is laggy and I think that this is now the video card problem that some were talking about

          – Chase
          Jan 9 at 7:30




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108178%2fubuntu-wont-boot-after-installation-on-second-hard-drive%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          File:DeusFollowingSea.jpg