Advertisement

06.12.2008 at 07:41AM PDT, ID: 23479648
[x]
Attachment Details

Linux - Hard Drive DD Question - restoring a backup to a larger drive?

Asked by oxygen_728 in Linux, Linux Administration, Linux Setup

Let's say that I backup a hard drive like so:


This sends a backup of a 75GB hdd to a receiving computer
dd if=/dev/sda | nc IP PORT

Now let's say I buy a 150 GB hdd when the 75GB hdd fails

Time to restore the backup (computer receiving data onto the new hdd)
nc -l -p 1234 | dd of=/dev/sda


1. Can I write directly to a drive like this? (I know the first command works, but what about the second? I'm concerned about writing to an unmounted drive, even though I can read from it)

2. What happens to the other 75 GB of the new hard drive that don't get filled up with data? Will this drive even be usable?

ThanksStart Free Trial
[+][-]06.12.2008 at 08:17AM PDT, ID: 21770425

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Administration, Linux Setup
Sign Up Now!
Solution Provided By: ktd85
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.12.2008 at 09:17AM PDT, ID: 21771049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 09:59AM PDT, ID: 21771457

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628