Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-24-2003, 02:09 AM   #1
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?


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

Rep: Reputation: 48
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
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.

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

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


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 AM.

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