LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2010, 12:57 PM   #1
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Rep: Reputation: 15
Software to Open 30GB binary file?


Is there such an application that can handle opening a 30GB binary file containing hex data? GHex won't open it.
 
Old 08-11-2010, 01:07 PM   #2
Les Windoze
LQ Newbie
 
Registered: Aug 2010
Location: Florida
Distribution: RHEL5, RHEL6, Solaris 10
Posts: 18

Rep: Reputation: 1
Perl can; what do you need to do w/ it?
 
Old 08-11-2010, 01:10 PM   #3
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
One of the developers here needs to open it in GHex for some reason, so I'd imagine he wants to just open it like a text file. It's gov. work so I can't get too detailed.
 
Old 08-11-2010, 01:25 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hard to get good search results that don't say "filesize limit" - most programs seem to have a 2-4Gib limit. However, here's something you might like to look at: http://www.ultraedit.com/downloads/uex.html

That's UltraEdit, which is not a free program, but does claim to offer a "Free 30-day Trial", and claims to be a native Linux application that works with either Gnome or KDE desktop environments. There's also a .tar download which you would build and/or install if yours is not one of the supported distros. After the 30-day trial, you're to purchase a license, and hey, if it's the .gov they can afford it

Note: Normally I wouldn't suggest a non-free application, and there's *probably* a free alternative to this thing, but as I said, I am not seeing much in my search results that will deal with that large a file.

Best of luck!

Last edited by GrapefruiTgirl; 08-11-2010 at 01:27 PM. Reason: typo
 
Old 08-11-2010, 01:44 PM   #5
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
UltraEdit won't open it either. :-/
 
Old 08-11-2010, 02:27 PM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by athomas View Post
Is there such an application that can handle opening a 30GB binary file containing hex data? GHex won't open it.
If you type ":help xxd" in "vim", you will get this:
Code:
Hex editing                                     *hex-editing* *using-xxd*

See section |23.4| of the user manual.

If one has a particular extension that one uses for binary files (such as exe,
bin, etc), you may find it helpful to automate the process with the following
bit of autocmds for your <.vimrc>.  Change that "*.bin" to whatever
comma-separated list of extension(s) you find yourself wanting to edit:

        " vim -b : edit binary using xxd-format!
        augroup Binary
          au!
          au BufReadPre  *.bin let &bin=1
          au BufReadPost *.bin if &bin | %!xxd
          au BufReadPost *.bin set ft=xxd | endif
          au BufWritePre *.bin if &bin | %!xxd -r
          au BufWritePre *.bin endif
          au BufWritePost *.bin if &bin | %!xxd
          au BufWritePost *.bin set nomod | endif
        augroup END
Just change ".bin" to the extension of your file, run vim as "vim -b <filename>", and you will have an hex editor that can handle any file size.
 
Old 08-11-2010, 02:42 PM   #7
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Tried that, it just sits there looking at me. It's a VERY powerful machine, so resources aren't an issue at all.
 
Old 08-11-2010, 03:00 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Might end up tarring it or some other way to make the file contiguous. Then look at the hard drive sector by sector.
 
Old 08-11-2010, 03:31 PM   #9
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by athomas View Post
Tried that, it just sits there looking at me. It's a VERY powerful machine, so resources aren't an issue at all.
It takes a very long time to convert the file to hex. Be prepared to wait several minutes, maybe longer.
 
Old 08-12-2010, 01:00 AM   #10
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Umm, why not just splitting the file in 200 parts using dd or anything else?

If the file contain a db or a disk image, there is no point to open it all at once anyway. When the job is done, put it back together with cat
 
Old 08-12-2010, 08:47 AM   #11
Les Windoze
LQ Newbie
 
Registered: Aug 2010
Location: Florida
Distribution: RHEL5, RHEL6, Solaris 10
Posts: 18

Rep: Reputation: 1
Quote:
Originally Posted by athomas View Post
...It's gov. work so I can't get too detailed.
I would think if the developer knows what he's looking for, he could write something to seek for it and if found, split the file before and after the location then look at that part in GHex.

Split and cat make sense.
 
Old 08-12-2010, 03:50 PM   #12
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by athomas View Post
Tried that, it just sits there looking at me. It's a VERY powerful machine, so resources aren't an issue at all.
After thinking about this problem, I ran aptitude and searched for "hexedit". I installed it and was able to open a 5.3 GB file very quickly.

Here is a link to the hexedit web site.

You might want to send a note to the author about changing his background to something easier on the eyes...
 
  


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
C++ Cross Platform Compatible Binary File Open Read Problem MatrixNAN Programming 6 09-18-2009 02:37 AM
"Best file systems" for only large (10-30GB) files ? petepdx Linux - Server 3 03-24-2008 01:17 PM
What software is best for open swf file? tahrenyie85 Linux - Software 2 01-09-2008 05:28 AM
how to open file in binary mode amit_pansuria Programming 4 07-31-2007 03:31 AM
Blender binary file fails to open adhara Linux - Software 1 12-09-2003 07:35 PM

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

All times are GMT -5. The time now is 10:36 AM.

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