Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ using dd to image network drive

Posted by: Muidem Jun 18 2009, 12:16 PM

Let me try to explain my situation here. I've got a network drive with one Windows and one Linux partition on it. The only way I can access this drive is by mapping to it over the network in Windows or using mount in Linux.

The drive has a 32Gb capacity and the partitions are roughly evenly split in that space. I have an identical drive that we'd like to use as a duplicate. However, the two drives must be identical.

I had previously read about using dd to do a bit by bit drive image so I thought I'd give that a shot. I booted a backtrack4 live cd and mounted the drive like so.

CODE
mount -t smbfs //192.168.1.100/partition /mnt/networkdrive


The drive appears to mount correctly as I can browse around and see the files in that partition. Then I tried to use dd to copy an image of the drive to an external hard drive.

CODE
dd if=/mnt/networkdrive of=/mnt/externalhdd/NAS_image.img conv=noerror,sync


Now here is where the problems start. I expected this to take a few hours since this was a 32Gb drive. It ended up taking almost 24... and it only stopped after 200Gb because my external hard drive filled up. Obviously I've done something wrong here.

Having put some more thought into it, I also have some other concerns dealing with the partitions. I can only mount one of the partitions, but I need to make sure I copy both of them. Will my method work for copying both partitions? Additionally, why was the file size 200Gb+ for a small 32Gb drive?

Hopefully you guys can help me out here and sorry if anything I said was too offensively noobish.

Posted by: michaelk Jun 19 2009, 06:58 AM

Never tried the dd command over the network and not sure what would happen. I would use the rsync command instead.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)