LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2006, 11:42 AM   #1
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
why mounting 20GB encrypted data takes 2 seconds


why mounting 20GB of encrypted data takes 2 seconds and you can see all files in a blink while instead encrypting 600Mb of data takes at least 10 minutes????

Last edited by rino.caldelli; 05-04-2006 at 05:11 PM.
 
Old 03-04-2006, 07:08 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
because when you mount encrypted data you are not decrypting it...

the decryption will be done to the relevant data only by an encryption/decryption layer which sits between you and the data...

kinda like this:

- encrypted partition is mounted...

- clear data sent to the encrypted partition will be encrypted by said layer before it's stored...

- encrypted data retrieved from the encrypted partition will be decrypted by said layer before it's made available as clear data...


when you encrypt a file, you are doing the whole thing in one shot, which is why it takes a long time... it would also take a long time to decrypt the whole thing, etc... but to mount an encrypted drive you don't have to do any heavy decryption at that point, it's only done when data is accessed or stored, and it's only done for _that_ data...

Last edited by win32sux; 03-04-2006 at 07:17 PM.
 
Old 03-05-2006, 04:13 AM   #3
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Original Poster
Rep: Reputation: 31
hmmm.....still not convinced at all....

Last edited by rino.caldelli; 05-04-2006 at 05:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
writing encrypted data to disk rblampain Linux - Security 14 08-01-2005 12:38 AM
Mounting Reiser4 partition takes about 5 seconds DX2 Linux - General 4 05-03-2005 07:55 PM
NFS mount takes 6 seconds drspiffy Linux - Networking 5 03-16-2005 10:34 PM
KDE slow: takes 20 seconds to launch programs KWTm Linux - General 15 03-06-2005 01:01 AM
Mounting 2 20gb Hard Drives jpc82 Linux - General 11 12-06-2001 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration