LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2015, 08:23 AM   #1
SitaDrost
LQ Newbie
 
Registered: Jan 2015
Distribution: Ubuntu, Raspbian, Scientific Linux
Posts: 3

Rep: Reputation: Disabled
Compressed docx-file with bzip2, unable to decompress


Hi all,

Oops... I just compressed an 18 MB docx-file using bzip2 (directly, so using bzip2 file.docx, instead of using tar). The resulting file is only 100 B, which seemed too good to be true... and is. When I tried to decompress it, I ended up with a 45 B docx-file, containing only one line of total nonsense...

Trying to repair things with bzip2recover did not work, as this targets blocks of data in a bz2-file, and I don't even seem to have one single block in my bz2-file.

Does anyone know if it is possible to recover my original 18 MB docx?

Thanks in advance,
Best,
Sita

P.S. I was using my Mac for this
 
Old 01-08-2015, 08:33 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
what was the command you entered. i suspect that a typo may have fubar'd the file unrecoverably ?
 
Old 01-08-2015, 08:44 AM   #3
SitaDrost
LQ Newbie
 
Registered: Jan 2015
Distribution: Ubuntu, Raspbian, Scientific Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
I used bzip2 file.docx
 
Old 01-08-2015, 08:51 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
does mac have a history command: what does
Code:
history | grep bzip2
provide ?

maybe the bzip2 command on (bsd) mac does something different than the gnu version (i know the cp command threw me off using free-bsd to copy directories). maybe this should be posted on the *nix subforum so the mac guys would be able to add their opinions.
 
Old 01-08-2015, 09:06 AM   #5
SitaDrost
LQ Newbie
 
Registered: Jan 2015
Distribution: Ubuntu, Raspbian, Scientific Linux
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for your quick replies up to now!
The history command works fine on a Mac; it returns the command I just posted (bzip2 file.docx), together with the decompress command (bzip2 -d file.docx.bz2). You might be right about the bzip2 command acting differently on a Mac OS, I don't know. I'll try to migrate this post to the *nix subforum.

Best,
Sita
 
  


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
bzip2: (stdin) is not a bzip2 file. error Aqua_Regia Linux - Newbie 16 09-18-2020 02:37 AM
ERROR :bzip2: (stdin) is not a bzip2 file. error k84834 Linux - Newbie 1 08-12-2012 08:11 AM
bzip2: Compressed file ends unexpectedly Teenna Debian 4 03-22-2012 05:34 AM
[SOLVED] Unable to decompress tgz backup file boomer42812 Linux - Server 7 01-04-2011 09:42 AM
chapter 6, want to use bzip2 but it fails with bash: bzip2: No such file or directory nomad5000 Linux From Scratch 2 10-12-2009 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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