VNC / access router at boot / mouting encrypted hd at boot?

Is there a way to mount an encrypted hard drive at boot time and input the necessary password?