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
> 
> I've never gone from LVM to native disk, but are you sure you have
> copied your MBR to the new disk?
> 
> 
> On 1 March 2010 11:18, Styma, Robert E (Robert)
> <robert.styma@xxxxxxxxxxxxxxxxxx> wrote:
> > I was working on a linux box which had a failing disk over
> > the weekend.  It still booted, but flagged smartd errors
> > and had a couple of damaged files which were fortunately
> > replaceable (eclipse install tgz).
> >
> > I booted Spinrite to make the drive readable and then planned
> > to use system rescue CD and gparted to copy to an identical
> > drive.  Unfortunately, the machine used the default boot
> > partition (ext3) and LVM for the root and swap partitions.
> > gpartd cannot currently deal with LVM partitions.  This is
> > too bad as it is a great tool.
> >
> > I initially tried laying out the partitions without LVM and
> > tar copying the root partition over.  The /boot partition had
> > gone across with gpartd.  I changed the grub.conf file and
> > the /etc/fstab file and even the /etc/mtab file.  In each
> > case, the system would start to boot and then the kernel would
> > panic looking for the logical volumes.
> >
> > In the end, I just laid out the partitions to match the original
> > drive and dd'ed both physical partitions to the new drive and it
> > worked.
> >
> > 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?"
> >
> > I feel like I am close, but no cigar
> >
> > Bob Styma

I forgot to mention that I used the grub command from system rescue CD
to fix up the mbr after I put the new drive in the machine by itself:

grub
...
root (hd0,0)   
setup (hd0)


It is possible that I needed to also setup the partition boot record.
with 
setup (hd0,0)
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux