RE: Trying to convert a LVM partition to non-LVM
- From: "Styma, Robert E (Robert)" <robert.styma@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Mar 2010 17:34:57 -0600
Subject: RE: Trying to convert a LVM partition to non-LVMSomewhat Solved,
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.
--
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
- References:
- Trying to convert a LVM partition to non-LVM
- From: Styma, Robert E (Robert)
- Re: Trying to convert a LVM partition to non-LVM
- From: Roberto Ragusa
- RE: Trying to convert a LVM partition to non-LVM
- From: Styma, Robert E (Robert)
- Trying to convert a LVM partition to non-LVM
- Prev by Date: Re: fc12 tap not working EeePC
- Next by Date: Re: GoogleEarth segfault [SOLVED]
- Previous by thread: RE: Trying to convert a LVM partition to non-LVM
- Next by thread: RE: Trying to convert a LVM partition to non-LVM
- Index(es):
Relevant Pages
|