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




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



Relevant Pages

  • Re: Could swap space be shared among different linux distributions?
    ... drive, /dev/hda1 for the first partition on it, /dev/hda2 for the second ... different distributions will have *WILDLY* ... since it is never a disk partition of its own even ... *IS* a kernel trick that provides hooks to read to or from the kernel. ...
    (comp.os.linux.setup)
  • Re: win-motherboard
    ... > install Master Booter and it would not install. ... This sounds like you have been able to load the kernel, ... the partition containing /etc/inittab and /sbin/init). ... Then there is the partition containing the root file system. ...
    (comp.os.linux.setup)
  • Re: Restoring HDIO_GETGEO semantics for 2.6 (was: Re: [RFC] Restoring HDIO_GETGEO semantics)
    ... If an installer sees a partition with swap signature, then that is swap space, ... Low probability bugs. ... the kernel does not need the result of this guesswork any longer. ... and leaves the guessing to user space. ...
    (Linux-Kernel)
  • Re: [PATCH RFC] efi: add and expose efi_partition_by_guid
    ... completely lost to the rest of the kernel. ... to allow other portions of the kernel to map a partition from GUID to ... support for themselves. ... partition struct as that represents the on-disk format for some tables ...
    (Linux-Kernel)
  • Re: win-motherboard
    ... >> Installed Win XP to a 40 gig partition on the first drive fine. ... >> to install Master Booter and it would not install. ... >> kernel message. ... > Then there is the partition containing the root file system. ...
    (comp.os.linux.setup)