LinuxQuestions.org
Register a domain and help support LQ
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-24-2003, 02:09 AM   #1
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Rep: Reputation: 15
bzip2 issues


(using suse 8.1)

I'm using the following command :

bzip2 filename

With a 48 Meg file, it reduced the file to 21M.

With a 22 Gig file, it compressed it to 18 Gig

These are hardly impressive numbers. The files I'm compressing are dd images of partitions from a hard drive.

What kind of compression should I be getting? and what can i do to achieve it?

TIA

Niall.
 
Old 08-24-2003, 02:12 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Try using -9 as an option

bzip2 -9 filename

It increase the blocksize and should give you better compression.
 
Old 08-24-2003, 11:37 AM   #3
NiallC
Member
 
Registered: Feb 2003
Distribution: Suse 8.1
Posts: 102

Original Poster
Rep: Reputation: 15
Thanks, I tried that on the 48M file, and it still came back as 21 M.

-9 is the default behaviour, I believe.

I'm stumped at this end.

I've seen other files compressed at at least 6:1 compression. If I could get my 21 Gig file to 4 gigs, I'd be leapin' for joy.

Niall.
 
Old 08-24-2003, 11:56 AM   #4
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
It depends a lot on what data you are compressing. Those ratios seem about right, to be honest.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing bzip2 browser Linux - Software 2 09-01-2005 11:33 AM
bzip2 andzerger Linux - Software 2 02-21-2004 05:23 AM
bzip2 vs.gzip mikeshn Linux - Software 2 09-20-2003 10:30 AM
cant install bzip2 st3llar Linux - Newbie 2 08-21-2003 11:48 PM
Bzip2 ? ironz Linux - Newbie 1 07-01-2003 12:44 AM


All times are GMT -5. The time now is 03:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration