LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2005, 05:47 AM   #1
provkitir
Member
 
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Rep: Reputation: 15
how to extract .0xx files?


Hi
I recently acquired a lot of blah.0xx files that are supposed to make up blah.bin for cd burning. however, i can't figure out how to actually get the .bin file from these .001, .002, etc. I tried unrar -x blah.001, didn't work. there's also a .sfv file, don't think that'll help with the extracting, but may be it does.

thanks in advance
 
Old 04-19-2005, 05:54 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
It's most likely a RAR compressed archive. Grab the latest stable RAR version here.

Install it according to the instructions. Then you simply type rar x filename.001 and it will unpack all the files in the archive.

The sfv file is used for weak and unreliable file verification. You can use cksfv to check the files: Type cksfv -f sfvfile.sfv (where sfvfile.sfv is the .sfv that came with the RAR files) to verify them. Obviously a better choice would be using md5 sums but pirates seem to like sfv files.


Håkan
 
Old 04-19-2005, 08:25 AM   #3
provkitir
Member
 
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Original Poster
Rep: Reputation: 15
ahh. who'd have thought that that to extract one would need to rar as opposed to unrar. thanks a lot!
 
Old 04-19-2005, 07:21 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The file pattern looks more like a split file than an rar archive. Sometimes someone will upload a file split up into sections along with partity files, which would allow you to use par or par2 to recover missing or damaged files.

So for example, suppose that you have 6 files named blah.bin.000, blah.bin.001, blah.bin.002, blah.bin.003, blah.bin.004, and blah.bin.005. These files need to be joined to form blah.bin.
However, if the sender used a windows program to split the files, the blah.bin.000 is probably a text file that the program uses, and not one of the component parts. You can look at a long listing: ls -l blah.bin.* to check for a short file length. If blah.bin.000 is very short and the filelength doesn't match blah.bin.001, then you need to either delete the file or move it somewhare else or rename the extension.
ex: mv blah.bin.000 blah.bin.000.tmp

Now simply use the cat command to join the files:
cat blah.bin.[[:digit:]][[:digit:]][[:digit:]] >blah.bin

The reason for moving/deleting/renaming the .000 file is so that the pattern doesn't match which would have started the file with the .000 segment.


If there are files by the names similar to blah.bin.p01 or blah.bin.par then you may want to install the 'par' program. Another parity program is 'par2', which uses files which look like blah.bin.vol00+32.PAR2.

I installed both of these programs from source. Using them you can recover a missing download as long as you also have enough parity files downloaded.

--------------

PS. The programs rar and unrar are different. The 'rar' program is shareware while the 'unrar' program is freeware.

The rar program will be able to extract archives as well as creating them.

Last edited by jschiwal; 04-19-2005 at 07:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract difference between two files? Marshalle Linux - General 8 01-05-2011 12:45 PM
extract files ust Linux - General 1 08-05-2005 01:16 AM
How to extract Gentoo files raees Linux - Software 6 04-27-2005 10:17 AM
how to extract winrar files Paxmaster Linux - Software 1 11-04-2004 09:16 PM
Extract >1 files using WinRAR mib Linux - Software 11 06-29-2004 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration