LinuxQuestions.org
Review your favorite Linux distribution.
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 09-25-2015, 08:43 AM   #1
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Rep: Reputation: Disabled
ddrescue mapfile and logfile location?


http://www.gnu.org/software/ddrescue...ue_manual.html

I am wondering about the 'mapfile'
What does it contain and where does it get written?
Can you specify a location or is it hardcoded.

And what about 'ddrescuelog -d mapfile'
What does this tell you about unrecoverable file names?
Anyone with experience reading the mapfile ddrescue creates?
 
Old 09-26-2015, 01:10 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by sdowney717 View Post
What does it contain
That's written here: http://www.gnu.org/software/ddrescue...file-structure


Quote:
Originally Posted by sdowney717 View Post
and where does it get written? Can you specify a location or is it hardcoded.
Yes, you may specify a location.


Quote:
Originally Posted by sdowney717 View Post
And what about 'ddrescuelog -d mapfile' What does this tell you about unrecoverable file names?
"--delete-if-done" deletes the map file if all the blocks in the rescue domain have been successfully recovered. The manual typically says nothing about file names being recoverable or not because they most often aren't. Ask yourself if valuing recoverable file names over recoverable file contents is worth the time and effort.


Quote:
Originally Posted by sdowney717 View Post
Anyone with experience reading the mapfile ddrescue creates?
At http://www.gnu.org/software/ddrescue...file-structure it says its plain text and the contents are described. What is your specific question?
 
Old 09-28-2015, 05:21 PM   #3
sdowney717
Member
 
Registered: Sep 2015
Posts: 495

Original Poster
Rep: Reputation: Disabled
Quote:
What is your specific question?
Curiosity, another poster on windows7 forums has recovered his win7 boot drive by writing to a new drive using ddrescue.
He made the comment that some 'recovery.log' file he would like to read but cant find it anywhere?
I am assuming the mapfile he named 'recovery.log'
So was trying to help him out.

http://www.sevenforums.com/general-d...ecovery-3.html

I dont have the experience of using ddrescue, so maybe you could help them out, ddrescue is getting a lot of positive acclaim there.

nkaufman fixed his drive.
 
Old 10-11-2015, 03:56 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by sdowney717 View Post
He made the comment that some 'recovery.log' file he would like to read but cant find it anywhere?
Sorry, was away. In post #27 he gave his command line as
Code:
ddrescue -r3 -n -v /dev/sdb /dev/sdc recovery.log
so "recovery.log" will be in the current working directory where he started the process. Note working from a LiveCD / Flash drive isn't a problem as long as you save the log file to a permanent location when you pause or before you reboot.
 
Old 10-11-2015, 06:54 AM   #5
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 16.04 LTS
Posts: 236

Rep: Reputation: 65
Quote:
Originally Posted by sdowney717 View Post
http://www.gnu.org/software/ddrescue...ue_manual.html

I am wondering about the 'mapfile'
What does it contain and where does it get written?
Can you specify a location or is it hardcoded.

And what about 'ddrescuelog -d mapfile'
What does this tell you about unrecoverable file names?
Anyone with experience reading the mapfile ddrescue creates?
You can open the map file in a text editor and see by yourself. It contains lines with sector ranges and the information whether it has been read succesfully or not or whether it's still pending. It saves that file where you tell it to save it. If you don't specify a path than it will be the current directory. If you boot from a live cd it might be lost after a reboot.

ddrescue doesn't know anything about filenames. It doesn't care about filesystems as it reads sectors from a device and writes it to another device or file..
 
Old 02-13-2016, 02:25 PM   #6
justin-goldberg
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Rep: Reputation: 0
You can also open the mapfile in ddrescue-view, a GUI that shows you a map of the disk with bad, good, etc... mapped out like many Windows defrag programs have.
 
  


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
LXer: Google I/O Android News: Location, Location, Location (Plus Cloud Messaging and Bluetooth) LXer Syndicated Linux News 0 06-05-2013 01:00 PM
ddrescue? serialportme Linux - Newbie 1 07-12-2012 12:50 AM
gpsdrive "mapfile could not be loaded" error Neofish Linux - Software 1 11-17-2009 06:53 PM
Shell scripting: Print output to logfile, error to logfile & screen stefanlasiewski Programming 18 05-22-2008 12:47 PM
Linker options in portind from solaris to linux for mapfile support phani@tcs Linux - General 2 10-25-2005 11:49 PM

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

All times are GMT -5. The time now is 12:11 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
Open Source Consulting | Domain Registration