LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 08:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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


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


All times are GMT -5. The time now is 09:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration