Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 11-17-2007, 06:22 PM   #1
Registered: Dec 2002
Location: Portage, IN, USA
Distribution: Fedora
Posts: 34

Rep: Reputation: 15
Moving LVM partition to larger hard drive

I have an older system that has Fedora Core with the 2.6 kernel. When it was installed the default file system was the LVM. I had a 40GB IDE hard drive and it has filled up now and I have a 300GB IDE hard drive to replace it with.

The problem is I'm not sure how to make this happen. I have Acronis True Image on a Windows system so I took the hard drive out and did a full image backup first, then I tried doing a clone operation from it, but it will not allow me to resize the LVM partition. It will keep the LVM partition at 38GB and the /boot partition it will increase from 100MB to like 260GB, which of course is not what I want to do.

After spending some time Googling I have not been able to find a step by step how to that explains how to do the whole thing.

From my understanding I should hook up both drives to the Linux computer and make sure BIOS sees both of them, switch to single user mode and format the new drive with 2 partitions, and then copy the old data from the original drive to the new drive.

The more I read the more confused I get. The majority of what I have seen talks about how to upgrade a hard drive without LVM or about changing LVM settings, without a new physical drive.

Can someone please point me in the right direction?

I would also be interested in if there is even a basic utility program I could use. I read somewhere that would work, but I tried the basic free one and it doesn't mention anything about supporting resizing of LVM partitions.

Thanks in advance

BTW: I have tried using the SystemRescueCd and the partimage program, however after reading the FAQ at I see that it does not support either resizing or going to a new unformated disk.

Last edited by blainehilton; 11-17-2007 at 07:21 PM.
Old 11-18-2007, 03:06 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
the default file system was the LVM.
LVM is not a file system. It is a system for defining volime groups that may contain a file system. fedora's habit of doing this by default is a pain.

I have a 300GB IDE hard drive to replace it with.
Have you consideres simply adding the new drive to the existing volume?

What you need is an LVM tutorial.
Old 11-20-2007, 02:36 PM   #3
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
Before giving you too many instructions I should ask, do you want to keep LVM or go back to a setup with standard partitions? Are you going to use the entire 300GB for this installation or break it up so you can play with other distributions? As Simon said, if you just need to add more space for the Fedora side of things you could simply create a new partition on the 300GB drive, create a physical volume (pvcreate) add it to the volume group (vgchange). The logical volume could then be resized (lvresize) and poof you're done. That is one of the key selling points of LVM.

Migrating from one hard drive to another can be done by booting with the install or rescue CD and typing linux rescue at the prompt. Be sure to have both hard drives installed before you boot. When rescue mode starts you'll be asked a few questions like language, keyboard, and if you want to use the network. The final part asks if you want to find any fedora installations on the hard drive. Skip this for now. I like migrating using this method because all partitions are unmounted and can be worked with relatively easily. You could also do it using a Live-CD, but you'll need to be sure it supports LVM. There are of course a lot more steps, but it would be best to know your ultimate goal first.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Moving linux partition from original hard drive to another, howto??? Fear58 Linux - General 22 02-15-2008 04:26 PM
Migrating to larger hard drive SlowCoder Linux - General 7 05-20-2007 04:08 AM
Moving to a larger drive eric_marsh Linux - General 6 12-07-2006 10:32 PM
Shrinking and moving an lvm partition. (and random fdisk help) pardasaniman Linux - Software 2 08-02-2006 08:11 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration