LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-12-2012, 07:32 PM   #1
wcboyd
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, 07:42 PM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
# 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, 07:52 PM   #3
wcboyd
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!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 PM.

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