Originally Posted by bikesh
i am trying to unlock the encrypted partition during system starup by using luks in rhel 6
for this i did
1. /etc/crypttab file and added this line
secret /dev/sda8 /root/luks.key
2. vi /root/luks.key and added this
3. vi /etc/fstab and added this line
/dev/mapper/secret /tt ext4 defaults 12
Now when i reboot my system it asks for passphrase but i think it should not ask for the passphrase since i have already included it in crypttab file.
First, WHY are you bothering with an encrypted partition, if you're going to BYPASS ALL OF THE SECURITY
and have it auto-mount??? Are you missing the point of an encrypted partition?
Second, if you tried to look up how to do this, there are complete instructions:
Third, you using RHEL 6. Have you PAID FOR RHEL???
If not, again, STOP where you are and load CentOS instead. RHEL is NOT free, and (as you were told in your other thread), you WILL NOT get access to online repositories, updates, patches, and security fixes. Also, RHEL 6 is old..the latest is 7, and (with your OTHER thread about 'certification'), the differences are systemd. Load CentOS 7.
i have disble firewaall and iptables
...which have absolutely NOTHING to do with mounting a hard drive.