LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-24-2003, 01: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, 01:12 AM   #2
leonscape
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, 10: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, 10:56 AM   #4
mhearn
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.
 
  


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

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

All times are GMT -5. The time now is 10:13 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