Page 1 of 2 12 LastLast
Results 1 to 10 of 46

Thread: gnuddrescue utility script

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Beans
    38

    gnuddrescue utility script - ddrutility

    Hopefully this is a good place to post this. I am working on a ddrescue utility script. My end goal was for it to be a menu driven frontend for ddrescue. However, right now it is a functional script that will take a ddrescue log and find all files on the entire drive that are corrupt, and I think that is all I will end up making it. It currently does pretty much what I want it to do, but I may make updates to fix bugs or tweak it. Read the text at the beginning of the file (or use the help function) for dependencies and info. I will update this periodically as I make new versions. Enjoy.

    Features:
    Finds the files related to bad sectors
    Uses the logfile from gnuddrescue
    Can also use a file with a sector list
    Works on a whole drive or single partition
    Works on a target device or image file
    Works on NTFS, EXT2/3/4, FAT16/32, and HFS+ partitions
    Works on DOS, GPT, and APT partitioned drives
    Should be faster than other methods (md5sum and grep) in most cases
    Does not (knowingly) write to or alter the target
    File system of target does not have to be mounted
    Uses command line arguments

    Changelog:
    version 1.3
    * Initial release

    version 1.4
    * Added MAN page
    + Made improvements to --help output
    * Added support for HFS+ file system
    * Added support for GPT and APT partition tables
    * Improved some of the code
    + Improved how it handles loop devices
    + Improved handling of FAT partitions
    + Changed names of temp files so less likely to be existing file
    + Target, logfile, and output file names can now contain spaces
    + Added option to change sector size
    + Added option to include more info in long results
    + Changed command line arguments
    * Fixed bug so Linux partitions get correct block size
    * Major code reconstruction to make it more modular


    It is now hosted in a PPA, here is the link:
    https://launchpad.net/~scott-dwyer/+archive/ddrutility

    To install this on Ubuntu 9.10 and newer from the PPA:
    sudo add-apt-repository ppa:scott-dwyer/ddrutility
    sudo apt-get update
    sudo apt-get install ddrutility

    Version 1.3 is on Ubuntu Rescue Remix 12.04. To use the latest version with a live CD you will have to download the .sh file and put it on another media such a a USB flash drive and run it from there.

    Download links for both .sh and .deb files
    Attached Files Attached Files
    Last edited by maximus57; May 25th, 2012 at 04:28 PM. Reason: Updated code

  2. #2
    Join Date
    Jul 2009
    Beans
    38

    Older versions

    Here are previous versions, if the need should arise.

    Note that both 0.12b and 1.3 have a bug that Linux partitions only work properly if the block size of the filesystem is 4096.
    Attached Files Attached Files
    Last edited by maximus57; May 11th, 2012 at 05:25 AM.

  3. #3
    Join Date
    Apr 2006
    Beans
    417

    Re: gnuddrescue utility script

    Awesome to find someone interested in what I've been working on. Check out my ddrescue front end at triagelinux.com

    Script files are here
    http://triagelinux.com/downloads/scripts.zip

  4. #4
    Join Date
    Jul 2009
    Beans
    38

    Re: gnuddrescue utility script

    Quote Originally Posted by bakegoodz View Post
    Awesome to find someone interested in what I've been working on. Check out my ddrescue front end at triagelinux.com

    Script files are here
    http://triagelinux.com/downloads/scripts.zip
    Cool, thanks for the link to the scripts. If I do end up going farther with what I have, I may use some of your ideas in my script, hope you don't mind. If I do I will give credit where credit is due.

    Edit: I just saw your reply on the ddrescue bugreport. If you use my script in your frontend, maybe I won't have to make one
    Last edited by maximus57; March 31st, 2012 at 10:29 PM.

  5. #5
    Join Date
    Jul 2009
    Beans
    38

    Re: gnuddrescue utility script

    My script is being considered to be put on the next version of Ubuntu Rescue Remix. But I need to turn it into a Debian package. Can someone help point me in the right direction for that?

    Also, I am interested in anyone testing my script. I have put it through many tests, but the outside world needs to test it so I can get some feedback.
    Last edited by maximus57; March 31st, 2012 at 10:36 PM.

  6. #6
    Join Date
    Apr 2006
    Beans
    417

    Re: gnuddrescue utility script

    Here is basics of deb files. A simple deb file is just a compressed folder with a yourproject/DEBIAN/control text file giving the package information and a binary in yourproject/usr/bin or where you want the files to end up. Other library files etc can be added in their appropriate relative path folders.
    You compress up the folder into a deb file with 'dpkg -b' command
    More information here: http://www.linuxfordevices.com/c/a/L...-deb-packages/

    Also you can easily make deb files out of source packages that you "make" with checkinstall
    http://www.falkotimme.com/howtos/checkinstall/
    Last edited by bakegoodz; April 4th, 2012 at 06:18 AM.

  7. #7
    Join Date
    Jun 2013
    Beans
    2

    Re: gnuddrescue utility script

    I just joined the forum to say thanks for your work so far, this project is well worth a high five!

    Edit i just tried to install :ddrutility_1.6-1_all.deb in ubuntu 12.04 and got a few missing libs which are not easy for me to install.

    All these are 404
    http://us.archive.ubuntu.com/ubuntu/....09-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...6.11-1_all.deb
    http://us.archive.ubuntu.com/ubuntu/...1.2-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...1.2-1_i386.deb

    All these are the latest. After downloading, package manager just says "unknown error"

    http://us.archive.ubuntu.com/ubuntu/....22-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...6.39-1_all.deb
    http://us.archive.ubuntu.com/ubuntu/...untu1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...untu1_i386.deb

    Maybe its easy to update the .deb package ?
    Last edited by tratb9; June 1st, 2013 at 10:21 AM.

  8. #8
    Join Date
    Jul 2009
    Beans
    38

    Re: gnuddrescue utility script

    Quote Originally Posted by tratb9 View Post
    I just joined the forum to say thanks for your work so far, this project is well worth a high five!

    Edit i just tried to install :ddrutility_1.6-1_all.deb in ubuntu 12.04 and got a few missing libs which are not easy for me to install.

    All these are 404
    http://us.archive.ubuntu.com/ubuntu/....09-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...6.11-1_all.deb
    http://us.archive.ubuntu.com/ubuntu/...1.2-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...1.2-1_i386.deb

    All these are the latest. After downloading, package manager just says "unknown error"

    http://us.archive.ubuntu.com/ubuntu/....22-1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...6.39-1_all.deb
    http://us.archive.ubuntu.com/ubuntu/...untu1_i386.deb
    http://us.archive.ubuntu.com/ubuntu/...untu1_i386.deb

    Maybe its easy to update the .deb package ?
    I currently use xubuntu for my programming (in vmware), and can install ddrutility 1.6 on both 32 and 64 bit versions of 12.04. I will have to download and install the regular ubuntu 12.04 to test and see if I can recreate the issue, but I have a few questions. Is your ubuntu up to date with updates, or is it a fresh install? Is it the 32 or 64 bit version? Did you download it from here, or set it up through launchpad? Is you ubuntu really 12.04, or did you let it upgrade (type "lsb_release -a" in a terminal window to see what version you have).

    You should still be able to use the .sh file as an alternative. Just read the help file on how to use it. Note that it has 3 requirements that you have to install, they are listed in the help file.

    EDIT:
    It is possible that the update server your ubuntu installation is connecting to is corrupt. Do a search for "ubuntu change update mirror" for how to change the update server mirror, and see if that solves your problem.
    Last edited by maximus57; June 3rd, 2013 at 10:34 PM.

  9. #9
    Join Date
    Jun 2013
    Beans
    2

    Re: gnuddrescue utility script

    I think that's enough help to get me going for now, thanks. Since i dont want to derail your time for newbie trouble shooting in place of the real great work your doing here i will wait, if things dont work, for your project to finish and then ask for more help.

    edit
    It was plenty of help, simple update fixed the issue & ddrutilities installed. Thanks again
    Last edited by tratb9; June 4th, 2013 at 10:57 PM.

  10. #10
    Join Date
    Jul 2009
    Beans
    38

    ddrutility moved to sourceforge

    I would like to announce that I have moved ddrutility to sourceforge.

    https://sourceforge.net/projects/ddrutility/

    I will still reply to posts on here as I get them, but any further work will be at sourceforge. Also, I believe I have the forum page open on it there, so comments and further discussions will be welcome there.

    Also, at this time I am not planning on keeping ddrutility updated in Launchpad.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •