I don't think the kernel (OS) keeps the things in encrypted form on HDD. It writes without encrypting it. If it writes the things in encrypted form as you said, then it's a lot of overhead for each block encryption and decryption. I think it's not at all like that. HDD device driver does not encrypt or decrypt before writing reading from HDD. Regards, Gaurav -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Lei Yang Sent: Monday, July 19, 2004 9:22 PM To: kernelnewbies@xxxxxxxxxxxx Subject: encrypt ramdisk Hello, Can I set up a ramdisk and use loopback encryption to encrypt it? As far as I understand, the OS will keep data encrypted on the hard disk at all times and decrypts it in RAM only as it's read. So an encrypted executable on physical hard disk will be decrypted page by page upon reading to RAM. But what happens to an executable sitting in ramdisk? Can I also encrypt it? Since the code is in RAM, it should be running in place, how do kernel deal with encrypted code and run? Any comments? Thanks in advance! Lei -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/