<p>Inrealityit's basically the same as setting up LUKS for Parabola, but I'mnotgoingtomakeyoureadallthatjusttogetaLUKSpartitionsetuponyourexternalharddrive.PleasenotethatI'll be referring to the external device as <code>`/dev/sdb'</code>,ifit's different for you <b>use your device'spath!</b></p>
<p>Oncethat's done it'stimetoformatit.Run<code>`cfdisk /dev/sdb'</code> and select the <code>`dos'</code> disk labelling (or whatever you want, I guess). You'llwanttocreateanewprimarypartition,aLinuxtypeshoulddojustfine.Onceit'sformattedwritethechangesandexit.</p>
<p>Now,beforecreatingafilesystemoranythingwe're going to format the partition you just created with LUKS: <code>`cryptsetup luksFormat /dev/sdb1'</code>.Youcanalsospecifyotherthingsliketheencryptioncipherandkeysizesandstuff,atwhichpointpleaserefertothedocumentationontheArchWikiorsomething,butformostcasesthisshouldworkjustfine.This'll format <code>`/dev/sdb1'</code>withLUKS.</p>
<p>Nowit's time to open the device in order to work with it as any other device. Run <code>`cryptsetup luksOpen /dev/sdb1 <dev-name>'</code>,where<code>`dev-name'</code> is the name you want the device to take in <code>`/dev/mapper/'</code>. At this point we can finally format it with a proper filesystem (that is, ext4): <code>`mkfs.ext4 /dev/mapper/<dev-name>'</code>.Nowthedeviceisreadyformountingandusage.Justmakesuretoalwaysmountfrom<code>`/dev/mapper/<dev-name>'</code>, <b>not</b> <code>`/dev/sdb1'</code>. Just make sure that when you want to remove the device that you unmount it first and then run <code>`cryptsetup luksClose <dev-name>'</code>.</p>
<p>Justrememberthateverytimeyouwanttomountthedeviceyouwillhavetorunthe<code>`cryptsetup luksOpen ...'</code> to mount and <code>`cryptsetupluksClose...'</code>todismount.</p>