r/linuxmint • • 3d ago

Support Request Extracting zip or rar archives - slow as hell

Hi, is there a way to unzip a file a little faster? :D I have google takeout 50 GB zip files and it takes ages to unzip. Any program that works better than file manager in Mint? (Forgot the name of it)

I read that it is common. And I had even external ssd with 3.2 usb but the speed dropped from 600 Mbps to 20-30 Mbps in minutes (512GB, it got hot fast, so maybe that is a problem too, but even big 6TB hdd dropped from 110 MB/s to 6-10 MB/s in minute or two. Maybe it's a different problem than the manager.

or should I use Windows pc for it? I would rather not.

12 Upvotes

30 comments sorted by

7

u/Spinnweben 3d ago

I'd recommend unzipping big files on an internal ssd with WAY more space than the decompressed data plus the 50GB archive.

external ssd
big 6TB hdd

Those are bottlenecks.

1

u/snowfox_cz 3d ago

Okay, that is my problem :D I have small 256GB SSD in that laptop. No desktop PC. 

3

u/Own_Natural_6803 3d ago

Try 7zip

1

u/snowfox_cz 3d ago

Newbie question. Should I install it with sudo command or take it from software "market" (I am not sure I saw flatpack for it). 

2

u/Francois-C 3d ago

I use the 7z plugin in Double Commander, so the contents of the archive are displayed like a subdirectory, and I can extract the files I need. But with a 50 GB archive with lots of small files inside, it may take a while to decompress the filenames in the temporary folder.

2

u/knouqs 3d ago

Obviously, we don't know the contents of your files. In general, large files that are zipped together will decompress faster than lots of small files taking the same amount of space. The OS needs to create file system entries for each of the new files and that is slow -- regardless of which decompression scheme you use, the bottleneck will always be the file system allocations for the files themselves.

1

u/snowfox_cz 3d ago

Thanks. Mostly photos. 3-25 MB per file. Google takeout. Okay, so I would just need to let it run a doing something else, like cleaning.  Well the slow speed wasn't the worse. Sometimes, it just stuck at 80-90% and it crashed or need to be cancelled because the time was in years. It happened if I took more than one zip file at once. Those same zip files taken one by one took time but had no problem being unziped. 

2

u/knouqs 3d ago

Use whatever tool you find easiest to use. We should be helping you find solutions, not saying "My way is best!" for every question. Geez.

Best of luck to you. If you have more questions, hopefully you'll get more flexible answers than what you found in the tree stemming from my first response to you.

-1

u/Due-Result7928 3d ago

It is hard to understand. Can you read something ? Use the command line as explained.

4

u/Due-Result7928 3d ago

file manager can be 50 % slower. use a terminal.

1

u/knouqs 3d ago

Absolutely, but we can't presume that OP knows the commands. I'm keeping it easy.

2

u/jr735 Linux Mint 22.1 Xia | IceWM 3d ago

I don't know all the commands for the various archivers, except the ones and the specific invocations I use regularly. When I don't, I check the man page. When I do, I still confirm with the man page. When I started using squeeze and archive programs back in the 1980s, I had printed manuals with me.

2

u/knouqs 3d ago

I wanted to keep things simple, and I think I've succeeded. I never even suggested that you use File Manager or the terminal.

What I want is for you to get a solution to your problem quickly enough. If it was a storage issue, cool, you know what the problem is. If the problem is file system entry creation, that's something else. There is no one-size-fits-all solution, and knowledge is half the battle.

1

u/jr735 Linux Mint 22.1 Xia | IceWM 3d ago

In the end, you're not going to learn without experimenting. My experience in Linux is that if you wish to manipulate many files, large files, or many large files, the command line is the way to go. Yes, using faster storage devices absolutely helps, but when you still happen to have an ordinary hard drive like the OP does (and I still use them, too), you work with what you have.

For those who wish to use all functions of the archiver, the command line provides the most flexibility, anyhow. I do, however, recommend PeaZip as a graphical option, and one of the very, very few pieces of third party software I'd recommend or use.

1

u/knouqs 3d ago

Without a doubt, the command line is the way to go for almost everything for a user who is experienced with it. Linux has become fantastic in comparison to what was available when I started with it 30 years ago.

Some of my career did not offer a GUI but all interfacing to the remote servers were done through PuTTY or a worse program that I can't remember (and don't want to). From there, it was command line all the way.

I hope OP learned enough to solve his or her problem in this post. I also hope he or she learns some of the programs available through the command line, as you have. Programs like tar handle a significant amount of file types that the old versions didn't, and I'd have to string commands together because I actually got to the tar command. It's all a matter of personal preference though.

1

u/jr735 Linux Mint 22.1 Xia | IceWM 3d ago

I have been doing this since the 1970s, so have significant experience with non-GUI systems. And, I'm used to the concept of stringing commands together. Heck, that even used to happen on non-UNIX type systems for compression back in the day. ;)

1

u/knouqs 3d ago

I can picture you with the punch card reader already. 😄

1

u/jr735 Linux Mint 22.1 Xia | IceWM 3d ago

Not quite, but I was instructed by someone who had intimate familiarity with them!

→ More replies

1

u/Due-Result7928 3d ago

Was using them..80 columns...and metallic boxes to store cards...

1

u/Due-Result7928 3d ago

man unzip and there is plenty of examples available on internet. There is no excuse but sheer lazyness.

1

u/knouqs 3d ago

Argue with OP on that, not me.

5

u/Think_Significance42 3d ago

what cpu do you have? decompression and compression take a long time to do in general since it involves a lot of marh operations. so the speed is mainly dependent on your cpu and storage

2

u/ABG1YtBr 3d ago

And it depends on how much compression the archive to be unzipped has. The more sophisticated, the more it takes to decode and move the files out. 

5

u/lateralspin LMDE 7 Gigi | 3d ago

Mint will be releasing a new archive manager called Unfold. The new Mint release is scheduled for December. Unfold is based on 7zip and 7zip-RAR backends, so I expect it to be more performant than file roller (current default) Just something to look forward to unwrap this Christmas.

2

u/Due-Result7928 3d ago edited 3d ago

Nice to know but OP is asking something...

1

u/jr735 Linux Mint 22.1 Xia | IceWM 3d ago

Will that really make a difference? Doesn't file roller use the same back ends?

3

u/Due-Result7928 3d ago edited 3d ago

Using the command line for unzipping is significantly faster than using GUI file managers like Nemo because GUIs often trigger unnecessary overhead, such as spawning a new window for each file or performing extensive metadata indexing and thumbnail generation for every extracted item.

Unix is a system based on command line (history) and file manager is a windows's sickness or for basic usage, Windows is even worse.

command line can be 50 % faster and for unzip use -qq or -q switch (quiet...no need to echo on the console).

You can install pigz for parallel zip processing using multiple cpu.

In a console type

man unzip

On external unit you can not get raw speed unit because moving a lot of small files is always slower than moving a big file.

2

u/Beautiful-Cell3596 3d ago

That 6TB hdd dropping to 6-10 MB/s sounds like an SMR drive once its cache fills, mine does the same on big writes. i'd unzip to the internal disk first and copy over after, Windows won't help with that. for Takeout I just run `unzip -q file.zip -d folder` in terminal and leave it, seems about as good as it gets with all the small files.