LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-21-2002, 07:31 AM   #1
szak
LQ Newbie
 
Registered: Jan 2002
Posts: 1

Rep: Reputation: 0
Disc clone/copy


Hi,
I need to copy(clone) one hard disc on another. Could I use cp command, or should I use something else.

Thanks,

Semion.
 
Old 01-21-2002, 07:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you want to copy the exact partition to the same size one, use dd:

dd if=/dev/hda1 of=/dev/hdb1

will copy hda1 partition onto the hdb1 partition. if you want to copy particular files:

find -xdev /source | cpio -pmv /destination

which will copy /source to /destination/source.

if you're copying somethign like the /usr partition, then i'd suggest monting the new partition at /mnt/usr and then replacing /destination with just /mnt for example.
 
  


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
k3b hangs when trying to burn dvd+rw disc but not cd rw disc laiboonh Slackware 0 11-06-2004 11:22 AM
K3B Disk Copy types: Normal vs. Clone? Bob P Linux - Software 3 10-15-2004 05:40 PM
copy hard disc data, with permissions tidasu Linux - Newbie 3 08-29-2004 08:30 PM
CLone/Copy a partition Tyir Linux - General 12 01-28-2004 09:02 AM
Locating Disc 2,3,4,5 later after installing 1 Redhat disc lava Linux - General 1 03-22-2003 01:13 AM

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

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