LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Piping dd through gzip to image Win2k Partition (https://www.linuxquestions.org/questions/linux-newbie-8/piping-dd-through-gzip-to-image-win2k-partition-567638/)

sr_25 07-08-2007 02:21 PM

Piping dd through gzip to image Win2k Partition
 
After reading Awesomemachines thread about dd again I am trying to learn how to gzip a image file of my Win 2k partition. The thread shows the command:
Quote:

dd if=/dev/sdb2 ibs=4096 | gzip > partition.image.gz conv=noerror
Obviously, my partition arrangement is different and this is the command I tried while running Puppy:
Quote:

dd /dev/sda5 ibs=4096 | gzip /mnt/sdd7/Win2k.image.gz conv=noerror
and
dd /dev/sda5 ibs=4096 | gzip /dev/sdd7/Win2k.image.gz conv=noerror
this fails saying both /dev/sdd7.. and /mnt/sdd7 are not valid directories or files, so what have I done incorrectly here?


Further info: the sda5 partition is NTFS, and the sdd7 partition is Fat32.

My Win2k partition I have already successfully cloned with dd by using the command:
Quote:

dd if=/dev/sda5 of=/dev/sdb5 bs=4096 conv=notrunc,noerror
This worked without a flaw and I have successfully booted and ran this clone.

b0uncer 07-08-2007 02:43 PM

NTFS or FAT partition shouldn't matter, if you just can read them. The native ntfs driver is able to read just fine, so shouldn't be a problem (and the error is elsewhere).

Did you notice you're missing one ">" from your commands?

stress_junkie 07-08-2007 02:43 PM

You can use partimage to achieve a similar result. The nice thing about partimage is that it doesn't back up the free space on the partition. It can handle Microsoft file systems.

http://www.partimage.org/Main_Page

You may find partimage is in the software repository of your distribution. Then you could use your distribution's package manager to install it.

Partimage will not work on a mounted partition.


All times are GMT -5. The time now is 02:57 PM.