bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] ddrescue: Can't open input file: Permission denied


From: Zeniff Martineau
Subject: Re: [Bug-ddrescue] ddrescue: Can't open input file: Permission denied
Date: Tue, 6 Sep 2016 08:35:53 -0700

I second what Paul said: move --force/-f to the front with the other
options, because
https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html#Invoking-ddrescue
says:

"The format for running ddrescue is:

     ddrescue [options] infile outfile [mapfile]"

Otherwise, I think it's taking "/media/(user)/recoverylogfile.txt" as
the outfile name and "--force" as the log/mapfile name (just my
guess).
And then also add on "sudo" at front like Robert said, if still needed.

I think I've had your issue a long long time ago, but not really sure
if I'm remembering right.
Maybe ddrescue could do a command format check before running (it does
already show "while" it's running), or maybe output what it thinks are
the options used were even on an error like that?


On 9/6/16, Robert Trevellyan <address@hidden> wrote:
> The error message refers to the input, not the log. Have you tried sudo?
> sudo ddrescue -v -n /dev/sdb3 /dev/sdc1 /media/(user)/recoverylogfile.txt
> --force
>
> Robert Trevellyan
> 518 392 0846
> https://trevellyan.biz
>
> On Tue, Sep 6, 2016 at 9:11 AM, Kevin Okie <address@hidden> wrote:
>
>> Dear All,
>>
>> I'm attempting to clone a corrutped Windows partition from bad
>> disk/partition sdb3 to external HD device/partition sdc1
>>
>> The command I am using is:
>> ddrescue -v -n /dev/sdb3 /dev/sdc1 /media/(user)/recoverylogfile.txt
>> --force
>> (doing '-n' at first to skip errors so i can return to them later)
>> (added '--force' because without it I get the message "output file
>> exists and is not a regular file". '--force' allows me to overwrite
>> what is on the target device).
>>
>> Even if I shorten up the logfile part of the command to just
>> 'logfile.txt' with no path, I get the same error. However, if I omit
>> the logfile part of the command, the utility runs. However, I need the
>> logfile to go back and try to recover parts of the drive with errors
>> later.
>>
>> Any assistance much appreciated!
>>
>> Thanks!
>>
>> Kevin
>>
>> _______________________________________________
>> Bug-ddrescue mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/bug-ddrescue
>>
> _______________________________________________
> Bug-ddrescue mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-ddrescue
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]