RE: Trying to convert a LVM partition to non-LVM

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

 



 
> Subject: RE: Trying to convert a LVM partition to non-LVM
> 
>  
> > Styma, Robert E (Robert) wrote:
> > > My question becomes, "What file(s) other than fstab and grub.conf
> > > need to change to change the root parttion from an LVM parition
> > > to a normal ext partition such as sda2?"
> > 
> > Recreate the mkinitrd in your /boot.
> > 
> > Boot from a rescue disk, mount your system and chroot into that.
> > You can run mkinitrd manually (needs a filename /boot/initrd...
> > and the kernel version) or you can trigger the steps that happen
> > when you install a new kernel, by using a rpm -Uhv --oldpackage
> > kernel... or running the script the rpm would run
> > (rpm -q --scripts kernel prints something like
> >   /sbin/new-kernel-pkg --package kernel --mkinitrd --depmod 
> > --install 2.6...
> > )
> > 
> > -- 
> >    Roberto Ragusa    mail at robertoragusa.it
> 
> THANKS ROBERTO!
> This looks like a winner.  I will try this method on a test 
> machine shortly. 
> -- 
Somewhat Solved,

After the partitions were copied over, I needed to get rid of the
references to the logical volume manager in serveral files:
/etc/fstab
/etc/mtab
/boot/grub/grub.conf

Then run:
mkinitrd /boot/initrd-2.6.18-53.el5.img  2.6.18-53.el5
Replace the version info by whatever kernel is loaded.

Then run grub and enter:
root (hd0,0)
setup (hd0)


I still go some funny udev errors, but the system came up.
There may be other files which need to be cleaned up that
I have not found yet, but at least the system came up.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux