Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to copy all my hard disk on /dev/sda1 to my external hard disk on /dev/sdb1 but thru terminal because when i'm using Nautilus the computer freezes donno why i read this article but it explains for files and it did not work for me can any one help please ?

share|improve this question
    
Are you using ntfs ? –  bodhi.zazen May 16 '13 at 20:05
    
Your question has been already answered. If you would like to learn some Linux Commands, I recommend you linuxcommand.org –  DrKenobi May 16 '13 at 20:11
add comment

marked as duplicate by Mitch, belacqua, Seth, Jorge Castro, Eric Carvalho May 17 '13 at 0:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 2 down vote accepted

What you want is the -r command. So your command would be:

cp /dev/sda1 /dev/sdb1 -r

-r means recursive, or "this folder, and everything in it".

Also, if you're trying to copy your root partition, it's likely you'll get a "permission denied" error. In that case, you'll need sudo in front of the command:

sudo cp /dev/sda1 /dev/sdb1 -r
share|improve this answer
add comment

This sounds like a trick for dd.

Do this :

sudo dd if=/dev/sda1 of=/dev/sdb1

dd (disk dump) is better for creating backups

The if options specifies what is to be copied and the of option specifies where it is to be copied.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.