Re: mount the wrong device after system recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Feb 8, 2011 at 4:31 PM, Xinhuan Zheng <xzheng@xxxxxxxxxxxxxxxxx> wrote:
> My grub.conf is pointing to sdb1 for /. I've corrected to use
> /dev/vg0/lv1. But after rebooting, I am getting the same error. I guess
> I need to rebuild initrd.img file. How do I rebuild that file?

You'd use the mkinitrd utility and specify the name of the new initrd
and the kernel version.

To create from the current settings:

Update your /etc/modprobe.conf
mkinitrd /boot/my_new_initrd-`uname -r`.img `uname -r`

Then update your /etc/grub.conf and update the initrd line..

You can specify an alternate kernel than the one running also.  This
is useful if you're rebooting into a new kernel and need to preload
the modules.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux