Extracting certain files from faulty HD

Hi, i'm trying to recover /home/kris/.zsnes/Legend of Zelda, The - A Link to the Past (U) [!].srm and (i guess, if i need it) /home/kris/.zsnes/Legend of Zelda, The - A Link to the Past (U) [!].zst first and foremost. They are zsnes and snes9x save files. I'm trying to recover them from a faulty HD which is an ext3 and is LVM2 formatted.
I can't mount the disk, nor does testdisk or photorec work(they both hang). SO since this is such a messed up drive i figured i would try to read the disk in hex and only extract the pieces i need to. I know "where" they are on the disk, as mentioned above, but i don't know where to go from here. I suppose to exert the disk as little as possible(to avoid more mucking up) i need to:
1. find out where the files are physically stored(hopefully they are in the same block/sector <- i don't really understand what this means _exactly_..)
2. read as little as possible/take as little a risk as possible and only extract exactly the bits needed and store them on the new HD as files.
But... HOW would i go about doing this, which programs would i use(the best would be if i could script it i suppose, as then i would only access exactly the portions i needed?) AND is there a better way? I'm thinking i could try ddrescue, but then i'd need to find out where these files are on disk first..

If you can't find any utilities that work, try this:
1. Create a few new .srm files, open them in a hex editor, and figure out what the header looks like (binary files usually start with something fairly identifiable so that e.g. zsnes knows it's looking at a proper .srm file).  If you're even luckier, the file might even contain the ROM name or say, the name you gave your character, as plain text.
2. Open the raw disk in a hex editor, and search for the header you figured out in step 1.
3. Copy out the data starting at the point you figured out in step 2, for the length an srm file is for a Legend of Zelda save (look at the files you made in step 1).
4. If you're lucky, the first one will work.  If not, rinse and repeat.  Depending on how much you figured out in step 1, you may end up having to copy over every .srm file to find the right one.  If you're unlucky, the file you're looking for could be corrupted, or if it's bigger than the block size of the drive (like hbekel said I think 4kB is a pretty typical value), it may be stored on non-consecutive blocks, in which case you're out of luck short of finding a tool that works.
I don't have any experience with hex editors in linux, although at first glance "hexedit" seems up to the task and is in the arch repos.
EDIT: I second hbekel's advice to image the drive ASAP in case it's a hardware failure.
Last edited by redden0t8 (2011-03-25 18:37:44)

Similar Messages

  • Extracting certain files from a jar

    I am creating a jar that when d-clicked on will extract its files to the computer the jar resides on. Here is my question: how do I get it to only extract certain files(ie. all files except the classes used to give the extraction command upon d-clicking and the manifest)?
    Thanks!!

    The following post won't solve the doubl clicking problem, but it will get you started on getting specific files from a Jar.
    Go to:
    http://forums.java.sun.com/thread.jsp?forum=22&thread=138514

  • How can I extract certain pages from my document and save as another file?

    How can I extract certain pages from my document and save as another file?

    You would need Adobe Acrobat to do that, not Adobe Reader.

  • Extracting .s2p files from 8722A Network Analyzer?

    Hi,
    I wish to extract .s2p files from my HP 8722A Network Analyzer.
    I could not find a driver for it. It is connected to my computer over GPIB.
    I am quite new to this, so if anyone could explain the overall process to extract .s2p files from a network Analyzer, that would be much appreciated.
    I imagine that one takes a measurement, stores it under a certain filename, then a command retrieves it and sends it to the computer?
    Thank you so much,
    Nicolas
    Solved!
    Go to Solution.

    Nicolas,
    Instead of extracting the .s2p files, which because of the age of the device (manual I found said 1991), could be very difficult, I think we would be better served communicating with the device directly and not using the files it creates. Instead of the process you described, we could set it to take a measurement, send the measurement to the computer, and have the computer do any manipulation/saving it may need.
    This manual discusses the basics of communication over GPIB with that device in chapter 12:
    http://cp.literature.agilent.com/litweb/pdf/08720-​90135.pdf 
    GPIB communication is typically pretty simple. The computer will just send the device in question the command or series of commands then wait for the response back, much like the GPIB examples in labview (Example finder>>Hardware IO>>GPIB).
    Unfortunately for us, the Agilent website here:
    http://www.home.agilent.com/agilent/product.jspx?c​c=US&lc=eng&ckey=8722A:epsgro&nid=-536900197.53690...
    only has the operating and service manuals, and not the programming reference manual.  You may want to contact agilent to get the programming reference manual, as that will list all of the commands you need to send the device.
    Regards,
    Kyle Mozdzyn
    Applications Engineering
    National Instruments
    Regards,
    Kyle M.
    Applications Engineering
    National Instruments

  • HT4859 Restore certain files from iCloud backup file.

    I have a backup file on icloud for an old ipad.  I want to extract certain files.  How can I access that backup and look at the files so that I can extract certain ones?

    You can't selectively restore from a back up, you need to restore everything or nothing.

  • Extracting .xls file from an FTP site

    Hi there,
    I'm trying to run a DI solution that is extracting a file from a FTP site. DI can see the file but it gives me an error saying that:
    FTP could not transfer file <FTP site/myfile.xls> from host <IP Address>: <>. Please ensure that the FTP relative path for the SAP R/3 working directory is set correctly such that the data file is accessible to the FTP
    Can someone please help with this.
    Thank you.
    Gsecure

    Hi,
    thats SP1 for DS XI 3.2
    I think there is no delta from XI 3.2 to XO 3.2 SP1 what means you have to do a fresh install and upgrade repo.
    But you better doublecheck before but i think there is no delta.
    Regards
    -Seb.

  • I have to extract all files from a hard drive of a macbook pro that is no longer working. All I have to access the hard drive is a PC, is this possible, and if so how?

    I have to extract all files from a hard drive of a macbook pro that is no longer working. All I have to access the hard drive is a PC, is this possible, and if so how?

    You could try Paragon HFS+ for Windows. That would allow you to read and write files from a Mac-formatted drive.
    Clinton

  • Batch file extracting all files from nested archives

    I have managed to leverage a powerful
    forfiles command line utility with the mighty
    7z compression program.
    Below is a simple batch file extracting all files from nested archives hidden at any depth inside other archives and/or folders. After the extraction each archive file turns into a folder having the archive file name. If, for example, there was an "outer.rar"
    archive file containing nothing but an "inner.zip" archive with only "afile.txt" inside, "outer.rar" becomes "...\outer.rar\inner.zip\afile.txt" file system path.
    @echo off
    rem extract_nested_archives.bat
    move %1 "%TMP%"\%2
    md %2
    7z x -o%1 -y %TMP%\%2
    del "%TMP%"\%2
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE extract_nested_archives.bat @path @file"
    ARCHIVES ARE DELETED DURING THE EXTRACTION! Make a copy before running the script!
    "7z.exe" and "extract_nested_archives.bat" should be in folders available via the %PATH% environment variable.
    The first parameter of extract_nested_archives.bat is the full path name of the archive or folder that should be fully expanded; the second parameter is just the archive or folder name without the path. So you should run "c:\temp\extract_nested_archives.bat
    c:\temp\outer.rar outer.rar" from the command line to completely expand "outer.rar". "c:\temp" must be the current folder.
    Best regards, 0x000000AF

    Incredibly useful!  Thank you so much.  I did make a couple of small changes to make the script a little easier to use from the end-user perspective.
    First - I don't like making the user input the redundant second parameter, so I added this snippet which extracts it from the first parameter.  The first line of the snippet enables delayed expansion so that special characters in our file name don't
    break anything.  The second line pulls the parameter into a variable, and the 3rd line uses delayed expansion on that new variable.  Before implementing delayed expansion I had problems with file paths which included parentheses.
    SetLocal EnableDelayedExpansion
    Set SOURCE=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    Anyway once that was done, I just used %FILENAME% everywhere in the script instead of
    %2 (making sure to correct quotes as needed)
    This way, to run my script all you need to run is:
    C:\temp\extract_nested_archives.bat C:\temp\Archive.zip
    Second - I didn't want to modify the Windows environment variable.  So I replaced
    7z with "%PROGRAMFILES%\7-zip\7z.exe"
    I also replaced extract_nested_archives.bat with "%~f0" (which represents the full path+filename of the current script).
    Here is my full script now.  Tested on Windows 8 with the 64-bit version of 7-zip installed:
    @echo off
    Setlocal EnableDelayedExpansion
    Set source=%1
    For %%Z in (!source!) do (
    set FILENAME=%%~nxZ
    set FILENAME=%FILENAME:"=%
    move /Y %1 "%TMP%\%FILENAME%"
    md "%FILENAME%"
    "%PROGRAMFILES%\7-zip\7z.exe" x -o%1 -y "%TMP%\%FILENAME%"
    DEL "%TMP%\%FILENAME%"
    for %%a in (zip rar jar z bz2 gz gzip tgz tar lha iso wim cab rpm deb) do (
    forfiles /P %1 /S /M *.%%a /C "cmd /c if @isdir==FALSE "%~f0" @path @file"

  • How to extract rpt file from .b1px file in SAP B1

    How to extract rpt file from .b1px file in SAP B1

    Hi Trupti,
    You will not be able to export .b1px file without importing in SAP B1.
    Please import .b1px file in SAP B1 and then export .rpt file from SAP B1 one by one.
    Hope this helps
    Regards::::
    Atul Chakraborty

  • How to extract  DB  FILE  FROM NONSAP  SYSTEM  IN BI-7

    how to extract  DB  FILE  FROM NONSAP  SYSTEM  IN BI-7

    hi,
    chk the links for extraction using DB
    Extraction using DB connect
    http://help.sap.com/saphelp_nw70/helpdata/EN/58/54f9c1562d104c9465dabd816f3f24/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/0ffb40af87ee6fe10000000a1550b0/frameset.htm
    Extract data from oracle DB to SAP BI 7.0
    Ramesh

  • How to extract single file from multipart zip archives?

    Hello,
    I have a 10 parts of zip files that contains single file. When I extracted these, each program taking an action seperatly to each parts and gave me 10 files in a different folders. In a Windows, it is so simple. Winzip,winrar automaticaly discovering that are the parts of a single file and give me that.
    My question is simple: How to extract single file from a multipart zip/rar archives ?
    I know a way in "Terminal" but it is not comfortable for big parts.

    I tried with UnArchiver but it extracted each file seperately like showen in a photo

  • Delete certain files from backup

    Is it possible to:
    1) backup my iPhone (locally with my iTunes on Win7), I CAN DO THIS, of course
    2) delete only certain files from the backup (there are many tools for exploring backup, but I have not found anyone which can also delete certain file, only view and export), I CAN LOCATE THE BACKUP DIRECTORY and see the files, but is it possible to locate those that I'd like to delete and simply erase them?
    3) restore my iPhone with such an altered backup?
    Thank you
    Kamil
    PS: I need to delete certain files from var directory, but I do not have root access, so this seems to be the only solution (I do not want to jailbreak and also I do not want to start from zero, I mean to make factory reset and then to set up everything again)

    Maybe you should try to install it and try it yourself.
    You can edit sql databases (delete some records e.g. from call history), but you cannot delete files in the folders (.jpegs, .plist etc.).
    I tried to export only files, that I wanted to recover, then I have made factory reset of my iPhone, made new local backup of the empty reseted device. Then I tried to import to this empty backup those exported files, but it is also not supported. Only files which already exist in the current backup can be imported. It means that you cannot remove or add file into the backup, you can only modify it - with this tool certainly.
    Let us try it with another question: is it possible to make selective restore (to restore only certain settings, call history, SMS's, files...,) but not the whole backup?
    Thank you for your effort.

  • Utility to extract ADS file from Planning application

    Hi,
    We had a Planning System 9.3 Classic application. We wanted to create a replica of the same as an EPMA application. We used a utility to extract ADS file from classic application. Post that the classic application has locked i.e we are not able to edit it. All dimensions are in view mode. Kindly let us know how to revert back in edit mode for classic application.
    Thanks and Regards,
    Meenal Dhall

    Hi,
    I think you have come across the bug in the EPMA extractor, if I remember correctly it changes a value in a table which stops you editing in classic.
    You can resolve this looking at your planning system database.
    There is a table called HSPSYS_PROPERTIES.
    The field property_id is the application id, you find what application it relates to by looking at HSPSYS_APPLICATION
    Once you know the id for your application
    In the table HSPSYS_PROPERTIES look for a row with EDIT_DIM_ENABLED and change the value in the next field from false to true
    Restart planning and you should be able to edit again.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • RESTORING CERTAIN FILES FROM RECOVERY DISKS

    How do I restore only certain files from the recovery cd's that came with my L305-S5894? I don't want to do a full re-install or format.
    Thanks

    Satellite L305-S5894
    Toshiba (or any OEM) does not supply an installation disc.
    What you can do is listed in the section Hard Disk Drive Recovery options on p. 61 and in the section
    Installing drivers and applications on p. 67 of the User's Guide. 
       Satellite L300 Series User's Guide
    -Jerry

  • I'm trying to extract audio files from my OLYMPUS Digital Voice Recorder VN-6200PC I am getting this error whenever I try to play its file type on my MacBook Pro,"The document "VN622195.WMA" could not be opened. The movie's file format isn't recognized."

    I'm trying to extract audio files from my OLYMPUS Digital Voice Recorder VN-6200PC
    I am getting this error whenever I try to play its file type on my MacBook Pro,"The document “VN622195.WMA” could not be opened. The movie's file format isn't recognized."

    The mac has no native way to read .wma files (these are Windows Media Audio files).  Do a search on the internet for playing wma files on a mac.  You will find several links to solution (one is to use flip4mac).

Maybe you are looking for

  • Transfer Posting upon UD of HU linked to inbound delivery

    I have configured the system to [create inspection lots upon packing inbound deliveries|http://help.sap.com/erp2005_ehp_04/helpdata/En/2d/584bcba70f11d2b44e006094b9b9dd/frameset.htm] and this is working well.  However, when making a usage decision on

  • How to get rid of credit balance in app store

    HEy i Want to change my region of application but i couldnt because i still have $0.29 in my account. So how do i get rid of that??? thank you

  • Four finger swiping between spaces doesn't work in Mountain Lion

    I have my magic trackpad settings to include 3 finger dragging which means that activating Mission Control, or swiping between full screen apps and spaces requires 4 fingers.  I have a MBP running Mountain Lion and it works fine, but on a MBA connect

  • FSG - Account Assignment

    Hi Friends , I wan to have a question regarding consolidation I have BU.DEPT.LOCATION.ACCOUNTCODES.INTERCOMPANY.FUTURE as account segment. I am Running  FSG to Generate  TB Deptment Wise. (9104,9105,9106,9107,9108,9109,9110) with BU as 1142 Now i wan

  • I have sold some items on pre sale more than 31 days where do I find those transactions?

    You can adjust your Sold list to show up to 90 days of sales.It's a drop down menu. Since your buyers have already paid, the information should also be in Paypal - Recieved. Again you will have to adjust the calendar at the top of the listing to see