# Mounting external luks drive at boot

**URL:** <https://dietpi.com/forum/t/mounting-external-luks-drive-at-boot/24931>\
**Category:** General Discussion\
**Created:** [31 January 2026 20:28 UTC](https://dietpi.com/forum/t/mounting-external-luks-drive-at-boot/24931 "2026-01-31T20:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![p0d](https://dietpi.com/forum/user_avatar/dietpi.com/p0d/32/8724_2.png) [@p0d](https://dietpi.com/forum/u/p0d)\
**Post date:** [31 January 2026 20:28 UTC](https://dietpi.com/forum/t/mounting-external-luks-drive-at-boot/24931/1 "2026-01-31T20:28:17Z")

</div>

Hi,

I just started using dietpi and it looks great, very snappy.

I have an external luks drive with a key which I can open manually no problems. I’ve tried everything I can think of with crypttab, fstab and initfamfs to get it to open/mount on boot with no luck.

```auto
# <target name> <source device> <key file> <options>

backup UUID=ec313266-dcd2-45ee-adb1-764a7b3da484 /root/backup.bin luks

# appended to fstab

/dev/mapper/bup /mnt/ec313266-dcd2-45ee-adb1-764a7b3da484 ext4 defaults 0 2

sudo update-initramfs -u -k all

```

Can anyone point me in the right direction?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [30 July 2026 20:28 UTC](https://dietpi.com/forum/t/mounting-external-luks-drive-at-boot/24931/2 "2026-07-30T20:28:48Z")

</div>

Closed on 30 July 2026 20:28 UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
