I was trying to dd a laptop drive to an image file on a NAS drive and managed to fill up the / partition.
I've now fixed that but in order to avoid the same problem, can somebody tell me how to duplicate a drive, or at least the recovery partition (it's a Windows drive) by specifying where the temporary file can go? Or if there's a way to do it without generating an intermediate file it would be appreciated.
On 25 February 2011 18:34, Chris Walker cdw_alug@the-walker-household.co.uk wrote:
I was trying to dd a laptop drive to an image file on a NAS drive and managed to fill up the / partition.
I've now fixed that but in order to avoid the same problem, can somebody tell me how to duplicate a drive, or at least the recovery partition (it's a Windows drive) by specifying where the temporary file can go? Or if there's a way to do it without generating an intermediate file it would be appreciated.
Unless I misunderstood you, this should never happen.
Man dd has no mention of using temporary files for any transfers of any kind.
I even straced dd by copying one large file from one partition to another partition. No mention of temporary files in the strace log (tho I did check only the open() syscall, and syscalls at the start of the program when the source and dest files are opened).
Perhaps your NAS is working incorrectly?
Regards, Srdjan
On 25 Feb 18:34, Chris Walker wrote:
I was trying to dd a laptop drive to an image file on a NAS drive and managed to fill up the / partition.
/ on the NAS? / on the laptop?
Also, you might want to gzip it.
And if you just want to backup the recovery partition, just, erm, backup the recovery partition, and the parameters for fdisk to partition a drive ready for it, and the boot sector of the drive.
I've now fixed that but in order to avoid the same problem, can somebody tell me how to duplicate a drive, or at least the recovery partition (it's a Windows drive) by specifying where the temporary file can go? Or if there's a way to do it without generating an intermediate file it would be appreciated.
-- __ __| |_ __ __ .----------------------------------------------. / _/ _` \ V V / | mailto:cdw_alug@the-walker-household.co.uk | ____,_|_/_/ |______________________________________________|
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!