LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-15-2012, 02:33 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Wink dd - restore backup image with progression?


Hello,

I got a crash of a hdd cluster. I change with new hdd, and now restoring... man it takes ages...

I would be glad if there was progression to this following command (a percentage that evolves while restoring):

Code:
gunzip -c /mnt/sdb1/image_sdb_.img.gz | dd of=/dev/sdc
Any command like above with progression would be very welcome

thank you
 
Old 09-15-2012, 04:21 PM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
The only way I know of to get progress from dd is to send it the USR1 signal - from another process.

1st - find the pid of the process running dd. Set it to $piddd. (You could get this via
Code:
dd if=xxx of=/dev/sdc& piddd=$!
- not sure if that works after a pipeline but I think so.)

2nd - run this (in another shell if necessary)
Code:
while true; do kill -USR1 $piddd; sleep 60; done
3rd - go back to the first shell window. Every 60 seconds the dd process will spit out a progress message (how much it's done, not a percentage or how much is left).

Adjust to taste.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to restore a backup image to drive using Clonezilla justmehere Linux - Software 8 04-25-2011 01:05 AM
[SOLVED] Best open source software / live cd solution to image / backup & restore a WIN 7 ? uncle-c Linux - Newbie 7 11-02-2010 06:57 AM
backup and restore files (not image) sjewins Linux - General 1 09-25-2008 01:53 PM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
LXer: Creating a dd/dcfldd Image Using Automated Image & Restore (AIR) LXer Syndicated Linux News 0 03-07-2007 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:25 PM.

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
Open Source Consulting | Domain Registration