How to restore all of /boot/?
Bryan Miller
bmiller at fonality.com
Wed Aug 20 14:43:54 CDT 2008
other than the files in /boot/grub/* anything in /boot always comes
from the kernel rpms.
Just reinstall the rpms from the CDs. Find the dir with the RPMS, and
look for kernel*rpm. Copy those over, or if the CD is mounted on the
server, just rpm -i --force kernel*.rpm It'll install files over
again.
If you're paranoid about that (the only other stuff installed is in
/lib/modules/<kernel ver>/*), you can use rpm2cpio < kernel-blah.rpm |
cpio -idv. Do this in a temp work dir in /usr/src/, i.e. /usr/src/z/.
Then you can just cp ./boot/* /boot/
-Bryan
On Wed, Aug 20, 2008 at 12:05 PM, Zembower, Kevin <kzembowe at jhuccp.org> wrote:
> I think that my earlier problems (see thread starting at
> http://lists.us.dell.com/pipermail/linux-poweredge/2008-August/037024.html),
> stem from not restoring all of the contents of /boot/. Doing a grub-install installs
> all the files in /boot/grub/ but my other systems show a lot of files in /boot/, such as:
> [kevinz at t ~]$ cd /boot/
> [kevinz at t boot]$ ls -la
> total 11282
> drwxr-xr-x 4 root root 1024 Dec 11 2007 .
> drwxr-xr-x 25 root root 4096 Jul 8 14:36 ..
> -rw-r--r-- 1 root root 72590 Nov 21 2007 config-2.6.22.14-72.fc6
> -rw-r--r-- 1 root root 72589 Sep 27 2007 config-2.6.22.9-61.fc6
> drwxr-xr-x 2 root root 1024 Dec 11 2007 grub
> -rw------- 1 root root 2400348 Dec 11 2007 initrd-2.6.22.14-72.fc6.img
> -rw------- 1 root root 2400278 Oct 9 2007 initrd-2.6.22.9-61.fc6.img
> drwx------ 2 root root 12288 Jul 12 2007 lost+found
> -rw-r--r-- 1 root root 1245924 Nov 21 2007 System.map-2.6.22.14-72.fc6
> -rw-r--r-- 1 root root 1245724 Sep 27 2007 System.map-2.6.22.9-61.fc6
> -rw-r--r-- 1 root root 2016152 Nov 21 2007 vmlinuz-2.6.22.14-72.fc6
> -rw-r--r-- 1 root root 2015944 Sep 27 2007 vmlinuz-2.6.22.9-61.fc6
> [kevinz at t boot]$
>
> [This is from a Fedora Core 6 system. I'm restoring a CentOS 5 system.]
>
> I didn't originally restore the boot partition to my other server, and this
> problem has been going on so long that my backup tapes have rolled over
> and the backup of this host's /boot/ are gone.
>
> This seems like it should be an easy question, but it has me stumped.
> Using the original CentOS 5.0 disks or some other media, what can I do
> to restore all of the contents of /boot/?
>
> Thanks again for all your help, suggestions and advice.
>
> -Kevin
>
> Kevin Zembower
More information about the Linux-PowerEdge
mailing list