LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-08-2007, 03:21 PM   #1
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Posts: 122

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:
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.
 
Old 07-08-2007, 03:43 PM   #2
b0uncer
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, 03:43 PM   #3
stress_junkie
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.

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.

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


Reply


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 09:00 PM
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 06:21 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 04:17 PM
Mount a Gzip image zael Programming 1 06-04-2004 04:17 PM
Wiping my Win2K partition? Ice9 Linux - General 5 04-17-2003 05:54 PM


All times are GMT -5. The time now is 02:24 AM.

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