Files recognized as gzip but not compressed

beaferbl

New Member
Credits
21
Hi everyone,
I'm new to Linux, working with Ubuntu 20.04 in a virtual machine. I have a shared folder in my Windows desktop, so I can work with it in the machine. I have a problem, some of these files are recognized as gzip but they do not have this extension (they are .bam). When I try to extract them I have the message: an error occurred while extracting files. If I add the .gz extension I get to extract them but they are higher and give error when run with other applications. In Windows they work fine. Anyone knows how can I solve this? Thank you.
 


Tolkem

Well-Known Member
Credits
8,516
You have problems viewing the files in the Linux VM, is that correct? What virtualization software are you using for your VMs? VirtualBox? VMWare? Other? I've never dealt with .bam files so I can't give any advice there, however, a web search threw these:

Maybe you can find something useful in one of those links.
 

beaferbl

New Member
Credits
21
You have problems viewing the files in the Linux VM, is that correct? What virtualization software are you using for your VMs? VirtualBox? VMWare? Other? I've never dealt with .bam files so I can't give any advice there, however, a web search threw these:

Maybe you can find something useful in one of those links.
BAM files store genomic data in a binary format. I am working with Virtual Box. Maybe this happens with other binary files...
 

khedger

Active Member
Credits
1,294
This is just a guess, but you might want to verify:
There's a possibility that the linux system THINKS that the files are gzip'd but that they are not. These .bam files may just 'look' like they are compressed.
So, can you run a command to process one of these files in some on the linux system without changing the extension or trying to unzip them. Just a straight "somecommand foobar.bam'. Can you do this on the windows box?
If this command works on either system, then it would appear that the files are not compressed.

keith
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top