Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-08-2007, 02:21 PM   #1
Registered: Nov 2005
Location: Colorado
Posts: 124

Rep: Reputation: 15
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:
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:
dd /dev/sda5 ibs=4096 | gzip /mnt/sdd7/Win2k.image.gz conv=noerror
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:
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.
Old 07-08-2007, 02:43 PM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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?
Old 07-08-2007, 02:43 PM   #3
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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.

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.

Last edited by stress_junkie; 07-08-2007 at 02:45 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making an image of my partition in Win2k? Jorophose General 5 06-20-2007 08:00 PM
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 05:21 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
Mount a Gzip image zael Programming 1 06-04-2004 03:17 PM
Wiping my Win2K partition? Ice9 Linux - General 5 04-17-2003 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration