Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
backup the boot partition smiply by copying it to another location.
restore a boot partition by copying it back
presumably this even means you have an unbootable system - so you would boot from the install CD with the "linux rescue" option. Mount the filesystem and cp the backup over.
You can run grub with
grub --config-file <file>
You can use a preset menue with GRUB, which defines /boot to be someplace else. The preset menue is only used if the normal grub.conf fails to load.
Didn't find any kernel options which would change where grub looks for grub.conf ...
Basically, most folks would recover a broken /boot partition by copying over.
A cute method - if your BIOS will boot from usb drive - is to install a small distro to an old HDD in a IDE-usb converter. Use this as an emergency rescue system.
I'm not sure everyone is talking about the same thing. To have a backup method of booting, you need a duplicate of the mbr--not the "boot partition" or /boot.
For example, if you have GRUB in the mbr on drive 1, and somehow it gets zapped--eg by installing Windows--you can always boot from a floppy that also has grub on it. No need to change grub.conf
first, I use the following command to duplicate the boot partition:
dd if=/dev/sda1 of=/dev/sdb1
then I change the grub.conf file as follows
title Fedro (Original Boot)
root (hd0,0)
kernel XXXXXXXXXXXX ro root=/dev/sda1 xxxxxx
tile Fedro (Backup)
root (hd0,0)
kernel xxxxxxxxxxxx ro root=/dev/sdb1 xxxxxx
after that, when the GRUB meau show up, I choose the second one. it is fail !
so, what is problem? thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.