Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I have been using unrar for a while and I have the following problem: when the .rar file is encrypted, it invariably extracts all but the last document in ...
  1. #1
    Just Joined! rogachez's Avatar
    Join Date
    Nov 2007
    Posts
    12

    unrar

    Hi, I have been using unrar for a while and I have the following problem:
    when the .rar file is encrypted, it invariably extracts all but the last document in the file, and then prompts:

    Encrypted file: CRC failed in [lastfile] (password incorrect ?)
    Total errors: 1

    The extraction of the last file stops at 99%, all the other contents are well handeled.

    Any ideas?

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Did it prompt you for a password?

  3. #3
    Just Joined! rogachez's Avatar
    Join Date
    Nov 2007
    Posts
    12
    Yes, the full story is as follows:

    prompt$ unrar e rarfile.rar

    UNRAR 3.50 beta 3 freeware Copyright (c) 1993-2005 Alexander Roshal

    Enter password (will not be echoed) for rarfile.rar:


    Extracting from rarfile.rar

    Extracting doc-001 OK
    Extracting doc-002 OK
    ...
    Extracting doc-042 99%
    Encrypted file: CRC failed in doc-042 (password incorrect ?)
    Total errors: 1

    I swear I typed the password ok, every time. It does indeed extract all the files but the last one. At first, I didn't detect this because I tried with rars containing only one file. I thougth I had wrong paswords all the time. But the light came with many-filed rars, and the one-filed case does fit the picture, isn't it?

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Is it possible that the file was corrupted? That's generally what CRC's are used to check for.

  5. #5
    Just Joined! rogachez's Avatar
    Join Date
    Nov 2007
    Posts
    12
    Well, I should check if the same thing happens in Windows. But it would be too many coincidences. I have tried this with about a dozen of encrypted rars, and I have the same problem. By the way, the listing option ( unrar l rarfile.rar ) works perfectly fine.

  6. #6
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    try on this way

    unrar e -p password something.rar

  7. #7
    Just Joined! rogachez's Avatar
    Join Date
    Nov 2007
    Posts
    12
    Same effect:

    Encrypted file: CRC failed in doc-042 (password incorrect ?)
    Total errors: 1

    It's not the prompt's fault.

  8. #8
    Just Joined! rogachez's Avatar
    Join Date
    Nov 2007
    Posts
    12
    Well, the best solution seems to be the generalized use of the -kb option:

    unrar e -kb something.rar

    So sad.

Posting Permissions

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