how to mount a luks-encrypted file? (2024)

I had a good-working system. Cent OS 6. But after I made a reboot luks-partition has been unmounted. And our system administrator have a weekends now :(

Please help me to mount a luks partition again.

I know the path to encrypted file and password.

System administrator's records says: "Encrypted file located at /path/file and mount to /crypt. Password is xxxxx" That's all.

Before reboot the server I made a records of 'mount' command, the related partition was:

/dev/mapper/crypt_fun /crypt ext4 rw,relatime,barrier=1,data=ordered 0 0

Now I try this commands:

cryptsetup luksOpen /dev/loop0 /path/file

type a password

mount /path/file /crypt

But nothing works good :( Please help me.

how to mount a luks-encrypted file? (2024)
Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 6101

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.