LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2005, 01:10 PM   #1
john8675309
Member
 
Registered: Oct 2003
Location: Spencer, Iowa
Distribution: Slackware (of course)
Posts: 67

Rep: Reputation: 16
tarring a dd stream


I would like to make a backup of my hard drive /dev/hda1 using dd so all the boot blocks etc get saved. I need to make this into a tar file (tar.bz2 if I could) I figured out how I can make dd output all the stuff inputed dd if=/dev/hda1 this will output everything to the screen. How can I get tar to capture this? And when I want to restore I need to untar to dd if={stream} of=/dev/hda1. How can I do this?

--John
 
Old 04-22-2005, 04:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
don't tar it, it won't benefit you at all, as it's already a single stream of data. instead jsut send it straight to bzip2:

dd if=/dev/hda | bzip2 blah.bz2 -

or something along those lines.
 
  


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
set password when bzipping/tarring/gzipping alice95089 Linux - Software 14 01-03-2005 04:09 PM
Issue tarring data Johnny Mac Linux - Newbie 5 11-12-2004 03:58 PM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 06:25 PM
un-tarring multiple files phil1076 Linux - General 19 12-18-2003 03:03 PM
Tar with --newer option tarring all dirs jlangelier Linux - Newbie 0 07-09-2003 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 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