Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working with a Linux server with a failing drive, and am interested in the best/easiest way to transfer the existing data onto a new drive, and reboot with the new hardware.

The server is running a fairly ancient version of SUSE (2.6.8-24 kernel), and contains two internal SCSI drives. One is divided into the various standard partitions. The second is mapped to a custom mount point to hold certain data. It is the first drive that is failing.

The OS detected an error, and automatically remounted the /home partition read-only.

I have spare drives of the same size and type of the failing drive. I also have some larger drives.

share|improve this question
Just curious - how do you know the OS disk is failing? – fpmurphy1 Dec 29 '11 at 14:19
up vote 2 down vote accepted

You can use the dd if=/dev/sda of=/dev/sdb bs=1M command to copy the raw data from one unmounted drive to another. Then swap the drives and reboot. Be sure to set the block size correctly to avoid a very slow copy. see also

edit: Fixed the block size in the example command to be more realistic for modern systems.

share|improve this answer
Actually, I would use a block size larger than 1 KB - try 1 MB or something like that. Also note that while dd is good for cloning, the drives effectively must be of the exact same size (which they would be in the OP's case, but which definitely isn't the general case) for it to work out nicely. – Michael Kjörling Jan 1 '12 at 18:36
Thanks, that did the trick. – user57770 Jan 5 '12 at 10:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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