dd_rhelp error msg

Report any bugs to MFSLive CD, including new mfstools, documentation, other tools.

dd_rhelp error msg

Postby Overlook on Thu May 31, 2007 8:48 am

Entering any of the following:
dd_rhelp
dd_rhelp --help
dd_rhelp --version
Will return:
/usr/sbin/dd_rhelp: 98: -: not found
/usr/sbin/dd_rhelp: 99: -: not found
/usr/sbin/dd_rhelp: 100: -: not found
/usr/sbin/dd_rhelp: 101: -: not found
/usr/sbin/dd_rhelp: 136: -: Syntax error: "(" unexpected

I need to use dd_help but it appears broken.

PS:Version 1.13 of dd_rescue is available

Please help
Thank you
Overlook
 
Posts: 1
Joined: Thu May 31, 2007 8:12 am

Re: dd_rhelp error msg

Postby Jay Levitt on Sun Oct 19, 2008 3:36 pm

I think I have this working now... I'd post a proper patch, but this was all edited inside busybox :)

To fix dd_rhelp:

- Change all instances of "$[ ]" to $(( )) (including line 490, where you weren't expecting it)
- Change all instance of "function blah()" to "blah()"
- Add the empty parens to the definitions of get_path, require_exe, get_valid_dd_rescue

- In get_path(), replace
Code: Select all
echo $(type -p $1)
with
Code: Select all
echo $(type $1)


- In get_valid_dd_rescue(), replace
Code: Select all
path=$(get_path dd_rescue)
with
Code: Select all
path="/usr/sbin/dd_rescue"


The last two fixes are not needed if you instead update BusyBox to the latest version, which supports "type -p".
Jay Levitt
 
Posts: 2
Joined: Sun Oct 19, 2008 2:59 pm

Re: dd_rhelp error msg

Postby ciper on Fri Dec 05, 2008 12:24 am

Can someone help me with this? I am trying to edit the file as mentioned above but cannot find all of the items mentioned.
I think I have made all of the changes needed except for
"- Add the empty parens to the definitions of get_path, require_exe, get_valid_dd_rescue"
which I don't understand


Jay Levitt: Why not post the modified file to sharebee?
ciper
Expert User
 
Posts: 135
Joined: Sun Jul 22, 2007 9:24 pm

Re: dd_rhelp error msg

Postby Jay Levitt on Fri Dec 05, 2008 7:59 am

Ciper: I was doing the editing inside BusyBox, and I didn't see any way to save the file "outside" of its world - no external drives mounted, no network, etc.

the empty parentheses mean you need to change "function require_exe" to "function require_exe ()", and likewise for get_path and get_valid_dd_rescue.

That said, if I remember right, I ended up giving up on dd_rhelp. My drive was in bad enough shape that I kept running into other bugs, and it was more effective to just dd_rescue the whole thing and let it chug through.
Jay Levitt
 
Posts: 2
Joined: Sun Oct 19, 2008 2:59 pm

Re: dd_rhelp error msg

Postby ciper on Sun Dec 07, 2008 6:08 am

I wanted to let everyone know that DD_Rescue and DD_Rhelp are crap compared to DDRESCUE (notice the lack of underscore). Look here http://www.gnu.org/software/ddrescue/ddrescue.html

I compiled a copy of this on Ubuntu to help me recover a dying Tivo drive.
ciper
Expert User
 
Posts: 135
Joined: Sun Jul 22, 2007 9:24 pm


Return to Bug Report

Who is online

Users browsing this forum: No registered users and 0 guests