Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Closed Thread
  Search this Thread
Old 01-18-2007, 08:23 PM   #1
Registered: Nov 2004
Posts: 40

Rep: Reputation: 15
How to move installation to a new Hard Drive?

I need to move my installation from two separate HDs to a single HD. The new drive is a different size and partition setup from the other two drives. The two originating drives, we'll call them hda and hdb each hold multiple partitions. I need only one partition from each. They will go on to a target partition, sde. So how do I get hda2 (bootable system) and hdb3 (data) onto sde1 and sde3 respectively?

I've tried
#rsync -av /media/hda2 /media/sde1
#rsync -av /media/hdb3 /media/sde3

But for some reason, the target size ends up being larger than the source size.

so I did a
#dd if=/dev/hdb3 of=/dev/sde3 conv=noerror,sync

hdb3 is larger than sde3 even though the data contained in hdb3 is much smaller than the size of sde3, dd totally messed up the partition table of sde. So I've repartitioned with gparted and I'm ready to take another swing at it.

I also realize that I'll have a little editing to do to the fstab and a few other files on the new drive (sde1), and reinstalling grub, before it will boot.

So, to sum up, I'd like to take a partition from hda (ubuntu) and a partition from hdb (mythtv data), and migrate them seamlessly to sde into a bootable working system.

Need more details?
hda2 is a bootable ubuntu system with Mythtv installed, using the partition on hdb3 to store it's files. I've been using it as a multi-purpose system. I now have enough parts to build a second system, and dedicate one to Mythtv and one to a 64 bit linux playground.

I need to move the mythtv-ready ubuntu to sde1 and move 160GB of mythtv data files to sde3 (sde2 is a swap partition)
hda2 is 15GB with 9GB of data
hdb3 is 280GB with 116GB of data
sde1 is 10GB
sde3 is 200GB

All of the other hardware will be the same.
Thanks in advance!
Old 01-18-2007, 08:34 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move installation to a new Hard Drive? mlitty Linux - General 26 09-22-2010 09:36 AM
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 05:14 PM
Move an existing partition to a new hard drive? vdemuth Linux - Hardware 9 06-04-2004 02:29 AM
can i move my hard drive to a different computer citrus Linux - General 5 04-12-2004 03:30 AM
Can I move my linux installation to another Hard Drive? enderjm Linux - Newbie 7 03-11-2004 02:00 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:03 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