All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: ddrescue: error writing logfile: no space left on device.
PostPosted: January 19th, 2012, 16:51 
Offline

Joined: January 15th, 2010, 12:12
Posts: 24
Location: Go Pats
I get the following error upon completion of clone with errors.

Code:
ddrescue: error writing logfile: no space left on device.
Fix the problem and press ENTER to retry, or Q+ENTER to abort.

I tested a clone on an error free drive and I do not get the above logfile error. It just defaults back to the root prompt.

I've been using ddrescue from a live SystemRescueCd, but recently I made a SystemRescueCd bootable flash drive and still got the logfile error. There is about 500Mb free on the flash drive.

Anyone know why I get the logfile error?

If I type
Code:
ddrescue /dev/sda /dev/sdb log.txt
where would the log file be stored?


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 19th, 2012, 17:20 
Offline
User avatar

Joined: February 9th, 2009, 16:13
Posts: 2537
Location: Ontario, Canada
The log file is stored in the directory in which you run the command, unless you specify another location.

_________________
Luke
Recovery Force Data Recovery


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 19th, 2012, 17:28 
Offline

Joined: January 15th, 2010, 12:12
Posts: 24
Location: Go Pats
Gotcha. So in the case of a live cd it tries to store it on the cd, which is why I get the error.

In the case of my flash drive though...is 500Mb enough for a logfile? Maybe I need a larger flashdrive.


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 19th, 2012, 17:51 
Offline
User avatar

Joined: February 9th, 2009, 16:13
Posts: 2537
Location: Ontario, Canada
With the live CD, it would depend on how much space it sets aside in memory...but, you would lose the log file if you need to reboot. As for the thumb drive, I suggest you use something larger.

_________________
Luke
Recovery Force Data Recovery


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 19th, 2012, 17:59 
Offline

Joined: October 15th, 2010, 22:45
Posts: 80
Location: USA
Out of 1300 log files I have the biggest is 77MB


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 19th, 2012, 18:10 
Offline

Joined: January 15th, 2010, 12:12
Posts: 24
Location: Go Pats
^^ cool, thanks. I just ordered a 16Gb thumb drive anyways.

The one I was originally using was 1Gb with 500Mb of free space.

So to confirm...when I run the command from the thumb drive as is...
Code:
ddrescue /dev/sda /dev/sdb log.txt
...the logfile should be on the root of the thumb drive.


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 20th, 2012, 10:32 
Offline

Joined: January 15th, 2010, 12:12
Posts: 24
Location: Go Pats
Ok so I ran ddrescue on a bad drive again using the thumb drive with 500Mb free space and still gave me the logfile error.

From my understanding if I run the command from the flash drive...
Code:
ddrescue /dev/sda /dev/sdb log.txt


...it should save it to the flash drive right?

If the flash drive is /dev/sdc then maybe I have to do...

Code:
ddrescue /dev/sda /dev/sdb /dev/sdc/log.txt


Maybe I'll have to setup a dual boot for linux to make this work so it saves it on the hard drive.


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: January 20th, 2012, 11:13 
Offline

Joined: May 6th, 2008, 22:53
Posts: 2138
Location: England
TommyTuffNutz wrote:
Ok so I ran ddrescue on a bad drive again using the thumb drive with 500Mb free space and still gave me the logfile error.

From my understanding if I run the command from the flash drive...
Code:
ddrescue /dev/sda /dev/sdb log.txt

...it should save it to the flash drive right?

No. Due to the clever tricks used on LiveCD/USB images (e.g. UnionFS), you cannot assume the behaviour you describe above. In some cases, files saved will probably go to the RAM disk (as lcoughey mentioned above). Other filesystems may be read-only (which is what I suspect is happening to you).

Your issues now are with SysRescue & Linux and not with ddrescue or data recovery, and this is not a SysRescue or Linux forum, so don't expect exhaustive help here. This is one of the problems with trying to use ddrescue on Linux, without having Linux experience. :( You may want to do more general learning & practice about using Linux, and SysRescue behaviour / functionality (without touching your "problem" disk until you are more confident). I don't use SysRescue myself.

TommyTuffNutz wrote:
If the flash drive is /dev/sdc then maybe I have to do...

Code:
ddrescue /dev/sda /dev/sdb /dev/sdc/log.txt

No. That's the wrong syntax / approach - you need to save the logfile to a filesystem, not to a raw device.

TommyTuffNutz wrote:
Maybe I'll have to setup a dual boot for linux to make this work so it saves it on the hard drive.

I can't judge whether that's sensible for you, on your system, and with whatever your skill level is. Without setting-up a dual-boot system, there are several possible approaches you could take, including either:

a) Researching the use of "backing store" (sometimes called "backstore") on SysRescue.

or

b) Using an extra, formatted USB memory stick to hold the ddrescue logfile. This needs to be mounted read/write in Linux before you run ddrescue, and then your ddrescue logfile parameter needs to point to a filename on that filesystem.

Of those two, I expect (b) will be easier for you. Personally I doubt you're running out of space on your original USB memory stick, and I expect that the error message is due to where you are telling ddrescue to try to write the logfile, and how SysRescue is designed to treat that filesystem.


Top
 Profile  
 
 Post subject: Re: ddrescue: error writing logfile: no space left on device
PostPosted: February 9th, 2012, 1:28 
Offline
User avatar

Joined: September 28th, 2008, 0:30
Posts: 34
sshfs is your friend


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: pepe and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group