[SOLVED!] How to backup root filesystem the correct way....
Daniel B. Thurman
dant at cdkkt.com
Fri Dec 16 08:48:34 UTC 2005
>From: Steve Ringwald [mailto:asric at asric.com]
>Sent: Thursday, December 15, 2005 11:32 PM
>To: Daniel B. Thurman
>Subject: Re: How to backup root filesystem the correct way....
>
>
>Daniel B. Thurman wrote:
>>> The way that I have found that is easiest is just to run
>grub itself.
>>>
>>>
>>
>> Are you doing the following below within the CD rescue
>> disc? I.E. in the chroot /mnt/sysimage filesystem?
>>
>
>Nope. If you do it that way, you have to do a mount --bind /proc
>/dest/proc so that grub can find the drive nods.
>>> % grub --no-floppy
>>>
>>> root (hd0,0)
>>> setup (hd0)
>>>
>>>
>>
>> I did the above steps and Grub says:
>>
>> Checking if "/boot/grub/stage1" exists... no
>> Checking if "/grub/stage1" exists... yes
>> Checking if "/grub/stage2" exists... yes
>> Checking if "/grub/e2fs_stage1_5" exists... yes
>> Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors
>embedded. succeeded
>> running "install /grub/stage1 (hd0) (hd0)1_15 p
>(hd0,0)/grub/stage2 /grub/grub.conf"... succeeded
>> Done.
>>
>
>Ok. This means that in the grub-root partition you specified on hd0 (I
>am going to assume 0), it found the rest of the stage binaries that it
>needed for the rest of the boot process. So grub is happy,
>which is what
>the display below shows.. Found the grub.conf/menu.lst files, and the
>stage* files.
>> Rebooting, and I get this:
>>
>> Booting from 'Fedora Core (2.6.14-1.1644_FC4)'
>> root (hd0,0)
>> Filesystem type is ext2rs, partition type 0x83
>> kernel /boot/vmlinuz-2.6.14-1.1644_FC4 ro root=/ rhgb quiet
>>
>> Error 15: File not found
>>
>> Hit return key to continue...
>>
>> It appears that the kernel line for the /boot/vmlinuz
>> file is missing, but I *know* this file exists in the
>> /boot parition so I am not sure *why* grub thinks this
>> kernel file is missing...
>>
>
>Ok. I am going to *assume* that this is because you don't have
>a symlink
>in /boot pointing back to /boot. (The grub-root would be
>relative to the
>base of the partition, in this case /boot. So... When you get
>the option
>of selecting a kernel, hit 'e', and edit the kernel line and
>remove all
>occurrences of /boot. You might also want to try a
>tab-completion on the
>vmlinuz and initrd lines to make sure that grub can find them in the
>filesystem. (Grub has some nice features, when compared to lilo. :-) )
>
>> When I hit the return key, the curses screen appears for
>> the grub.conf files so in this case it is obviously able
>> to locate the /boot/grub/grub.conf file for which the
>> data on the grub-curses window has the correct information.
>>
>
>Right.
>> I have a feeling that somehow grub is running before the /boot
>> parition is even mounted... or somehow grub is just not able to
>> see the /boot contents. It is very odd. I am dead in the water
>> right now and need to get this grub issue resolved since I have
>> everything else right, I believe...
>>
>
>Nope. Grub actually decodes the location of where the /boot partition
>is, and reads the filesystem (hence the stage_xfs, stage_ext2,
>etc files).
>> Anything I do/try at this point?
>I would guess that it is the /boot/boot link not existing (which makes
>the above lines point to nothing).
>
>My /boot looks like this:
>
>config-2.6.14-1.1644_FC4 System.map-2.6.14-1.1644_FC4
>config-2.6.14-1.1644_FC4smp System.map-2.6.14-1.1644_FC4smp
>grub
>vmlinuz-2.6.14-1.1644_FC4
>initrd-2.6.14-1.1644_FC4.img vmlinuz-2.6.14-1.1644_FC4smp
>initrd-2.6.14-1.1644_FC4smp.img boot
>
>/boot/boot is a symlink to /boot (just in case I do a typo
>cut-and-pasting a config file from another machine).
>
>My menu.lst/grub.conf file looks like this:
>
>title Fedora Core (2.6.14-1.1644_FC4smp)
> root (hd0,1)
> kernel /vmlinuz-2.6.14-1.1644_FC4smp ro
>root=/dev/VolGroup00/LogVol01 rhgb quiet
> initrd /initrd-2.6.14-1.1644_FC4smp.img
>
>
>Note the lack of /boot in this file.
>
>I am, unfortunately, extremely tired (very hard few days at work..
>Believe it or not, fighting grub/initrd issues booting off of a CF
>file-system.. :-) )
>
>A good reference for grub is available from the folks at gentoo.
>
>http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&c
hap=10#doc_chap2
>
>About 1/2 - 3/4 of the way down is a section called "Setting up GRUB
>using manual instructions".
>
>Hopefully, this will give you something additional to work with. If not,
>drop me a line and I will see what I can do tomorrow morning.
>
>Steve
>
My Outlook breaks the newsgroup threads... I wish this
problem would be solved someday... its only been several
years... sigh.
Anyway - KUDOS TO STEVE!!!!
PROBLEM SOLVED!!!! :-)
I was missing the boot symlink to /boot itself - there was *nothing*
about this requirement anywhere in the manuals as far as I
can tell - or I must be blind! This grub issue has been with
me since it's ineption - and now I understand how to get grub
to work when a seperate /boot partition is required! Thanks
to you!!!! :-D
GRACIAS, GRAZZIE, DANKE GUT, THANK YOU!!!
Dan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 12/15/2005
More information about the fedora-list
mailing list