LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-07-2020, 04:36 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
gunzip is unable to open a gz file


https://github.com/vanvught/h3dmx512..._ltc_smpte.zip

Code:
$ ls orangepi_zero.uImage.gz  
orangepi_zero.uImage.gz 

$ file orangepi_zero.uImage.gz  
orangepi_zero.uImage.gz: u-boot legacy uImage, http://www.orangepi-dmx.org, Firmware/ARM, Standalone Program (gzip), 105148 bytes, Fri Jul 31 16:26:39 2020, Load Address: 0x40000000, Entry Point: 0x40000000, Header CRC: 0xBE3C29C9, Data CRC: 0x5914EA8E 

$ gunzip orangepi_zero.uImage.gz  
gzip: orangepi_zero.uImage.gz: not in gzip format
It is saying that the file is not in gzip format. What do I have to use to open a .gz file?


Does it mean that the file is corrupted?

Last edited by Aquarius_Girl; 10-07-2020 at 04:56 AM.
 
Old 10-07-2020, 05:12 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
that is not a gzip file, it is already uncompressed. So you can rename it to orangepi_zero.uImage (if you wish).
 
1 members found this post helpful.
Old 10-07-2020, 05:16 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Oh, so it is some kind of image called uimage?
 
Old 10-07-2020, 05:21 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Looks like an OS image for an Orange Pi designed to boot from UBoot.
 
1 members found this post helpful.
Old 10-07-2020, 03:22 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,009

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
But they tend to be compressed in modern distro's. I assume the compression method is not in your version of gunzip. gzip -d file.gz tar, zcat or 7zip may be used but be sure you need to change it. It's unusual that a compressed file is further offered in a .gz format unless they wish to preserver some minimal data integrity.
 
1 members found this post helpful.
Old 10-07-2020, 10:08 PM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by jefro View Post
But they tend to be compressed in modern distro's. I assume the compression method is not in your version of gunzip. gzip -d file.gz tar, zcat or 7zip may be used but be sure you need to change it. It's unusual that a compressed file is further offered in a .gz format unless they wish to preserver some minimal data integrity.

But I do hope that the conclusion that this is just an image and not any piece of code is correct.


I was interested in unzipping it in a hope that it might be some code.
 
Old 10-08-2020, 12:53 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
this is not zipped, therefore it cannot be unzipped.
And if you want to check the content better to go for the sources.
 
1 members found this post helpful.
Old 10-08-2020, 04:22 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by TheIndependentAquarius View Post
But I do hope that the conclusion that this is just an image and not any piece of code is correct.

I was interested in unzipping it in a hope that it might be some code.
Well, if it's an OS or an OS stub, then it is code, but it will be binary code so you won't be able to read it. My guess is that it's a real-mode binary that acts as a high level bootloader for your final system, something like GRUB's core.img.

The term "image" is often used of compressed operating systems, the kind of thing a bootloader can load.

Last edited by hazel; 10-08-2020 at 04:23 AM.
 
1 members found this post helpful.
Old 10-08-2020, 02:59 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,009

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
https://stackoverflow.com/questions/...mage-vs-uimage
 
1 members found this post helpful.
  


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
[SOLVED] gunzip: [file] has more than one entry -- unchanged checkmate3001 Linux - Software 7 09-06-2023 07:22 AM
Gunzip truncates dd.gz file to zero size .dd file? Trailing garbage ignored? brianpbarnes Linux - Software 1 06-29-2010 05:09 AM
Where do I find the results of unpacking a file with Gunzip? randyic Linux - Newbie 5 04-22-2009 08:36 PM
Unable to gunzip a tar.gz file on Solaris 10 5/07 as guest OS on VMware. okonita Solaris / OpenSolaris 8 03-02-2009 03:27 PM
How to install a .gz file after using gunzip lel800 Linux - Newbie 6 10-10-2003 08:16 PM

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

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