Tech Blog

PiklesOnFire's Tech Postings

USB + Encryption + Archiving File = SLOW AS A SNAIL

, , , , , , ,

Alright, another day, another update. I have my 160 Gig USB Drive connected to Intrepid, and it works great, I don't even get prompted for a password anymore when I plug it in (Luks Encrypted drive). Problem is, if I want to add a file to an archive (ie i want to tar and bzip it) it takes forever and a day. Today alone, I had about 6 files I wanted to do this with. I wrote a simple bash script to take care of doing them one at a time for me, because I know all at once with two of the files being over 3.0 Gigs and the other 3.4 Gigs it would take even longer. The script was simple, it cd's to my /media/disk directory (the USB Drive) and into the /ISOs folder, which is what I was zipping up, was a few ISOs. The next thing the script does is find all the ISOs in that directory and it's subdirectories. Next it starts one by one tarring the files, bzippiping them as it goes. After it finishes one file, it erases the starting ISO, and moves on to the next. Simple enough, right? Not really. The script has been running for almost an hour now, and it's still got the large 3.4 Gig file to go.

Lesson learned from all this is exactly what the title states. USB Drive + Encryption + Trying to archive a file = Slowness.
I mean, my system is running fine while it's compressing, so I guess I shouldn't complain, but still. I wish I knew a faster way.


As always,
Happy Hacking
PiklesOnFire

Ubuntu Intrepid - Clocksource Fixed, System Still Hangs, AND No Videos - FGRLX Fixes ItAnother round for "Day of the Distros" - Also, A Few New Goodies

Comments

Unregistered user Monday, December 15, 2008 1:39:02 PM

Andy writes: Same problem here. Used Truecrypt to encrypt a 160gb USB drive and it's obvious that any kind of disk I/O activity is unbearably slow. I think I'll stick with encrypted folders and be more selective about what goes into them. Please update this post if you find a better way of doing things :-) Cheers Andy

PiklesOnFire Monday, December 15, 2008 4:15:09 PM

Thanks for the comment Andy, at least I know it's not just me.
I haven't seen any bug reports or very many other reports of this issue.

I think I can at least get a boost in speed by trying different filesystems, with different tweaks set to them, hence further testing as described in one of my other posts.

I'm going to be posting those results pretty soon hopefully, at least within the next two weeks.

Write a comment

New comments have been disabled for this post.