LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-05-2006, 08:43 PM   #1
reinmontreal
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
How to boot from one duplicated boot partition


I'm new for Fedora, I have the following quesion:

How to make a backup boot partition and how to use the duplicated boot partition to boot into your system?

what should be in the /boot/grub/grub.conf ? thanks
 
Old 03-05-2006, 11:10 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 03-05-2006, 11:11 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 03-06-2006, 12:26 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
Old 03-06-2006, 08:27 AM   #5
reinmontreal
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 03-06-2006, 03:02 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
How are you defining the "boot partition"? Do you mean the partition mounted at /boot?

Where is GRUB on this machine? eg in the first harddrive? floppy?

Referring to your initial post, you don't use the /boot partition to boot into your system--there is stuff that has to happen first.

please post the output of fdisk -l (ell, not one) (run this as root)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot with FC4 and XP removing the partition with boot.ini fakie_flip Linux - Software 1 01-07-2006 02:48 PM
Grub/Dual boot - Windows partition restored via dd won't boot pazzport Ubuntu 1 01-06-2006 01:29 PM
Resized Linux Partition on Dual Boot - Lost Boot RationalRabbit Linux - Newbie 14 12-29-2005 01:02 AM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration