-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Ross S. W. Walker Sent: Monday, August 20, 2007 3:40 PM To: CentOS mailing list Subject: RE: [CentOS] HELP, I accidentally initialized my /boot partition
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Alfred von Campe Sent: Monday, August 20, 2007 3:24 PM To: CentOS mailing list Subject: [CentOS] HELP, I accidentally initialized my /boot
partition
So I installed a second drive in my system today, and instead of typing "mkfs.ext3 /dev/sda1" I did a "mkfs.ext3 /dev/hda1". Fortunately, that was just my /boot partition. I thought I could just copy the contents from the /boot partition from
another system,
but that didn't work as expected. The again, I don't have another system that's identical to the mine.
What is the best way to re-create the /boot partition for my system?
Just re-install the current kernel and grub with an rpm -Uvh --force.
initrd images are auto-generated and grub should probe your disk layout and put some best-guess entries in there.
Just edit menu.lst and fix the entries.
Actually, just re-install grub first and when you re-install the kernel it will automatically add a grub entry for that kernel!
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.