Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

have questions about a Luks mod/tutorial

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
rodgear
Posts: 1
Joined: 2022-05-20 22:38

have questions about a Luks mod/tutorial

#1 Post by rodgear »

Hello everyone, I'm very much a n00b. I have a question about a walkthrough. https://www.arminpech.de/2018/11/18/unl ... n-usb-key/

In this example of code, do i remove the { } from around the placeholders of {USB_DEVICE} {LUKS_MAPPER_NAME}
Thanks!

# WARNING: Existing data on your USB device will be erased!!!
fdisk ${USB_DEVICE} <<EOF
o
n
p
1

+64M
w
EOF

mkfs.ext4 ${USB_DEVICE}1
mkdir /root/usbkey-${LUKS_MAPPER_NAME}
mount ${USB_DEVICE}1 /root/usbkey-${LUKS_MAPPER_NAME}

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: have questions about a Luks mod/tutorial

#2 Post by p.H »

These are not placeholders but shell variables defined in step 1.

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: have questions about a Luks mod/tutorial

#3 Post by Bloom »

And you need them to combine the variables with other letters or numbers. ${USB_DEVICE}1 is the contents of the variable USB_DEVICE with a number 1 appended. Remove the {} and your script will try to find the variable USB_DEVICE1 which doesn't exist.

Post Reply