Trying to reinstall GRUB 2, cannot find a device for /boot (is /dev mounted?)
I was trying to install a new Ubuntu 12.04 installation next to my old 10.10 installation, and I've run into a problem. My computer seems to have a finicky BIOS, and wants a boot partition less than 40 GB in size. So, when I installed 10.10, I split the system into /boot on /dev/sda1 and / on /dev/sda6.
When I installed 12.04 LTS, I totally forgot about it, and now I need to reinstall GRUB. But, I seem to be getting an error.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Installation finished. No error reported.
I'm running this from a Linux Mint live USB device that I had lying around, the GRUB version is the same as the one Ubuntu 12.04 uses, I think.
So, is there something I'm missing, or would it be a better idea to just restart the Ubuntu installation?
grub2
add a comment |
I was trying to install a new Ubuntu 12.04 installation next to my old 10.10 installation, and I've run into a problem. My computer seems to have a finicky BIOS, and wants a boot partition less than 40 GB in size. So, when I installed 10.10, I split the system into /boot on /dev/sda1 and / on /dev/sda6.
When I installed 12.04 LTS, I totally forgot about it, and now I need to reinstall GRUB. But, I seem to be getting an error.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Installation finished. No error reported.
I'm running this from a Linux Mint live USB device that I had lying around, the GRUB version is the same as the one Ubuntu 12.04 uses, I think.
So, is there something I'm missing, or would it be a better idea to just restart the Ubuntu installation?
grub2
add a comment |
I was trying to install a new Ubuntu 12.04 installation next to my old 10.10 installation, and I've run into a problem. My computer seems to have a finicky BIOS, and wants a boot partition less than 40 GB in size. So, when I installed 10.10, I split the system into /boot on /dev/sda1 and / on /dev/sda6.
When I installed 12.04 LTS, I totally forgot about it, and now I need to reinstall GRUB. But, I seem to be getting an error.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Installation finished. No error reported.
I'm running this from a Linux Mint live USB device that I had lying around, the GRUB version is the same as the one Ubuntu 12.04 uses, I think.
So, is there something I'm missing, or would it be a better idea to just restart the Ubuntu installation?
grub2
I was trying to install a new Ubuntu 12.04 installation next to my old 10.10 installation, and I've run into a problem. My computer seems to have a finicky BIOS, and wants a boot partition less than 40 GB in size. So, when I installed 10.10, I split the system into /boot on /dev/sda1 and / on /dev/sda6.
When I installed 12.04 LTS, I totally forgot about it, and now I need to reinstall GRUB. But, I seem to be getting an error.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Installation finished. No error reported.
I'm running this from a Linux Mint live USB device that I had lying around, the GRUB version is the same as the one Ubuntu 12.04 uses, I think.
So, is there something I'm missing, or would it be a better idea to just restart the Ubuntu installation?
grub2
grub2
asked Jan 2 '13 at 20:51
Ryan J HootsRyan J Hoots
1413
1413
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I encountered the cannot find a device for /boot (is /dev mounted?)
error message in a VM I was working on. I have no idea if my solution will apply to you, or to anyone else.
I surmised that grub-install
expects to be run inside the host OS filesystem, and it expects to be able to see the mount of the root filesystem for that host.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
I was then able to reboot the VM successfully. My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.
add a comment |
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
});
}
});
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%2faskubuntu.com%2fquestions%2f235362%2ftrying-to-reinstall-grub-2-cannot-find-a-device-for-boot-is-dev-mounted%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
I encountered the cannot find a device for /boot (is /dev mounted?)
error message in a VM I was working on. I have no idea if my solution will apply to you, or to anyone else.
I surmised that grub-install
expects to be run inside the host OS filesystem, and it expects to be able to see the mount of the root filesystem for that host.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
I was then able to reboot the VM successfully. My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.
add a comment |
I encountered the cannot find a device for /boot (is /dev mounted?)
error message in a VM I was working on. I have no idea if my solution will apply to you, or to anyone else.
I surmised that grub-install
expects to be run inside the host OS filesystem, and it expects to be able to see the mount of the root filesystem for that host.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
I was then able to reboot the VM successfully. My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.
add a comment |
I encountered the cannot find a device for /boot (is /dev mounted?)
error message in a VM I was working on. I have no idea if my solution will apply to you, or to anyone else.
I surmised that grub-install
expects to be run inside the host OS filesystem, and it expects to be able to see the mount of the root filesystem for that host.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
I was then able to reboot the VM successfully. My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.
I encountered the cannot find a device for /boot (is /dev mounted?)
error message in a VM I was working on. I have no idea if my solution will apply to you, or to anyone else.
I surmised that grub-install
expects to be run inside the host OS filesystem, and it expects to be able to see the mount of the root filesystem for that host.
I did the following (which I am typing from memory, so it is possible there are errors).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
I was then able to reboot the VM successfully. My host OS was Ubuntu 18.04, and the rescue environment was a version of Debian with a 4.x kernel.
answered Dec 7 '18 at 22:42
mpbmpb
37318
37318
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f235362%2ftrying-to-reinstall-grub-2-cannot-find-a-device-for-boot-is-dev-mounted%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