1

dd is a handy tool for backing up a whole drive or filesystem in some situations. Now I am thinking about what if I use the tool for backing up Windows file-systems / drives (Windows 2003/2008) which is mounted as second hard disk within Linux?

Kevdog777
  • 3,224
user21485
  • 663

3 Answers3

2

dd is a binary disk data reading tool, which has nothing to do with underlying filesystem.

But for a file-based backup, partimage works for me with Windows XP SP3 + NTFS

Both of them doesn't require the partition to be mounted.

daisy
  • 54,555
2

It doesn't matter what fs it is or where it is. In Linux, backing up a hdd partition is similar to backing up a whole hdd. The reason for this is that the device names (/dev/sdaX) are used both to represent the whole drives and partitions.

You have used it before, it's the same with any type of partition or drive.

Just find out your drives/partitions device name and use this command (ex. /dev/sda1):

dd if=/dev/sda1 of=~/winhdd.img

You could also compress it with gzip or bzip:

gzip  winhdd.img
bzip2 winhdd.img
Secko
  • 276
2

dd is not a backup tool. It is a binary file manipulation tool. cat works just as well. The magic is in the block devices (/dev/sdz99 and the like). See dd vs cat -- is dd still relevant these days?

If you do a whole-partition backup, it doesn't matter what filesystem (if any) is on the partition. You just copy the whole thing.

Specialized backup tools such as Partimage do a better job of backing up a whole filesystem. In particular, Partimage doesn't back up the unused part of the filesystem. This applies to any filesystem that Partimage supports, including FAT and NTFS, so it doesn't matter that you're backing up Windows partitions.