Grub unable to find /boot/grub/stage1 file when I try to make a backup of linux on compact flash card
I am trying to make a backup of a compact flash card on another compact flash card. I have used many tools like dd, Win32DiskImager, Ghost backup recovery etc. But when I boot from the backup card, it fails and opens up the grub screen. I have tried solving this issues using root, setup and boot commands. But when I try to find /boot/grub/stage1 or /grub/stage1 file, it fails. Can someone help me with it?
boot grub2 backup grub-legacy
add a comment |
I am trying to make a backup of a compact flash card on another compact flash card. I have used many tools like dd, Win32DiskImager, Ghost backup recovery etc. But when I boot from the backup card, it fails and opens up the grub screen. I have tried solving this issues using root, setup and boot commands. But when I try to find /boot/grub/stage1 or /grub/stage1 file, it fails. Can someone help me with it?
boot grub2 backup grub-legacy
add a comment |
I am trying to make a backup of a compact flash card on another compact flash card. I have used many tools like dd, Win32DiskImager, Ghost backup recovery etc. But when I boot from the backup card, it fails and opens up the grub screen. I have tried solving this issues using root, setup and boot commands. But when I try to find /boot/grub/stage1 or /grub/stage1 file, it fails. Can someone help me with it?
boot grub2 backup grub-legacy
I am trying to make a backup of a compact flash card on another compact flash card. I have used many tools like dd, Win32DiskImager, Ghost backup recovery etc. But when I boot from the backup card, it fails and opens up the grub screen. I have tried solving this issues using root, setup and boot commands. But when I try to find /boot/grub/stage1 or /grub/stage1 file, it fails. Can someone help me with it?
boot grub2 backup grub-legacy
boot grub2 backup grub-legacy
asked Aug 15 '16 at 6:12
Ahmed Ch
173
173
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
When you say the backup card "fails and opens up the grub screen", what exactly do you see?
If you get a GRUB command prompt, then both stage1
and stage2
were in fact successfully loaded, and the problem might be in loading the GRUB configuration file, usually named /boot/grub/menu.lst
.
In that case, you can use the root
command to select the partition that contains the /boot
directory, and then use the configfile /boot/grub/menu.lst
or configfile /grub/menu.lst
command to read it, depending on whether you have the /boot
directory on your Linux root partition or as a separate partition. If successful, the GRUB boot menu should appear.
Note that although GRUB Legacy does not have a ls
command, you may be able to use the TAB completion to see which disks and partitions you have available for the root
command, and again to complete the filename for the configfile
command: if the autocompletion works, you know your previous root
command was correct. You can also use the find /boot/grub/menu.lst
or find /grub/menu.lst
to look for the configuration file on all partitions whose filesystems GRUB can read.
Also, note that although GRUB has a root
command, it does not mean the Linux root filesystem: for GRUB, the Linux root=
kernel parameter is just another meaningless string it just passes on to the kernel. The root
command of GRUB refers to the GRUB root directory, which is normally /boot
when your system is up and running.
add a comment |
So, you wan't to rescue the Grub on your backup system I think, have you tried the Boot-repair-disk? Is a lubuntu based distro that have a utility to repair/install grub in your linux partition/hdd, is very effective, you just need to download and burn in a Pendrive, next you have to boot your live USB and then just follow the instructions, you will need internet connection too for download and install the respective grub packages for your system.
This is the download page: https://sourceforge.net/projects/boot-repair-cd/
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f303445%2fgrub-unable-to-find-boot-grub-stage1-file-when-i-try-to-make-a-backup-of-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
When you say the backup card "fails and opens up the grub screen", what exactly do you see?
If you get a GRUB command prompt, then both stage1
and stage2
were in fact successfully loaded, and the problem might be in loading the GRUB configuration file, usually named /boot/grub/menu.lst
.
In that case, you can use the root
command to select the partition that contains the /boot
directory, and then use the configfile /boot/grub/menu.lst
or configfile /grub/menu.lst
command to read it, depending on whether you have the /boot
directory on your Linux root partition or as a separate partition. If successful, the GRUB boot menu should appear.
Note that although GRUB Legacy does not have a ls
command, you may be able to use the TAB completion to see which disks and partitions you have available for the root
command, and again to complete the filename for the configfile
command: if the autocompletion works, you know your previous root
command was correct. You can also use the find /boot/grub/menu.lst
or find /grub/menu.lst
to look for the configuration file on all partitions whose filesystems GRUB can read.
Also, note that although GRUB has a root
command, it does not mean the Linux root filesystem: for GRUB, the Linux root=
kernel parameter is just another meaningless string it just passes on to the kernel. The root
command of GRUB refers to the GRUB root directory, which is normally /boot
when your system is up and running.
add a comment |
When you say the backup card "fails and opens up the grub screen", what exactly do you see?
If you get a GRUB command prompt, then both stage1
and stage2
were in fact successfully loaded, and the problem might be in loading the GRUB configuration file, usually named /boot/grub/menu.lst
.
In that case, you can use the root
command to select the partition that contains the /boot
directory, and then use the configfile /boot/grub/menu.lst
or configfile /grub/menu.lst
command to read it, depending on whether you have the /boot
directory on your Linux root partition or as a separate partition. If successful, the GRUB boot menu should appear.
Note that although GRUB Legacy does not have a ls
command, you may be able to use the TAB completion to see which disks and partitions you have available for the root
command, and again to complete the filename for the configfile
command: if the autocompletion works, you know your previous root
command was correct. You can also use the find /boot/grub/menu.lst
or find /grub/menu.lst
to look for the configuration file on all partitions whose filesystems GRUB can read.
Also, note that although GRUB has a root
command, it does not mean the Linux root filesystem: for GRUB, the Linux root=
kernel parameter is just another meaningless string it just passes on to the kernel. The root
command of GRUB refers to the GRUB root directory, which is normally /boot
when your system is up and running.
add a comment |
When you say the backup card "fails and opens up the grub screen", what exactly do you see?
If you get a GRUB command prompt, then both stage1
and stage2
were in fact successfully loaded, and the problem might be in loading the GRUB configuration file, usually named /boot/grub/menu.lst
.
In that case, you can use the root
command to select the partition that contains the /boot
directory, and then use the configfile /boot/grub/menu.lst
or configfile /grub/menu.lst
command to read it, depending on whether you have the /boot
directory on your Linux root partition or as a separate partition. If successful, the GRUB boot menu should appear.
Note that although GRUB Legacy does not have a ls
command, you may be able to use the TAB completion to see which disks and partitions you have available for the root
command, and again to complete the filename for the configfile
command: if the autocompletion works, you know your previous root
command was correct. You can also use the find /boot/grub/menu.lst
or find /grub/menu.lst
to look for the configuration file on all partitions whose filesystems GRUB can read.
Also, note that although GRUB has a root
command, it does not mean the Linux root filesystem: for GRUB, the Linux root=
kernel parameter is just another meaningless string it just passes on to the kernel. The root
command of GRUB refers to the GRUB root directory, which is normally /boot
when your system is up and running.
When you say the backup card "fails and opens up the grub screen", what exactly do you see?
If you get a GRUB command prompt, then both stage1
and stage2
were in fact successfully loaded, and the problem might be in loading the GRUB configuration file, usually named /boot/grub/menu.lst
.
In that case, you can use the root
command to select the partition that contains the /boot
directory, and then use the configfile /boot/grub/menu.lst
or configfile /grub/menu.lst
command to read it, depending on whether you have the /boot
directory on your Linux root partition or as a separate partition. If successful, the GRUB boot menu should appear.
Note that although GRUB Legacy does not have a ls
command, you may be able to use the TAB completion to see which disks and partitions you have available for the root
command, and again to complete the filename for the configfile
command: if the autocompletion works, you know your previous root
command was correct. You can also use the find /boot/grub/menu.lst
or find /grub/menu.lst
to look for the configuration file on all partitions whose filesystems GRUB can read.
Also, note that although GRUB has a root
command, it does not mean the Linux root filesystem: for GRUB, the Linux root=
kernel parameter is just another meaningless string it just passes on to the kernel. The root
command of GRUB refers to the GRUB root directory, which is normally /boot
when your system is up and running.
answered Aug 12 at 11:20
telcoM
15.7k12143
15.7k12143
add a comment |
add a comment |
So, you wan't to rescue the Grub on your backup system I think, have you tried the Boot-repair-disk? Is a lubuntu based distro that have a utility to repair/install grub in your linux partition/hdd, is very effective, you just need to download and burn in a Pendrive, next you have to boot your live USB and then just follow the instructions, you will need internet connection too for download and install the respective grub packages for your system.
This is the download page: https://sourceforge.net/projects/boot-repair-cd/
add a comment |
So, you wan't to rescue the Grub on your backup system I think, have you tried the Boot-repair-disk? Is a lubuntu based distro that have a utility to repair/install grub in your linux partition/hdd, is very effective, you just need to download and burn in a Pendrive, next you have to boot your live USB and then just follow the instructions, you will need internet connection too for download and install the respective grub packages for your system.
This is the download page: https://sourceforge.net/projects/boot-repair-cd/
add a comment |
So, you wan't to rescue the Grub on your backup system I think, have you tried the Boot-repair-disk? Is a lubuntu based distro that have a utility to repair/install grub in your linux partition/hdd, is very effective, you just need to download and burn in a Pendrive, next you have to boot your live USB and then just follow the instructions, you will need internet connection too for download and install the respective grub packages for your system.
This is the download page: https://sourceforge.net/projects/boot-repair-cd/
So, you wan't to rescue the Grub on your backup system I think, have you tried the Boot-repair-disk? Is a lubuntu based distro that have a utility to repair/install grub in your linux partition/hdd, is very effective, you just need to download and burn in a Pendrive, next you have to boot your live USB and then just follow the instructions, you will need internet connection too for download and install the respective grub packages for your system.
This is the download page: https://sourceforge.net/projects/boot-repair-cd/
edited Dec 16 at 21:35
Rui F Ribeiro
38.9k1479129
38.9k1479129
answered Aug 12 at 7:46
Jamil Gomez
235
235
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f303445%2fgrub-unable-to-find-boot-grub-stage1-file-when-i-try-to-make-a-backup-of-linux%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