Re: [CentOS] Lost path to root directory!

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



On Sun, 2006-09-17 at 09:27 -0400, Ted Miller wrote:
> I'll admit I am new to LVM2, but I have got myself in a bad spot.
> 
> I renamed the LVM volume and volume group so that I can keep track of what
> is in them.  I have changed grub's menu.lst, /etc/fstab, and /etc/mtab, but
> somewhere else there is still something telling lvm that my root drive is
> on VolGroup00.  Where is it, and how do I convince it that
> VolGroup00/Volume00 (or whatever the defaults are) is now DriveC/Centos?  I
> suspect it may be hiding in initrd (compressed).
Yep. Fortunately, thats a cpio file. So uncompress, go to tmp make a
work dir and "cpio -idmvc -I <your uncompressed file name>". Then cd
into the dir and find . -name init. Edit that file. There's two
"ingnorelockingfailure" imperatives in there. One of them names the
volgroup. Add yours to the list (comma, IIRC - use the man page if there
is one).

Then cpio it back up by using the -c param and compress it.

HTH
--
Bill

> <snip eulogy intro>


_______________________________________________
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