How to move EFI from booting primary HDD to internal SSD
I had a machine with Windows 10 on an HDD. I installed a smaller internal SSD and installed Ubuntu 18.04. During the installation process it automatically (with my approval) set up the machine to boot using the EFI partition on the HDD while still booting to the SSD so that it could dual boot into Windows. Now I want to get rid of the HDD, but I am unsure of how to fix the boot loader so it still boots properly. Eventually I am going to replace the HDD with a second SSD, but it will be for data only.
What the quickest way to accomplish this? I found something called "grub customizer" and it comes up and I can modify the items on the boot list to remove everything Windows related, but it's unclear to me what happens after this. I thought maybe I would simply install it to the MBR on my internal flash drive (/dev/sdc
). But when I tried, it wouldn't let me anyway, with the error
cannot find EFI directory
Is there some way to re-run the installer and have it just change where the boot loader is installed? When I try I only see options for trying or installing Ubuntu, and neither is what I really want. What also confuses me a bit is that when I go into the BIOS it lists both "ubuntu" as well as Windows Boot Manager as possible items in the boot order. How does the BIOS know about "ubuntu" and "Windows" as devices when it also lists HDD1, HDD2, USB, etc. which I would expect it to try?
Update: After a bit more research, it appears that the issue is that there needs to be a separate EFI partition (100-250MB (!)) in size which is not present on the SSD. So I would have to create this new partition at the start of the drive with some utility that could move the existing data out of the way. I have looked at utilities like gparted but it is unclear to me if they can move a partition that already has a filesystem on it without losing data - I am aware in the past of extending or shrinking at the end but this would require moving the start. Is this possible or am I resigned to the hassle of a full reinstall to accomplish this?
ubuntu hard-drive boot ssd grub2
add a comment |
I had a machine with Windows 10 on an HDD. I installed a smaller internal SSD and installed Ubuntu 18.04. During the installation process it automatically (with my approval) set up the machine to boot using the EFI partition on the HDD while still booting to the SSD so that it could dual boot into Windows. Now I want to get rid of the HDD, but I am unsure of how to fix the boot loader so it still boots properly. Eventually I am going to replace the HDD with a second SSD, but it will be for data only.
What the quickest way to accomplish this? I found something called "grub customizer" and it comes up and I can modify the items on the boot list to remove everything Windows related, but it's unclear to me what happens after this. I thought maybe I would simply install it to the MBR on my internal flash drive (/dev/sdc
). But when I tried, it wouldn't let me anyway, with the error
cannot find EFI directory
Is there some way to re-run the installer and have it just change where the boot loader is installed? When I try I only see options for trying or installing Ubuntu, and neither is what I really want. What also confuses me a bit is that when I go into the BIOS it lists both "ubuntu" as well as Windows Boot Manager as possible items in the boot order. How does the BIOS know about "ubuntu" and "Windows" as devices when it also lists HDD1, HDD2, USB, etc. which I would expect it to try?
Update: After a bit more research, it appears that the issue is that there needs to be a separate EFI partition (100-250MB (!)) in size which is not present on the SSD. So I would have to create this new partition at the start of the drive with some utility that could move the existing data out of the way. I have looked at utilities like gparted but it is unclear to me if they can move a partition that already has a filesystem on it without losing data - I am aware in the past of extending or shrinking at the end but this would require moving the start. Is this possible or am I resigned to the hassle of a full reinstall to accomplish this?
ubuntu hard-drive boot ssd grub2
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06
add a comment |
I had a machine with Windows 10 on an HDD. I installed a smaller internal SSD and installed Ubuntu 18.04. During the installation process it automatically (with my approval) set up the machine to boot using the EFI partition on the HDD while still booting to the SSD so that it could dual boot into Windows. Now I want to get rid of the HDD, but I am unsure of how to fix the boot loader so it still boots properly. Eventually I am going to replace the HDD with a second SSD, but it will be for data only.
What the quickest way to accomplish this? I found something called "grub customizer" and it comes up and I can modify the items on the boot list to remove everything Windows related, but it's unclear to me what happens after this. I thought maybe I would simply install it to the MBR on my internal flash drive (/dev/sdc
). But when I tried, it wouldn't let me anyway, with the error
cannot find EFI directory
Is there some way to re-run the installer and have it just change where the boot loader is installed? When I try I only see options for trying or installing Ubuntu, and neither is what I really want. What also confuses me a bit is that when I go into the BIOS it lists both "ubuntu" as well as Windows Boot Manager as possible items in the boot order. How does the BIOS know about "ubuntu" and "Windows" as devices when it also lists HDD1, HDD2, USB, etc. which I would expect it to try?
Update: After a bit more research, it appears that the issue is that there needs to be a separate EFI partition (100-250MB (!)) in size which is not present on the SSD. So I would have to create this new partition at the start of the drive with some utility that could move the existing data out of the way. I have looked at utilities like gparted but it is unclear to me if they can move a partition that already has a filesystem on it without losing data - I am aware in the past of extending or shrinking at the end but this would require moving the start. Is this possible or am I resigned to the hassle of a full reinstall to accomplish this?
ubuntu hard-drive boot ssd grub2
I had a machine with Windows 10 on an HDD. I installed a smaller internal SSD and installed Ubuntu 18.04. During the installation process it automatically (with my approval) set up the machine to boot using the EFI partition on the HDD while still booting to the SSD so that it could dual boot into Windows. Now I want to get rid of the HDD, but I am unsure of how to fix the boot loader so it still boots properly. Eventually I am going to replace the HDD with a second SSD, but it will be for data only.
What the quickest way to accomplish this? I found something called "grub customizer" and it comes up and I can modify the items on the boot list to remove everything Windows related, but it's unclear to me what happens after this. I thought maybe I would simply install it to the MBR on my internal flash drive (/dev/sdc
). But when I tried, it wouldn't let me anyway, with the error
cannot find EFI directory
Is there some way to re-run the installer and have it just change where the boot loader is installed? When I try I only see options for trying or installing Ubuntu, and neither is what I really want. What also confuses me a bit is that when I go into the BIOS it lists both "ubuntu" as well as Windows Boot Manager as possible items in the boot order. How does the BIOS know about "ubuntu" and "Windows" as devices when it also lists HDD1, HDD2, USB, etc. which I would expect it to try?
Update: After a bit more research, it appears that the issue is that there needs to be a separate EFI partition (100-250MB (!)) in size which is not present on the SSD. So I would have to create this new partition at the start of the drive with some utility that could move the existing data out of the way. I have looked at utilities like gparted but it is unclear to me if they can move a partition that already has a filesystem on it without losing data - I am aware in the past of extending or shrinking at the end but this would require moving the start. Is this possible or am I resigned to the hassle of a full reinstall to accomplish this?
ubuntu hard-drive boot ssd grub2
ubuntu hard-drive boot ssd grub2
edited Dec 11 at 4:43
asked Dec 11 at 2:30
Michael
1,43351536
1,43351536
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06
add a comment |
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382498%2fhow-to-move-efi-from-booting-primary-hdd-to-internal-ssd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382498%2fhow-to-move-efi-from-booting-primary-hdd-to-internal-ssd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
You're likely going to need to boot to grub, then copy the EFI files from the HDD to the SSD
– JW0914
Dec 11 at 19:06