Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2012, 08:32 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Dallas, TX
Distribution: Kubuntu 12.10
Posts: 10

Rep: Reputation: 0
copying to a larger disk

Hello All,

I am swapping out hard drives on my desktop. They are both pretty close to being the same size and they are both by the same manufacturer. What I plan to do is put the new one in boot up with a live CD and copy over EVERYTHING to the new one. Then take out the old one and just carry on like normal.

My question is: What copy command is most appropriate to copy EVERYTHING and/or what cp options will do what I need to do? I know I don't want to use dd as that will copy over the partition table as well.
Old 12-12-2012, 08:42 PM   #2
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 809

Rep: Reputation: 76
# mount /dev/sda1 /mnt/newdisk

# mount /dev/sdb1 /mnt/olddisk

# cd /mnt/oldisk

# find ./ -xdev -print0 | cpio -pa0V /mnt/newdisk

Go have lunch or something.

That is all assuming you only have one partition on each disk. If you have many, just repeat the procedure accordingly.
1 members found this post helpful.
Old 12-12-2012, 08:52 PM   #3
LQ Newbie
Registered: Aug 2003
Location: Dallas, TX
Distribution: Kubuntu 12.10
Posts: 10

Original Poster
Rep: Reputation: 0
That is WONDERFUL!!!!

Thanks lucmove!

I will give that a shot!


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
Need more details on how to clone a larger disk to smaller with cp Mountain Linux - General 27 07-14-2010 12:04 AM
Core dump is larger than file space left on disk? goodkodiak Linux - Software 2 01-24-2009 01:06 AM
Can I use a solid state drive as a cache for a larger hard disk? jcreigh Linux - General 1 12-03-2008 12:28 AM
backup a failing disk to a larger disk gfem Linux - General 8 07-13-2007 08:19 PM
dd cloning to a larger disk partition question ciarlatano Linux - General 1 04-23-2007 04:23 AM > Forums > Linux Forums > Linux - Newbie

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