Linux - Restoring Backup with DD & Netcat - Can't write to /dev/sda device
Posted on 2008-06-11
Disclaimer: /dev/sda is not mounted (It wasn't mounted when I backed it up, and it isn't mounted now that I'm trying to restore the backup)
Hi, i made a backup of my hard drive a month ago with:
dd if=/dev/sda | nc IP PORT
Now, I need to restore my backup, so I'm doing:
nc -l -p 1234 | dd of=/dev/sda
My sender computer is sending, but the receiver isn't doing much of any receiving... It appears that roughly 16 megs are being sent, but none received - In fact, when I hit Ctrl-C, i get the message:
write(stdout): Interrupted System Call
and then my terminal is locked up.
I've attempted to run Ubuntu 7 Live CD & Trinity Rescue CD Build 318 -- both operating systems encounter the exact same problem.
It's possible that my hard drive is broken, but I think it's fine
Any tips on writing directly to /dev/sda without mounting?