6

How can you configure a headless Ubuntu server to auto-mount an encrypted USB hard drive?

I found this similar question, which explains how to mount the drive from the command line, but the author is unaware of how to automatically mount. However, Nautilus provides this functionality, by asking the user whether or not they want to "remember the password" or "forget the password immediately". If you choose to remember the password, then Nautilus will auto-mount the encrypted drive from then on.

What's the equivalent functionality from the command line? How do you configure Ubuntu to remember the password and auto-mount the drive?

Cerin
  • 6,485
  • You want to use keyfiles I think. Here's a post where I set a shared dump partition using LUKS: http://unix.stackexchange.com/questions/36434/install-backtrack-5-r2-into-running-luks-setup-installed-with-ubuntu/36490#36490

    Should be the same.

    – RobotHumans Feb 03 '13 at 03:50

0 Answers0